Agent skill · google
google-agents-cli-publish
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini Enterprise", "publish to Gemini Enterprise", or needs guidance on the agents-cli publish gemini-enterprise command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
What it needs
About 6k tokens when loaded.
What this skill does
Gemini Enterprise Registration Requires: A deployed agent. For Agent Runtime, deploymentmetadata.json (created by agents-cli deploy) enables auto-detection. For Cloud Run or GKE, provide the agent card URL and flags directly. Prerequisites 1. Agent must be deployed — the agent must be running and reachable 2. Gemini Enterprise app must exist — Create one in Google Cloud Console → Gemini Enterprise → Apps before registering 3. deploymentmetadata.json (Agent Runtime only) — Created automatically by agents-cli deploy; contains the agent runtime ID, deployment target, the A2A flag, and the agent directory Required Permissions for A2A on Cloud Run roles/run.servicesInvoker granted to the Discovery Engine service account (service-<PROJECTNUMBER>@gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service. --- Registration Modes A2A Registration Every scaffolded agent serves the Agent-to-Agent protocol. A2A is the default — and only — registration type on Cloud Run and GKE (no reasoning engine to invoke natively). It also works on Agent Runtime via --registration-type a2a. For an ADK agent there the CLI warns against it, because Gemini Enterprise can invoke Agent Runtime natively via :streamQuery — prefer ADK registration in that case. For an agent built on another framework there is no ADK app to invoke natively, so A2A is the right mode on every target and the warning is expected. Pass the agent card URL and the command fetches the card and registers it; display name and description default to the card's name/description. Pass --display-name / --description to override the card defaults. On Agent Runtime, the card URL auto-builds from deploymentmetadata.json if you omit --agent-card-url. ADK Registration (default on Agent Runtime) ADK projects only. The agent must be deployed to Agent Runtime as an ADK app, since registration invokes it through :streamQuery. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills google/google-agents-cli-publish--d262ce