Skip to main content

Build

Google Agents CLI Workflow

Google Agents CLIOfficialCertified

Plans and builds new agents with agents-cli, in ADK or a framework with an agents-cli extension. Use when the user wants to build a new agent, even with no framework named; add memory, document search, OAuth, human approval, moderation or a schedule to an agent; resume work from .agents-cli-spec.md; run the agent locally; or override or add an agents-cli command.

  • New
  • v1.0.22
  • No reviews yet

Capabilities

  • Design and spec

    In an already-scaffolded project (agents-cli info shows a project), a…

  • Scaffold

    Call the Skill tool with google-agents-cli-scaffold

  • Build

  • Evaluate before deploy

    Call the Skill tool with google-agents-cli-eval and follow its loop

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.22

Build an agent with agents-cli

Work through the stages in order. At the start of each stage, and again after context compaction, call the Skill tool with the skill in its row. No Skill tool: read that skill's SKILL.md in the sibling folder (../<skill-name>/SKILL.md) instead.

Requires: google-agents-cli = 1.17.0
If version is behind, run: uv tool install "google-agents-cli
=1.17.0"

Stage Skill Done when
1. Detect language and framework this one the framework is known (new project: stage 2)
2. Design and spec this one; references/design.md beyond a single-tool agent the user approved .agents-cli-spec.md
3. Scaffold google-agents-cli-scaffold agents-cli info shows the project
4. Build this one, plus the framework's skill (google-agents-cli-adk-code on ADK) agents-cli run "<prompt>" gives the expected answer
5. Evaluate google-agents-cli-eval the last eval run after the last edit meets the agreed bar
6. Deploy, infrastructure, CI/CD google-agents-cli-deploy the user said yes to the deploy and the deployed agent answers
7. Publish google-agents-cli-publish the agent is registered
8. Observe (tier chosen in stage 6) google-agents-cli-observability observability section 1 is done

Resuming? Read .agents-cli-spec.md if it exists (the source of truth), then run agents-cli info.

1. Detect language and framework

  1. Run agents-cli info. Inside a project it prints the language, not the framework. Read framework: in agents-cli-manifest.yaml: google-adk means ADK. Any other value: read the framework skill the project's guidance file (CLAUDE.md, GEMINI.md or AGENTS.md) names.
  2. No manifest: read pyproject.toml, go.mod, build.gradle.kts or package.json. google-adk means ADK Python, google.golang.org/adk means ADK Go; Java, Kotlin and TypeScript ADK dependencies map to the experimental ADK templates. Another framework: find its extension (references/extension.md).
  3. A new project with no signal and no language in the request: stage 2 asks the stack.

2. Design and spec

In an already-scaffolded project (agents-cli info shows a project), a code change skips stages 2 and 3 unless it adds a capability from the trigger list below: update .agents-cli-spec.md if present and go to stage 4.

  • Interview the user in rounds (references/design.md, Rounds): each round asks every decision whose prerequisites are settled, numbered, with your recommended answer; then wait. Look facts up yourself; ask for the user's own data (hours, prices, policies) without suggesting values. Your first reply is a round, not a spec.
  • Cover the problem, the reply's content and format, the tools and data sources with their auth, the safety limits, and the deployment wish: prototype first (recommended) or a target now. For a target now, call the Skill tool with google-agents-cli-deploy to choose it, and record it under the spec's ## Deployment.
  • New project: the stack depends on the use case, so it comes in the last round: ADK Python (the default), ADK Go, experimental ADK Java, Kotlin or TypeScript, or a framework from a first-party extension, with your recommendation and a reason. Scaffold nothing until the user answers; choosing for them doesn't count. Done when ## Language and framework records their answer.
  • "Not ADK" or another named framework: use that framework's extension (references/extension.md); none matches: say so and offer ADK.
  • Scale to the agent: a single-tool agent needs a couple of questions and a short spec with ## Overview, ## Language and framework, ## Tools and ## Success criteria. Load nothing else unless the trigger list below matches. Multi-agent, external auth or safety-critical work gets the full playbook in references/design.md.
  • A live or voice agent on ADK: call the Skill tool with google-agents-cli-adk-code before the spec. Live changes the model and serving.
  • When you can't ask (a non-interactive run) or the user says "you pick", decide and list each decision under ## Assumptions; "you pick" still ends in spec approval.

Trigger. If the design needs any of: searching your
own documents · running shell or Python code on a user's behalf · a sandboxed or isolated per-user
environment · loading skills the agent picks up at runtime · work that spans days, resumes, or runs
unattended · remembering across conversations · approving a risky action before it executes ·
blocking harmful content or moderating what agents say · acting with a user's own API keys or
credentials · OAuth consent to reach a user's own data · delegating to sub-agents with isolated
context · speaking A2A to call remote agents (client side) · reacting to events or a schedule · researching a topic
online and reporting it with citations · generating images or video · monitoring a deployed
agent's quality from its production traces · talking to the agent by voice in real time: on ADK Python, a recipe implements it, not a scaffold flag.

