google-agents-cli-publish
O que ela faz
Esta skill orienta o registro de um agente implantado no app Gemini e no Agent Registry. É para desenvolvedores que querem que o agente apareça e possa ser usado no Gemini.
Quando usar
- ✓Quando seu agente está implantado e você quer registrá-lo no Gemini.
- ✓Quando você quer listar, atualizar ou excluir agentes no Agent Registry.
- ✓Quando você quer registrar um servidor MCP para um agente.
Link da skill
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-publish/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Registre meu agente ADK implantado no Gemini para que as pessoas possam usá-lo pelo app Gemini.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill verifica se o agente está implantado e acessível e depois usa a ferramenta de linha de comando agents para registrá-lo. No caso do Agent Runtime, ela lê o arquivo de detalhes da implantação para encontrar o agente automaticamente.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Gemini Registration
Requires: A deployed agent. For Agent Runtime in Gemini platform,
deployment_metadata.json(created byagents-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 app must exist — Create one in the Google Cloud console before registering
deployment_metadata.json(Agent Runtime only) — Created automatically byagents-cli deploy; contains the Agent Runtime ID, deployment target, the A2A flag, and the agent directory- Text-based agent — Live/voice (bidi) agents are not supported by the Gemini app, which has no
/run_livetransport. Register a text-based agent instead.
Required Permissions for A2A on Cloud Run
roles/run.servicesInvokergranted to the Discovery Engine service account (service-<PROJECT_NUMBER>@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 the Gemini app 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.
# A2A on Cloud Run / GKE. The card path depends on the project's language:
# Python -> /a2a/{app_name}/.well-known/agent-card.json
# Go -> /.well-known/agent-card.json
agents-cli publish gemini \
--agent-card-url https://my-service-abc123.us-east1.run.app/a2a/app/.well-known/agent-card.json \
--gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app
Pass --display-name / --description to override the card defaults. On Agent Runtime, the card URL auto-builds from deployment_metadata.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. An agent on another framework registers over A2A, so deploy it to Cloud Run or GKE and publish from there.
This is the default and recommended registration for ADK agents on Agent Runtime: the Gemini app invokes the agent natively via :streamQuery on its reasoning engine resource, authenticating end-to-end. Under the hood, :streamQuery dispatches to the AdkApp's streaming_agent_run_with_events method — when debugging an ADK invocation, search the runtime's reasoning_engine_stderr logs for that method name to trace the failure. It's also the path to use when the agent needs an OAuth authorization (--authorization-id). The agent is registered directly via its reasoning engine resource name; no agent card URL is needed.
agents-cli publish gemini \
--registration-type adk \
--agent-runtime-id projects/123456/locations/us-east1/reasoningEngines/789 \
--gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app \
--display-name "My Agent" \
--description "Handles customer queries" \
--tool-description "Answers questions about products"
Programmatic Mode (CI/CD)
The command is non-interactive by default — pass all required values via flags or environment variables. This makes it safe for CI/CD pipelines.
Via flags
agents-cli publish gemini \
--agent-runtime-id "$AGENT_RUNTIME_ID" \
--gemini-app-id "$GEMINI_APP_ID" \
--display-name "Production Agent" \
--registration-type adk
Via environment variables
Most flags have an env var alternative (--metadata-file, --interactive, and --list do not):
export AGENT_RUNTIME_ID="projects/123456/locations/us-east1/reasoningEngines/789"
export GEMINI_APP_ID="projects/123456/locations/global/collections/default_collection/engines/my-app"
export GEMINI_DISPLAY_NAME="Production Agent"
export GEMINI_DESCRIPTION="Handles customer queries"
agents-cli pub
Perguntas frequentes
O que precisa ser verdade antes de registrar?
O agente precisa já estar implantado e acessível, e o app Gemini precisa existir no console do Cloud.
Funciona com agentes de voz ao vivo?
Não, a descrição diz que agentes ao vivo ou de voz não são suportados, então é preciso um agente baseado em texto.
Preciso de permissões extras no Cloud Run?
Sim, a conta de serviço do Discovery Engine precisa do direito de invocar o serviço do Cloud Run.
Detalhes
Descrição original do autor
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini 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
repo: google/agents-cli
Popularidade
- Estrelas no GitHub
- 6,3 mil
- Posição no ranking
- #14372
- Licença
- Apache-2.0
- Atualizada em
- 27/10/2026
Comentários
- …
Mais skills deste repositório
google-agents-cli-adk-code
6,3 milAjuda seu agente a escrever código para agentes de IA com o Google ADK, incluindo ferramentas, callbacks, estado e padrões de orquestração.
google-agents-cli-deploy
6,3 milAjuda seu agente a implantar um agente de IA no Google Cloud, cobrindo Agent Runtime, Cloud Run, GKE, segredos, CI/CD e solução de problemas.
google-agents-cli-eval
6,3 milAjuda seu agente a avaliar um agente de IA com conjuntos de teste e pontuação, e depois descobrir por que as respostas falham.
google-agents-cli-observability
6,3 milAjuda seu agente a configurar rastreamento, registros e monitoramento de um agente de IA implantado no Google Cloud, para você ver o que ele faz.
Skills parecidas
add-model-provider
394 milPermite que seu agente conecte um novo provedor de modelos de IA ao OpenClaw com comandos seguros, guarde as chaves de API com segurança e faça um teste ao vivo.
acp-router
394 milAjuda seu agente a enviar uma tarefa a um assistente de programação, como Claude Code ou Cursor, pelo OpenClaw, para que o trabalho rode nessa ferramenta.
browser-automation
394 milEnsina seu agente a controlar páginas web passo a passo, incluindo logins, abas e recuperação quando uma página para de responder.