As AI agents extend their capabilities through retrievable bundles of instructions, organizations face a new operational challenge to distribute these agentic skills safely at scale. Current workarounds lack centralized auditing, security, and unified discovery.
Because skills resemble standard API specs, you can use Apigee API hub as the catalog and authority for these skills. API hub indexes and serves the manifests while delegating storage of the zipped skill contents to Cloud Storage.
By combining API hub and Cloud Storage, you can establish an enterprise skill registry with the following capabilities:
- Centralized discovery: A single directory to register and search skills using attributes or natural language.
- Fine-grained governance: Use your existing Identity and Access Management rules to control who can publish or consume skills.
- Security: Ensure skills are signed and verified before execution, preventing unauthorized alterations.
- Observability: Every skill update or registration is automatically logged in Cloud Audit Logs.
This tutorial describes how to use two open-source skills, skill-finder and
skill-publisher, to turn API hub into a skills registry.
You can find samples and files for this tutorial on Apigee's
GitHub
repository.
Architecture components
- API hub: Indexes skill manifest metadata and exposes search filters.
- Cloud Storage: Stores the zipped, signed skill packages (
.skillarchives) in a secure, replicated storage bucket. skill-finder: A consumer-side client utility that runs on the agent. It queries API hub, verifies the Ed25519 signature of a package against a local trust root, and installs the files into the local runtime skills directory.skill-publisher: An author-side pipeline utility. It compresses a local skill directory, signs the manifest, uploads the package to Cloud Storage, and registers the metadata in API hub.
Objectives
In this tutorial, you will complete the following steps:
Costs
In this document, you use the following billable components of Google Cloud:
To generate a cost estimate based on your projected usage,
use the pricing calculator.
When you finish the tasks that are described in this document, you can avoid continued billing by deleting the resources that you created. For more information, see Clean up.
Before you begin
Before you complete this tutorial, ensure that you have the following:
- An active Google Cloud project with API hub provisioned.
- A Cloud Storage bucket to store your signed skill bundles.
- The Google Cloud CLI installed and configured on your local machine.
- A local private-public key pair for signing your skill packages.
- The IAM roles API Hub Editor (
roles/apihub.editor) and Storage Object Creator (roles/storage.objectCreator) on the target project.
Step 1: Install skills to turn API hub into a skills registry
Run the following command to download the installer and configure both the
skill-finder and skill-publisher tools. You can replace --runtime gemini with
other agent runtimes.
curl -fsSL https://raw.githubusercontent.com/apigee/devrel/main/\
references/apigee-skills-serving/bin/install-skill-finder.sh \
| bash -s -- --runtime geminiStep 2: Provision your Google Cloud project
Clone the repository and run the provisioning script to enable APIs, create the storage bucket, register the attribute taxonomy, and generate your Ed25519 key pair:
git clone https://github.com/apigee/devrel.gitcd devrel/references/apigee-skills-servingbash bin/provision.sh --project PROJECT_ID --yesThe provision.sh script automatically sets up the environment, generates an
Ed25519 signing key pair, stores the private key locally, and publishes the
default example skills.
Step 3: Browse the catalog or add new skills
After registering your skills, you can query the API hub catalog or publish new skills directly from your AI agent runtime.
For example, asking the following prompt: "What skills are available in API hub?"
runs skill-finder in list mode to search API hub and display a
markdown table of matching skills. See the GitHub
repository
for a list of sample skills and their purpose.
Using API hub as a skills registry provides a unified discovery catalog, end-to-end security, and cross-runtime portability for your AI agent skills.
Limitations and considerations
- Keyword-based search: By default, API hub uses keyword overlap and attribute filtering. For semantic search, integrate a vector database component separately.
- Per-deployment trust root: The Ed25519 trust root is specific to each deployment.
- Manual key rotation: Although API hub supports multi-key trust roots allowing zero-downtime key rotation, the rollover process is not automated. For more information, see Key rotation with zero downtime.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used in this tutorial, either delete the project that contains the resources, or keep the project and delete the individual resources.