google-agents-cli-publish

google-agents-cli-publish is a skill for Claude Code from google/agents-cli. It costs 142 tokens per session (2,765 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.

Part of the google-agents-cli plugin — 8 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,099 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 8 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 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,765 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 7 Oct 2026
  • Snyk pass 7 Oct 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.00142 $0.02765
Opus 5.5 $0.00057 $0.01106
Sonnet 5.5 $0.00028 $0.00553
Haiku 4.5 $0.00014 $0.00277

Measured 6d ago against content hash 08a2ceb98956, 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 6d 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 · 211 lines

How it starts

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

Gemini Registration

Requires: A deployed agent. For Agent Runtime in Gemini platform, deployment_metadata.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 app must exist — Create one in the Google Cloud console before registering
  3. deployment_metadata.json (Agent Runtime only) — Created automatically by agents-cli deploy; contains the Agent Runtime ID, deployment target, the A2A flag, and the agent directory
  4. Text-based agent — Live/voice (bidi) agents are not supported by the Gemini app, which has no /run_live transport. Register a text-based agent instead.

Required Permissions for A2A on Cloud Run

  • roles/run.servicesInvoker granted 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

Read the full file on GitHub · 211 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. 6d ago Changed · +2 lines · +1 tokens per session 08a2ceb98956
  2. 12d ago Changed 78e1b566647e
  3. 18d ago Changed · -6 lines c93439f83475
  4. 26d ago Changed · +1 lines 1469a0a15c74
  5. 1mo ago Changed · +2 lines 70368899c1a2
  6. 1mo ago Changed · +4 lines · -6 tokens per session 3b8a063f6a62
  7. 1mo ago First seen · 208 lines · 147 tokens per session scan A 8b85fed38437

Subscribe to this mod's changes

google-agents-cli-publish is a skill published in the GitHub repository google/agents-cli (6,099 stars, last pushed 6d ago), licensed Apache-2.0. It adds 142 tokens to every session and 2,765 once invoked, about $0.0006 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

Other skills, from other repositories

adk-student-evaluator

Acts as a student developer to evaluate ADK training modules. Follows a rigorous 5-step workflow to test labs and generate formal pedagogical reports. Use when asked to "evaluate", "test as a student", or "review" a training module.

mauripsale/doc-adk-training · 59 tokens

adk-skill

Use this skill for developing agents using the Google Agent Development Kit (ADK) in Python. Provides guidelines, best practices, and documentation.

mauripsale/doc-adk-training · 33 tokens

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens

potpie-cli

Use when the task is centered on running, explaining, configuring, or troubleshooting the potpie command: doctor, login, pot management, source registration, resolve/search/record, graph workbench reads/writes, resource (document payload) commands, and pot scope behavior.

potpie-ai/potpie · 60 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

grocery-prices

A skill to calculate grocery prices with country-specific taxes.

google/adk-go · 16 tokens