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).
Install
With your agent
Install OMGSkills skill "google/agents-cli:google-agents-cli-publish" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/google/agents-cli /tmp/agents-cli && ln -s /tmp/agents-cli/skills/google-agents-cli-publish ~/.claude/skills/google-agents-cli-publish
From README
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 Agent must be deployed — the agent must be running and reachable Gemini Enterprise app must exist — Create one in Google Cloud Console → Gemini Enterprise → Apps before registering 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- @gcp-sa-discoveryengine.iam.gserviceaccount.com) on the Cloud Run service. --- Registration Modes A2A Registration Every scaffolded agent serves the Agent-to-Agent protocol.
