google-agents-cli-publish

google-agents-cli-publish is a skill for Claude Code from google/agents-cli. It costs 61 tokens per session (1,472 once invoked), scanned A, original, Apache-2.0.

Instructions for publishing a deployed Google agent to Gemini Enterprise, Google's workplace service for finding and using business information and tools. It covers the agents-cli publish gemini-enterprise command and Agent Registry registration.

In plain words
What is it for?
Use it to register an agent running on Agent Runtime, Cloud Run, or GKE, including agents exposed through the Agent-to-Agent protocol. It also helps configure the required Google Cloud permissions.
Why use it?
It explains the prerequisites, permissions, deployment details, and registration choices needed before Gemini Enterprise can reach the agent. This avoids trying to register an agent that is not deployed or accessible.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

Part of the google-agents-cli plugin — 9 skills shipped together

Good fit Use it to register an agent running on Agent Runtime, Cloud Run, or GKE, including agents exposed through the Agent-to-Agent protocol. It also helps configure the required Google Cloud permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/google/agents-cli/google-agents-cli-publish
About the project

agents-cli is a command-line tool and collection of skills that guides coding assistants through building, evaluating, and deploying AI agents on Google's Gemini Enterprise Agent Platform. Developers use it with assistants such as Claude Code, Codex, and Antigravity CLI to work with Google Cloud agent services. The catalogue entries provide skills and a plugin for that development workflow.

google/agents-cli · 6,492 stars · on GitHub · google.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add google/agents-cli --skill google-agents-cli-publish
Clone the repo
git clone --depth 1 https://github.com/google/agents-cli

Made for: Claude Code.

Or install google-agents-cli, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-agents-cli-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/google/agents-cli/google-agents-cli-publish/github.svg)](https://agentmods.dev/skills/google/agents-cli/google-agents-cli-publish)
Your own site
<a href="https://agentmods.dev/skills/google/agents-cli/google-agents-cli-publish"><img src="https://agentmods.dev/badge/skills/google/agents-cli/google-agents-cli-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-agents-cli-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/google/agents-cli/google-agents-cli-publish"><img src="https://agentmods.dev/badge/skills/google/agents-cli/google-agents-cli-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 25 Nov 2026
  • Snyk warn 2 Dec 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01472
Opus 5.5 $0.00024 $0.00589
Sonnet 5.5 $0.00012 $0.00294
Haiku 4.5 $0.00006 $0.00147

Measured 2d ago against content hash de4c0923f79e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-agents-cli-publish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/google-agents-cli-publish/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Publish to Gemini Enterprise and Agent Registry

Run agents-cli info first: it prints the language and deployment target the sections below key off.

Before checking the prerequisites, read the framework's skill for this stage: the skill the project's guidance file (CLAUDE.md, GEMINI.md or AGENTS.md) names. On ADK, call the Skill tool with google-agents-cli-adk-code and read its references/adk-publish.md. No Skill tool: read its SKILL.md directly (../<skill-name>/ for a bundled skill, .agents/skills/<skill-name>/ for an extension's).

Optional, after a deploy: agents-cli publish gemini registers the agent with a Gemini Enterprise app (the Console now calls it a Gemini app). publish gemini-enterprise still works as a hidden alias. agents-cli publish gemini --help lists every flag and its env var. Not deployed yet: call the Skill tool with google-agents-cli-deploy.

Done when publish prints the registered agent and the user confirms it answers in the Gemini Enterprise app.

Prerequisites

  1. The agent is deployed and reachable.
  2. The Gemini Enterprise app exists. Create it in the Console; agents-cli publish gemini --list shows the apps in the project.
  3. The agent is text-based. Live and voice agents have no A2A card and the app has no live transport.
  4. On Agent Runtime, deployment_metadata.json from agents-cli deploy is in the project.
  5. Your account has Discovery Engine Editor on the project that hosts the app.

Agent Runtime

agents-cli publish gemini \
  --gemini-app-id projects/123456/locations/global/collections/default_collection/engines/my-app

The command reads the runtime ID from deployment_metadata.json and picks the registration type from the metadata. Override with --registration-type or --agent-runtime-id. Without metadata, non-interactive mode needs --registration-type.

On Agent Runtime the default type is adk: the Gemini app calls the engine through :streamQuery, with no agent card. It works only for a framework that declares the ADK runtime contract. Before you choose between adk and a2a, check the framework's skill: it says which one the agent supports there and which to prefer (on ADK, adk-publish.md prefers adk).

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -119 lines · -81 tokens per session de4c0923f79e
  2. 10d ago Changed 13cfadd96a2a
  3. 17d ago Changed 5795cc90f27b
  4. 22d ago Changed 448c900c490c
  5. 1mo ago Changed · +2 lines 4318d3f3bb62
  6. 1mo ago Changed 5f29434a9aab
  7. 1mo ago Changed ae77f96810d2
  8. 1mo ago Changed · +2 lines · +1 tokens per session 08a2ceb98956
  9. 1mo ago Changed 78e1b566647e
  10. 2mo ago First seen · 209 lines · 141 tokens per session scan A c93439f83475

Subscribe to this mod's changes

google-agents-cli-publish is a skill published in the GitHub repository google/agents-cli (6,492 stars, last pushed 3d ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,472 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

google-agents-cli-publish compared with skills from other repositories

google-agents-cli-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-agents-cli-publishgoogle/agents-cliSkill6.5k3d agoApache-2.0A61Claude Code
adk-student-evaluatormauripsale/doc-adk-trainingSkill882d agononeA59Claude Code, Codex
adk-skillmauripsale/doc-adk-trainingSkill882d agononeA33Claude Code, Codex
adk-go-self-reviewgoogle/adk-goSkill9.0kyesterdayApache-2.0A87Claude Code, Codex
potpie-clipotpie-ai/potpieSkill5.8kyesterdayApache-2.0A60Codex
potpie-infra-architecturepotpie-ai/potpieSkill5.8kyesterdayApache-2.0A43Claude Code, Codex
potpie-change-timelinepotpie-ai/potpieSkill5.8kyesterdayApache-2.0A43Claude Code, Codex