Skip to main content

Build

Google Agents CLI Scaffold

Google Agents CLIOfficialCertified

Creates, 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 template. Deployment targets and CI/CD: google-agents-cli-deploy.

  • New
  • v1.0.16
  • Reviewed Nov 26
  • No reviews yet

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.16

Scaffold an agents-cli project

Scaffold before writing agent code: the templates carry serving, A2A, eval files, the manifest and deployment wiring. This skill hands off to others with the Skill tool. No Skill tool: read that skill's SKILL.md in the sibling folder (../<skill-name>/SKILL.md) instead.

A new project starts after the user approves .agents-cli-spec.md. No approved spec yet: call the Skill tool with google-agents-cli-workflow and finish its design stage first.

Choose the template

The language and framework in the spec pick the --agent value. The framework's skill names its templates; on ADK: adk_python for Python (recommended, adk is an alias), adk_go for Go, plus experimental adk_java, adk_kotlin and adk_ts. Another framework scaffolds from its first-party extension's template, --agent google/agents-cli-extensions/core/<folder>/template (first-party folders include langchain and claude). --agent also takes any third-party template repo, <org>/<repo>[/<path>][@<ref>], or local@<path>; Find a first-party extension in google-agents-cli-workflow's references/extension.md says how to find <folder>.

The scaffold records language: and framework: in the manifest for later sessions. A2A serving comes with every template. Scaffold normally and keep the generated A2A code; writing the A2A surface by hand breaks the agent card. For the template notes and the files the template owns, read the framework's skill for this stage: on ADK, call the Skill tool with google-agents-cli-adk-code and read its references/adk-scaffold.md.

Create, enhance or upgrade

  1. Run agents-cli info. If it shows a project, skip to the done-condition.
  2. No project: run agents-cli scaffold create <name> --agent <template> --prototype from the parent directory, plus --deployment-target <target> when the spec's ## Deployment names one (then the session question below applies). create always makes a <name>/ subdirectory: move .agents-cli-spec.md into it, where the next session looks for it, and cd <name>.
  3. Hand-written agent code with no manifest: run agents-cli scaffold enhance from its root, with --base-template <template> for a bundled template other than adk_python, or an extension's template as the first argument (migrating an existing non-ADK agent backs up replaced files into .agents-cli-original/; read the template's bundled skill right after); with neither it assumes ADK Python. An ADK project that already runs as is and only needs a manifest can use --from-adk-project, which writes just agents-cli-manifest.yaml (detects name, language and agent directory) and renders no template; it rejects template flags such as --deployment-target and --agent-guidance-filename. Pass --agent-directory when the code is not in app/. On Python, then check the serving code imports: uv run python -c "import app.fast_api_app", with your agent directory in place of app. A ModuleNotFoundError (such as agentplatform.agent_engines) means enhance skipped the deployment target's dependencies. Scaffold a throwaway with the same --agent and --deployment-target plus --output-dir /tmp, uv add each dependencies entry in its pyproject.toml that yours lacks, and rerun the check.
  4. Except with --from-adk-project, pass --agent-guidance-filename for the coding agent you are running in: CLAUDE.md for Claude Code, GEMINI.md for Antigravity and Gemini CLI, AGENTS.md for any other.

Prototype first: --prototype skips CI/CD. With no target it also skips Terraform and the deployment files; with --deployment-target it keeps the single-project Terraform. To add a deployment target or CI/CD later, call the Skill tool with google-agents-cli-deploy.

  • With a deployment target, ask which session storage the agent needs when the framework's template offers a choice for that target; the framework's skill lists the options and a recommendation (ADK: --session-type, in adk-scaffold.md).
  • --memory-bank gives the agent memory of each user; only the first-party Claude Agent SDK template (core/claude/template) takes it. For ADK memory, see the topic index in the ADK code skill's references/recipes.md.

agents-cli scaffold upgrade merges a newer template into an existing project. Preview with --dry-run. --force overwrites the scaffolding files and skips the 3-way merge.

Need one file (Terraform, a CI workflow, a Dockerfile) without changing this project? Scaffold a throwaway project with --output-dir /tmp, copy the file, delete the throwaway.

For every flag, run agents-cli scaffold create --help or agents-cli scaffold enhance --help.

Done when agents-cli info prints the project with the chosen language and any .agents-cli-spec.md sits in the project root. After a new project, call the Skill tool with google-agents-cli-workflow for recipe study and build; otherwise return to the skill that sent you here.

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-workflowPlans 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…0 installs

Frequently asked questions about google-agents-cli-scaffold

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

Creates, 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 template. Deployment targets and CI/CD: google-agents-cli-deploy. 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-scaffold skill?

Run `npx @skills-hub-ai/cli install google-agents-cli-scaffold` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-agents-cli-scaffold/ 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-scaffold work with?

google-agents-cli-scaffold 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-scaffold 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-scaffold after installing it?

In Claude Code, type `/google-agents-cli-scaffold` (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-scaffold 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-scaffold)](https://skills-hub.ai/skills/google-agents-cli-scaffold)
HTML
<a href="https://skills-hub.ai/skills/google-agents-cli-scaffold"><img src="https://skills-hub.ai/api/badges/skill/google-agents-cli-scaffold" alt="Install on Skills Hub"></a>

More options in the badge docs.