For each match on an ADK project, call the Skill tool with google-agents-cli-adk-code and read its references/recipes.md before you write the spec. List each matching recipe in the spec, or on ADK Go the closest example it names.

Write .agents-cli-spec.md in the current directory, self-review it, and ask the user to approve it.

Done when the user approves the spec. Clone, scaffold and write code only after that.

3. Scaffold

Call the Skill tool with google-agents-cli-scaffold.

Done when agents-cli info prints the project and .agents-cli-spec.md is moved into it.

If the spec lists recipes, call the Skill tool with google-agents-cli-adk-code and study each one with its references/recipes.md before writing code. Done when the spec's ## Reference recipes says what you reuse from each.

4. Build

  • Edit the agent directory agents-cli info prints. Tools you write go in their own module (tools.py, tools.go) and return each failure the spec lists as a result the model can explain, not an exception.
  • After each change, smoke-test with agents-cli run "<prompt>", including one about several items (a date range, two orders); agents-cli playground opens a chat UI on 127.0.0.1 (--host to change).
  • Check behavior with eval cases. Unit tests (pytest, go test) cover code and each tool failure, and never assert on model output, which varies between runs.

Code preservation: change only what's asked; unrelated config, comments, formatting, .env and template files stay identical.

Models: keep the model the code names, the scaffold's default in a new project, unless the user asks to change it. Model names from training data are often retired or not served in the project's location. On a model 404, set GOOGLE_CLOUD_LOCATION in .env (try global) and keep the model name.

5. Evaluate before deploy

Call the Skill tool with google-agents-cli-eval and follow its loop.

Record the agreed bar as thresholds in the eval config, so eval run ends with RESULT: PASS|FAIL (...).

Done when the scores of the last eval run after the last edit meet the agreed bar and the user has seen them.

6. Deploy and beyond

Call the Skill tool with google-agents-cli-deploy before deploying, provisioning infrastructure or setting up CI/CD. Rerun the eval, paste every score, ask "Ready to deploy to dev?" and deploy only after an explicit yes. NEVER deploy without that yes.

References

File Read when
references/design.md Designing a non-trivial agent: questions, approaches, scope, the spec template
references/extension.md Overriding or adding a command, or adopting an extension

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Google Agents CLI

View source →
google-agents-cli-publishRegisters deployed agents in Gemini Enterprise and Agent Registry. Use when the user wants to publish the agent to Gemini Enterprise (the Console's Gemini app), register it over A2A from its agent card, or list, update or remove agents and…0 installsgoogle-agents-cli-adk-codeWrites and fixes ADK agent code in Python, Go, Java, Kotlin and TypeScript: tools, callbacks, state, sub-agents, graph workflows, MCP, Live voice and the ADK recipe catalog. Use when the project uses ADK or the user names it, and they want…0 installsgoogle-agents-cli-deployDeploys agents with agents-cli to Agent Runtime, Cloud Run or GKE. Use when the user wants to deploy or go to production, add a deployment target or CI/CD, set up Terraform, secrets or IAM, test or roll back a deployed agent, put it behind…0 installsgoogle-agents-cli-evalEvaluates agents with agents-cli: eval cases, LLM-judge metrics, scores and the fix loop. Use when the user wants to evaluate or test the agent's answers, write eval cases, measure hallucination or tool use, compare runs after a change,…0 installsgoogle-agents-cli-observabilityTraces and monitors agents, ADK or any OpenTelemetry app, locally or on Google Cloud. Use when the user wants traces or logs, token and cost tracking, alerts or dashboards, to store conversation transcripts or set their retention, to debug…0 installsgoogle-agents-cli-scaffoldCreates, enhances and upgrades agents-cli projects from a framework template. Use when the user wants to scaffold the project for an agent they designed, bring an existing agent under agents-cli, or upgrade a project to the latest…0 installs

Frequently asked questions about google-agents-cli-workflow

What does the google-agents-cli-workflow skill do?

Plans and builds new agents with agents-cli, in ADK or a framework with an agents-cli extension. Use when the user wants to build a new agent, even with no framework named; add memory, document search, OAuth, human approval, moderation or a schedule to an agent; resume work from .agents-cli-spec.md; run the agent locally; or override or add an agents-cli command. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the google-agents-cli-workflow skill?

Run `npx @skills-hub-ai/cli install google-agents-cli-workflow` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-agents-cli-workflow/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does google-agents-cli-workflow work with?

google-agents-cli-workflow runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the google-agents-cli-workflow skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use google-agents-cli-workflow after installing it?

In Claude Code, type `/google-agents-cli-workflow` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the google-agents-cli-workflow skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/google-agents-cli-workflow)](https://skills-hub.ai/skills/google-agents-cli-workflow)
HTML
<a href="https://skills-hub.ai/skills/google-agents-cli-workflow"><img src="https://skills-hub.ai/api/badges/skill/google-agents-cli-workflow" alt="Install on Skills Hub"></a>

More options in the badge docs.