[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6990XH0S4MNS7YTDAMNAAEW":3,"skill-same:01M6990XH0S4MNS7YTDAMNAAEW":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6990XH0S4MNS7YTDAMNAAEW","google-agents-cli-scaffold",null,"This skill should be used when the user wants to \"create an agent project\", \"start a new ADK project\", \"build me a new agent\", \"add CI\u002FCD to my project\", \"add deployment\", \"enhance my project\", or \"upgrade my project\". Part of the agents-cli skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (ADK projects: use google-agents-cli-adk-code) or deployment operations (use google-agents-cli-deploy).","google\u002Fagents-cli","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698ZVGDEBGAXVZGNKKKCRBQ",6349,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-scaffold\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[9,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"cli","google agents cli scaffold","scaffold","CI\u002FCD","template","options","apache","me","create","code","workflow","upgrade","uv","ci","project","new agent","projects","writing","adk","2026-11-10 10:12:30",false,"---\nname: google-agents-cli-scaffold\ndescription: >\n  This skill should be used when the user wants to \"create an agent project\",\n  \"start a new ADK project\", \"build me a new agent\", \"add CI\u002FCD to my project\",\n  \"add deployment\", \"enhance my project\", or \"upgrade my project\".\n  Part of the agents-cli skills suite.\n  Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands,\n  template options, deployment targets, and the prototype-first workflow.\n  Do NOT use for writing agent code (ADK projects: use google-agents-cli-adk-code) or\n  deployment operations (use google-agents-cli-deploy).\nmetadata:\n  author: Google\n  license: Apache-2.0\n  version: 1.14.0\n  requires:\n    bins:\n      - agents-cli\n    install: \"uv tool install google-agents-cli\"\n---\n\n# Project Scaffolding Guide\n\n> **Requires:** `agents-cli` (`uv tool install google-agents-cli`) — [install uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002Fgetting-started\u002Finstallation\u002Findex.md) first if needed.\n\nUse the `agents-cli` CLI to create new agent projects or enhance existing ones with deployment, CI\u002FCD, and infrastructure scaffolding.\n\n---\n\n## Prerequisite: Clarify Requirements (MANDATORY for new projects)\n\n**Before scaffolding a new project, load `\u002Fgoogle-agents-cli-workflow` and complete Phase 0** — clarify the user's requirements before running any `scaffold create` command. Ask what the agent should do, what tools\u002FAPIs it needs, and whether they want a prototype or full deployment.\n\n---\n\n## Step 1: Choose Architecture\n\n**Mapping user choices to CLI flags:**\n\n| Choice | CLI flag |\n|--------|----------|\n| Retrieval\u002FRAG, sandboxed execution, cross-session memory, OAuth consent, guardrails, scheduled runs | **No flag** — these come from clone-and-study recipes. **ADK Python:** see the topic index in `\u002Fgoogle-agents-cli-adk-code` → `references\u002Frecipes.md`; on other frameworks, see the agent catalog the framework template ships |\n| A2A protocol | built into the scaffolded app — scaffold normally (**ADK Python:** `--agent adk_python`, the default; **ADK Go:** `--agent adk_go`) |\n| Prototype (no deployment) | `--prototype` |\n| Deployment target | `--deployment-target \u003Cagent_runtime\\|cloud_run\\|gke>` |\n| CI\u002FCD runner | `--cicd-runner \u003Cgithub_actions\\|google_cloud_build>` |\n| Session storage | `--session-type \u003Cin_memory\\|cloud_sql\\|agent_platform_sessions>` |\n\n### Product name mapping\n\nCurrent names (and older names users may say) → CLI values (`vertexai` SDK package name unchanged):\n\n- Agent Runtime in Gemini platform (Agent Engine \u002F Vertex AI Agent Engine \u002F Agent Runtime) → `--deployment-target agent_runtime`\n- Sessions in Gemini platform (Agent Engine sessions \u002F Agent Platform Sessions) → `--session-type agent_platform_sessions`\n- Search \u002F Vector Search in Gemini platform (Vertex AI Search \u002F Vertex AI Vector Search) \u002F RAG → clone-and-study recipe, not a flag\n\n> **Removed flags.** `--datastore`, the `agentic_rag` template, and `agents-cli infra datastore` \u002F\n> `agents-cli data-ingestion` no longer exist. If you reach for one, you want a recipe instead.\n\n---\n\n## Step 2: Create or Enhance the Project\n\n### Create a New Project\n\n```bash\nagents-cli scaffold create \u003Cproject-name> \\\n  --agent \u003Ctemplate> \\\n  --deployment-target \u003Ctarget> \\\n  --region \u003Cregion> \\\n  --prototype\n```\n\n**Constraints:**\n- Project name must be **26 characters or less**, lowercase letters, numbers, and hyphens only.\n- Do NOT `mkdir` the project directory before running `create` — the CLI creates it automatically. If you mkdir first, `create` will fail or behave unexpectedly.\n- Pass `--agent-guidance-filename` for your IDE: `GEMINI.md` for Antigravity CLI, `CLAUDE.md` for Claude Code, `AGENTS.md` otherwise.\n- When enhancing an existing project, check where the agent code lives. If it's not in `app\u002F`, pass `--agent-directory \u003Cdir>` (e.g. `--agent-directory agent`). Getting this wrong causes enhance to miss or misplace files.\n\n### Reference Files\n\n| File | Contents |\n|------|----------|\n| `references\u002Fflags.md` | Full flag reference for `create` and `enhance` commands |\n\n### Enhance an Existing Project\n\n```bash\nagents-cli scaffold enhance . --deployment-target \u003Ctarget>\nagents-cli scaffold enhance . --cicd-runner \u003Crunner>\n```\n\nRun this from inside the project directory (or pass the path instead of `.`).\n\n### Upgrade a Project\n\nUpgrade an existing project to a newer agents-cli version, intelligently applying updates while preserving your customizations:\n\n```bash\nagents-cli scaffold upgrade                # Upgrade current directory\nagents-cli scaffold upgrade \u003Cproject-path> # Upgrade specific project\nagents-cli scaffold upgrade --dry-run      # Preview changes without applying\nagents-cli scaffold upgrade --auto-approve  # Auto-apply non-conflicting changes\nagents-cli scaffold upgrade --force        # Overwrite scaffolding files when smart-merge fails\nagents-cli scaffold upgrade --force --dry-run  # List what --force would overwrite\n```\n\n`--force` is a fallback for when smart-merge fails. Smart-merge also stops when the agents-cli version that created the project is not on PyPI, because it needs that version's template; use `--force` then too. It overwrites scaffolding files with the new template and keeps agent code, config files, `README.md`, the agent guidance file and eval datasets and config. It never removes dependencies or files the new template dropped (for example, a removed CI workflow), so remove unused ones by hand. Afterwards, check your imports and run your tests. Use `--dry-run` first to see which files change.\n\n### Execution Modes\n\nThe CLI defaults to **strict programmatic mode** — all required params must be supplied as CLI flags or a `UsageError` is raised. No approval flags needed. Pass all required params explicitly.\n\n### Common Workflows\n\n**Always ask the user before running these commands.** Present the options (CI\u002FCD runner, deployment target, etc.) and confirm before executing.\n\n```bash\n# Add deployment to an existing prototype (strict programmatic)\nagents-cli scaffold enhance . --deployment-target agent_runtime\n\n# Add CI\u002FCD pipeline (ask: GitHub Actions or Cloud Build?)\nagents-cli scaffold enhance . --cicd-runner github_actions\n```\n\n---\n\n## Template Options\n\n| Template | Language | Deployment | Description |\n|----------|----------|------------|-------------|\n| `adk_python` | Python | Agent Runtime, Cloud Run, GKE | Standard ADK agent (default); A2A protocol built in |\n| `adk_go` | Go | Agent Runtime, Cloud Run, GKE | Standard ADK Go agent; A2A protocol built in |\n\n> **`adk_python` and `adk_go` are the only built-in templates.** `adk_python` is the default, so a Go project\n> needs `--agent adk_go`. `adk` is an alias for `adk_python`.\n> Other frameworks and third-party templates ship as template repos you scaffold\n> from directly: `--agent google\u002Fagents-cli\u002Fextensions\u002Flangchain\u002Ftemplate@v1.14.0`, with nothing installed. First-party\n> templates live in `extensions\u002F` (`langchain\u002Ftemplate`, `claude\u002Ftemplate`); see\n> `\u002Fgoogle-agents-cli-workflow` → `references\u002Fextension.md` to publish your own. Capabilities\n> beyond the template — retrieval, sandboxed execution, memory, OAuth, guardrails — are\n> clone-and-study recipes, not templates. **ADK Python:** see the topic index in\n> `\u002Fgoogle-agents-cli-adk-code` → `references\u002Frecipes.md`.\n\n> **Live and voice agents:** no template. Scaffold `adk_python`, then follow the conversion checklist\n> in `\u002Fgoogle-agents-cli-adk-code` (`references\u002Fadk-python-live.md`, \"Converting a scaffolded\n> project to Live\"). The model swap is one of five edits.\n\n---\n\n## Deployment Options\n\n| Target | Description |\n|--------|-------------|\n| `agent_runtime` | Managed by Google (Agent Runtime). Container-based — Agent Runtime builds the project Dockerfile. Sessions handled automatically. |\n| `cloud_run` | Container-based deployment. More control; you build and deploy the Dockerfile. |\n| `gke` | Container-based on GKE Autopilot. Full Kubernetes control. |\n| `none` | No deployment scaffolding. Code only (still includes a Dockerfile). |\n\n### \"Prototype First\" Pattern (Recommended)\n\nStart with `--prototype` to skip CI\u002FCD and Terraform. Focus on getting the agent working first, then add deployment later with `scaffold enhance`:\n\n```bash\n# Step 1: Create a prototype\nagents-cli scaffold create my-agent --agent adk_python --prototype\n\n# Step 2: Iterate on the agent code...\n\n# Step 3: Add deployment when ready\nagents-cli scaffold enhance . --deployment-target agent_runtime\n```\n\n### Agent Runtime and session_type\n\nWhen using `agent_runtime` as the deployment target, Agent Runtime manages sessions internally. If your code sets a `session_type`, clear it — Agent Runtime overrides it.\n\n---\n\n## Step 3: Load Dev Workflow\n\nAfter scaffolding, immediately load `\u002Fgoogle-agents-cli-workflow` — it contains the development workflow, coding guidelines, and operational rules you must follow when implementing the agent.\n\nWhat you edit differs by language; `\u002Fgoogle-agents-cli-adk-code` has the annotated tree for each,\nin `references\u002Fadk-python.md` and `references\u002Fadk-go.md`.\n\n- **ADK Python (`--agent adk_python`)** — customize `app\u002Fagent.py` and `app\u002Ftools.py`.\n- **ADK Go (`--agent adk_go`)** — customize `app\u002Fagent.go`.\n\n`.env` is yours. Preserve everything else the template generated — it wires up serving, sessions\nand the built-in A2A surface.\n\n**Adapting a recipe:** copy its `app\u002F`, `infra\u002Fterraform\u002F`, and any ingestion or provisioning into\nyour scaffolded project, then run provisioning from the recipe's own `Makefile` (e.g.\n`make setup-infra`). Start from its `AGENTS.md`.\n\n**Verifying your agent works:** Use `agents-cli run \"test prompt\"` for quick smoke tests, then `agents-cli eval run` for systematic validation. Do NOT write pytest tests that assert on LLM response content, that belongs in eval.\n\n---\n\n## Scaffold as Reference\n\nWhen you need specific files (Terraform, CI\u002FCD workflows, Dockerfile) but don't want to scaffold the current project directly, create a temporary reference project in `\u002Ftmp\u002F`:\n\n```bash\nagents-cli scaffold create ref-project --output-dir \u002Ftmp \\\n  --agent adk_python \\\n  --deployment-target cloud_run\n```\n\nInspect the generated files, adapt what you need, and copy into the actual project. Delete the reference project when done.\n\nThis is useful for:\n- Non-standard project structures that `enhance` can't handle\n- Cherry-picking specific infrastructure files\n- Understanding what the CLI generates before committing to it\n\n---\n\n## Critical Rules\n\n- **NEVER skip requirements clarification** — load `\u002Fgoogle-agents-cli-workflow` Phase 0 and clarify the user's intent before running `scaffold create`\n- **NEVER change the model** in existing code unless explicitly asked\n- **NEVER `mkdir` before `create`** — the CLI creates the directory; pre-creating it causes enhance mode instead of create mode\n- **NEVER create a Git repo or push to remote without asking** — confirm repo name, public vs private, and whether the user wants it created at all\n- **Always ask before choosing CI\u002FCD runner** — present GitHub Actions and Cloud Build as options, don't default silently\n- **Agent Runtime clears session_type** — if deploying to `agent_runtime`, remove any `session_type` setting from your code\n- **Start with `--prototype`** for quick iteration — add deployment later with `enhance`\n- **Project names** must be ≤26 characters, lowercase, letters\u002Fnumbers\u002Fhyphens only\n- **NEVER write A2A code from scratch** — A2A is built into the scaffolded app (the `adk_python` and `adk_go` templates and framework templates alike); each language's A2A surface (import paths, `AgentCard` schema etc.) is non-trivial and changes across versions. Scaffold normally; never hand-write the A2A surface. (The only sanctioned A2A hand-edit is *removing* the generated wiring for a **Live** agent, which can't be served over A2A — see `\u002Fgoogle-agents-cli-adk-code`, `references\u002Fadk-python-live.md`.)\n\n---\n\n# Examples\n\nA2A project:\nUser says: \"Build me a Python agent that exposes A2A and deploys to Cloud Run\"\nActions:\n1. Follow the standard flow (understand requirements, choose architecture, scaffold)\n2. `agents-cli scaffold create my-a2a-agent --agent adk_python --deployment-target cloud_run --prototype`\nResult: Valid A2A imports and Dockerfile — no manual A2A code written.\n\n---\n\nGo project:\nUser says: \"Build me a Go agent that deploys to Cloud Run\"\nActions:\n1. Follow the standard flow (understand requirements, choose architecture, scaffold)\n2. `agents-cli scaffold create my-go-agent --agent adk_go --deployment-target cloud_run --prototype`\nResult: Go project with `app\u002Fagent.go`, the launcher in `main.go`, and the A2A card at the root.\n\n---\n\n## Troubleshooting\n\n### `agents-cli` command not found\n\nSee `\u002Fgoogle-agents-cli-workflow` → **Setup** section.\n\n---\n\n## Related Skills\n\n- `\u002Fgoogle-agents-cli-workflow` — Development workflow, coding guidelines, and the build-evaluate-deploy lifecycle\n- `\u002Fgoogle-agents-cli-adk-code` — ADK API quick reference for writing agent code, including the graph Workflow API\n- `\u002Fgoogle-agents-cli-deploy` — Deployment targets, CI\u002FCD pipelines, and production workflows\n- `\u002Fgoogle-agents-cli-eval` — Evaluation methodology, dataset schema, and the eval-fix loop\n","# Project Scaffolding Guide\n\n> **Requires:** `agents-cli` (`uv tool install google-agents-cli`) — [install uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002Fgetting-started\u002Finstallation\u002Findex.md) first if needed.\n\nUse the `agents-cli` CLI to create new agent projects or enhance existing ones with deployment, CI\u002FCD, and infrastructure scaffolding.\n\n---\n\n## Prerequisite: Clarify Requirements (MANDATORY for new projects)\n\n**Before scaffolding a new project, load `\u002Fgoogle-agents-cli-workflow` and complete Phase 0** — clarify the user's requirements before running any `scaffold create` command. Ask what the agent should do, what tools\u002FAPIs it needs, and whether they want a prototype or full deployment.\n\n---\n\n## Step 1: Choose Architecture\n\n**Mapping user choices to CLI flags:**\n\n| Choice | CLI flag |\n|--------|----------|\n| Retrieval\u002FRAG, sandboxed execution, cross-session memory, OAuth consent, guardrails, scheduled runs | **No flag** — these come from clone-and-study recipes. **ADK Python:** see the topic index in `\u002Fgoogle-agents-cli-adk-code` → `references\u002Frecipes.md`; on other frameworks, see the agent catalog the framework template ships |\n| A2A protocol | built into the scaffolded app — scaffold normally (**ADK Python:** `--agent adk_python`, the default; **ADK Go:** `--agent adk_go`) |\n| Prototype (no deployment) | `--prototype` |\n| Deployment target | `--deployment-target \u003Cagent_runtime\\|cloud_run\\|gke>` |\n| CI\u002FCD runner | `--cicd-runner \u003Cgithub_actions\\|google_cloud_build>` |\n| Session storage | `--session-type \u003Cin_memory\\|cloud_sql\\|agent_platform_sessions>` |\n\n### Product name mapping\n\nCurrent names (and older names users may say) → CLI values (`vertexai` SDK package name unchanged):\n\n- Agent Runtime in Gemini platform (Agent Engine \u002F Vertex AI Agent Engine \u002F Agent Runtime) → `--deployment-target agent_runtime`\n- Sessions in Gemini platform (Agent Engine sessions \u002F Agent Platform Sessions) → `--session-type agent_platform_sessions`\n- Search \u002F Vector Search in Gemini platform (Vertex AI Search \u002F Vertex AI Vector Search) \u002F RAG → clone-and-study recipe, not a flag\n\n> **Removed flags.** `--datastore`, the `agentic_rag` template, and `agents-cli infra datastore` \u002F\n> `agents-cli data-ingestion` no longer exist. If you reach for one, you want a recipe instead.\n\n---\n\n## Step 2: Create or Enhance the Project\n\n### Create a New Project\n\n```bash\nagents-cli scaffold create \u003Cproject-name> \\\n  --agent \u003Ctemplate> \\\n  --deployment-target \u003Ctarget> \\\n  --region \u003Cregion> \\\n  --prototype\n```\n\n**Constraints:**\n- Project name must be **26 characters or less**, lowercase letters, numbers, and hyphens only.\n- Do NOT `mkdir` the project directory before running `create` — the CLI creates it automatically. If you mkdir first, `create` will fail or behave unexpectedly.\n- Pass `--agent-guidance-filename` for your IDE: `GEMINI.md` for Antigravity CLI, `CLAUDE.md` for Claude Code, `AGENTS.md` otherwise.\n- When enhancing an existing project, check where the agent code lives. If it's not in `app\u002F`, pass `--agent-directory \u003Cdir>` (e.g. `--agent-directory agent`). Getting this wrong causes enhance to miss or misplace files.\n\n### Reference Files\n\n| File | Contents |\n|------|----------|\n| `references\u002Fflags.md` | Full flag reference for `create` and `enhance` commands |\n\n### Enhance an Existing Project\n\n```bash\nagents-cli scaffold enhance . --deployment-target \u003Ctarget>\nagents-cli scaffold enhance . --cicd-runner \u003Crunner>\n```\n\nRun this from inside the project directory (or pass the path instead of `.`).\n\n### Upgrade a Project\n\nUpgrade an existing project to a newer agents-cli version, intelligently applying updates while preserving your customizations:\n\n```bash\nagents-cli scaffold upgrade                # Upgrade current directory\nagents-cli scaffold upgrade \u003Cproject-path> # Upgrade specific project\nagents-cli scaffold upgrade --dry-run      # Preview changes without applying\nagents-cli scaffold upgrade --auto-approve  # Auto-apply non-conflicting changes\nagents-cli scaffold upgrade --force        # Overwrite scaffolding files when smart-merge fails\nagents-cli scaffold upgrade --force --dry-run  # List what --force would overwrite\n```\n\n`--force` is a fallback for when smart-merge fails. Smart-merge also stops when the agents-cli version that created the project is not on PyPI, because it needs that version's template; use `--force` then too. It overwrites scaffolding files with the new template and keeps agent code, config files, `README.md`, the agent guidance file and eval datasets and config. It never removes dependencies or files the new template dropped (for example, a removed CI workflow), so remove unused ones by hand. Afterwards, check your imports and run your tests. Use `--dry-run` first to see which files change.\n\n### Execution Modes\n\nThe CLI defaults to **strict programmatic mode** — all required params must be supplied as CLI flags or a `UsageError` is raised. No approval flags needed. Pass all required params explicitly.\n\n### Common Workflows\n\n**Always ask the user before running these commands.** Present the options (CI\u002FCD runner, deployment target, etc.) and confirm before executing.\n\n```bash\n# Add deployment to an existing prototype (strict programmatic)\nagents-cli scaffold enhance . --deployment-target agent_runtime\n\n# Add CI\u002FCD pipeline (ask: GitHub Actions or Cloud Build?)\nagents-cli scaffold enhance . --cicd-runner github_actions\n```\n\n---\n\n## Template Options\n\n| Template | Language | Deployment | Description |\n|----------|----------|------------|-------------|\n| `adk_python` | Python | Agent Runtime, Cloud Run, GKE | Standard ADK agent (default); A2A protocol built in |\n| `adk_go` | Go | Agent Runtime, Cloud Run, GKE | Standard ADK Go agent; A2A protocol built in |\n\n> **`adk_python` and `adk_go` are the only built-in templates.** `adk_python` is the default, so a Go project\n> needs `--agent adk_go`. `adk` is an alias for `adk_python`.\n> Other frameworks and third-party templates ship as template repos you scaffold\n> from directly: `--agent google\u002Fagents-cli\u002Fextensions\u002Flangchain\u002Ftemplate@v1.14.0`, with nothing installed. First-party\n> templates live in `extensions\u002F` (`langchain\u002Ftemplate`, `claude\u002Ftemplate`); see\n> `\u002Fgoogle-agents-cli-workflow` → `references\u002Fextension.md` to publish your own. Capabilities\n> beyond the template — retrieval, sandboxed execution, memory, OAuth, guardrails — are\n> clone-and-study recipes, not templates. **ADK Python:** see the topic index in\n> `\u002Fgoogle-agents-cli-adk-code` → `references\u002Frecipes.md`.\n\n> **Live and voice agents:** no template. Scaffold `adk_python`, then follow the conversion checklist\n> in `\u002Fgoogle-agents-cli-adk-code` (`references\u002Fadk-python-live.md`, \"Converting a scaffolded\n> project to Live\"). The model swap is one of five edits.\n\n---\n\n## Deployment Options\n\n| Target | Description |\n|--------|-------------|\n| `agent_runtime` | Managed by Google (Agent Runtime). Container-based — Agent Runtime builds the project Dockerfile. Sessions handled automatically. |\n| `cloud_run` | Container-based deployment. More control; you build and deploy the Dockerfile. |\n| `gke` | Container-based on GKE Autopilot. Full Kubernetes control. |\n| `none` | No deployment scaffolding. Code only (still includes a Dockerfile). |\n\n### \"Prototype First\" Pattern (Recommended)\n\nStart with `--prototype` to skip CI\u002FCD and Terraform. Focus on getting the agent working first, then add deployment later with `scaffold enhance`:\n\n```bash\n# Step 1: Create a prototype\nagents-cli scaffold create my-agent --agent adk_python --prototype\n\n# Step 2: Iterate on the agent code...\n\n# Step 3: Add deployment when ready\nagents-cli scaffold enhance . --deployment-target agent_runtime\n```\n\n### Agent Runtime and session_type\n\nWhen using `agent_runtime` as the deployment target, Agent Runtime manages sessions internally. If your code sets a `session_type`, clear it — Agent Runtime overrides it.\n\n---\n\n## Step 3: Load Dev Workflow\n\nAfter scaffolding, immediately load `\u002Fgoogle-agents-cli-workflow` — it contains the development workflow, coding guidelines, and operational rules you must follow when implementing the agent.\n\nWhat you edit differs by language; `\u002Fgoogle-agents-cli-adk-code` has the annotated tree for each,\nin `references\u002Fadk-python.md` and `references\u002Fadk-go.md`.\n\n- **ADK Python (`--agent adk_python`)** — customize `app\u002Fagent.py` and `app\u002Ftools.py`.\n- **ADK Go (`--agent adk_go`)** — customize `app\u002Fagent.go`.\n\n`.env` is yours. Preserve everything else the template generated — it wires up serving, sessions\nand the built-in A2A surface.\n\n**Adapting a recipe:** copy its `app\u002F`, `infra\u002Fterraform\u002F`, and any ingestion or provisioning into\nyour scaffolded project, then run provisioning from the recipe's own `Makefile` (e.g.\n`make setup-infra`). Start from its `AGENTS.md`.\n\n**Verifying your agent works:** Use `agents-cli run \"test prompt\"` for quick smoke tests, then `agents-cli eval run` for systematic validation. Do NOT write pytest tests that assert on LLM response content, that belongs in eval.\n\n---\n\n## Scaffold as Reference\n\nWhen you need specific files (Terraform, CI\u002FCD workflows, Dockerfile) but don't want to scaffold the current project directly, create a temporary reference project in `\u002Ftmp\u002F`:\n\n```bash\nagents-cli scaffold create ref-project --output-dir \u002Ftmp \\\n  --agent adk_python \\\n  --deployment-target cloud_run\n```\n\nInspect the generated files, adapt what you need, and copy into the actual project. Delete the reference project when done.\n\nThis is useful for:\n- Non-standard project structures that `enhance` can't handle\n- Cherry-picking specific infrastructure files\n- Understanding what the CLI generates before committing to it\n\n---\n\n## Critical Rules\n\n- **NEVER skip requirements clarification** — load `\u002Fgoogle-agents-cli-workflow` Phase 0 and clarify the user's intent before running `scaffold create`\n- **NEVER change the model** in existing code unless explicitly asked\n- **NEVER `mkdir` before `create`** — the CLI creates the directory; pre-creating it causes enhance mode instead of create mode\n- **NEVER create a Git repo or push to remote without asking** — confirm repo name, public vs private, and whether the user wants it created at all\n- **Always ask before choosing CI\u002FCD runner** — present GitHub Actions and Cloud Build as options, don't default silently\n- **Agent Runtime clears session_type** — if deploying to `agent_runtime`, remove any `session_type` setting from your code\n- **Start with `--prototype`** for quick iteration — add deployment later with `enhance`\n- **Project names** must be ≤26 characters, lowercase, letters\u002Fnumbers\u002Fhyphens only\n- **NEVER write A2A code from scratch** — A2A is built into the scaffolded app (the `adk_python` and `adk_go` templates and framework templates alike); each language's A2A surface (import paths, `AgentCard` schema etc.) is non-trivial and changes across versions. Scaffold normally; never hand-write the A2A surface. (The only sanctioned A2A hand-edit is *removing* the generated wiring for a **Live** agent, which can't be served over A2A — see `\u002Fgoogle-agents-cli-adk-code`, `references\u002Fadk-python-live.md`.)\n\n---\n\n# Examples\n\nA2A project:\nUser says: \"Build me a Python agent that exposes A2A and deploys to Cloud Run\"\nActions:\n1. Follow the standard flow (understand requirements, choose architecture, scaffold)\n2. `agents-cli scaffold create my-a2a-agent --agent adk_python --deployment-target cloud_run --prototype`\nResult: Valid A2A imports and Dockerfile — no manual A2A code written.\n\n---\n\nGo project:\nUser says: \"Build me a Go agent that deploys to Cloud Run\"\nActions:\n1. Follow the standard flow (understand requirements, choose architecture, scaffold)\n2. `agents-cli scaffold create my-go-agent --agent adk_go --deployment-target cloud_run --prototype`\nResult: Go project with `app\u002Fagent.go`, the launcher in `main.go`, and the A2A card at the root.\n\n---\n\n## Troubleshooting\n\n### `agents-cli` command not found\n\nSee `\u002Fgoogle-agents-cli-workflow` → **Setup** section.\n\n---\n\n## Related Skills\n\n- `\u002Fgoogle-agents-cli-workflow` — Development workflow, coding guidelines, and the build-evaluate-deploy lifecycle\n- `\u002Fgoogle-agents-cli-adk-code` — ADK API quick reference for writing agent code, including the graph Workflow API\n- `\u002Fgoogle-agents-cli-deploy` — Deployment targets, CI\u002FCD pipelines, and production workflows\n- `\u002Fgoogle-agents-cli-eval` — Evaluation methodology, dataset schema, and the eval-fix loop\n",{"name":5,"metadata":51,"description":57},{"author":12,"license":15,"version":52,"requires":53},"1.14.0",{"bins":54,"install":56},[55],"agents-cli","uv tool install google-agents-cli","This skill should be used when the user wants to \"create an agent project\", \"start a new ADK project\", \"build me a new agent\", \"add CI\u002FCD to my project\", \"add deployment\", \"enhance my project\", or \"upgrade my project\". Part of the agents-cli skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (ADK projects: use google-agents-cli-adk-code) or deployment operations (use google-agents-cli-deploy).\n","main","6eedbdc2f44c388cbfc5f305eb83b9924cfefebb","src\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-scaffold",731,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli","https:\u002F\u002Fgoogle.github.io\u002Fagents-cli\u002F","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-12 23:04:58",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add google\u002Fagents-cli --skill google-agents-cli-scaffold",{"tool":74,"command":75},"bunx","bunx skills add google\u002Fagents-cli --skill google-agents-cli-scaffold",{"tool":77,"command":78},"pnpm","pnpm dlx skills add google\u002Fagents-cli --skill google-agents-cli-scaffold","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-scaffold\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fflags.md","REFERENCE","参考文档",5882,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-scaffold\u002Freferences\u002Fflags.md",[89,116,139,164,183,207],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":102,"publishedAt":46},"01M6990ZGJV6CHR6CZK81S58CN","google-agents-cli-workflow","This skill should be used when the user wants to \"develop an agent\", \"build an agent using ADK\", \"run the agent locally\", \"debug agent code\", \"test an agent\", \"deploy an agent\", \"publish an agent\", \"monitor an agent\", or needs the ADK (Agent Development Kit) development lifecycle and coding guidelines. Entrypoint for building ADK agents. Always active — provides the full workflow (scaffold, build, evaluate, deploy, publish, observe), code preservation rules, model selection guidance, and troubleshooting steps for ADK or any agent development.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-workflow\u002FSKILL.md",[95,96,97],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[9,103,27,37,45,104,105,106,107,108,109,110,111,39,36,112,113,33,114,115],"google agents cli workflow","agent development kit","agent development","development lifecycle","model","observe","selection","model selection","kit","debug agent","publish","active","run",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":124,"publishedAt":46},"01M6990VP634A9G6052KQCZNYJ","google-agents-cli-publish","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\u002Fupdate\u002Fdelete 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 use for deployment (use google-agents-cli-deploy).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-publish\u002FSKILL.md",[122,123],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[9,27,125,113,45,126,127,39,128,129,130,131,132,33,133,134,135,136,137,138],"google agents cli publish","MCP","programmatic","auto","mcp server","agent registry","server","delete","command","update","install","suite","fleet","registry",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":153,"publishedAt":46},"01M6990SFDY0JKXYP921BKRJYE","google-agents-cli-observability","This skill should be used when the user wants to \"set up tracing\", \"monitor my agent\", \"configure logging\", \"add observability\", \"debug production traffic\", or needs guidance on monitoring deployed agents, including ADK (Agent Development Kit) agents. Covers Cloud Trace, prompt-response logging, BigQuery Agent Analytics, third-party integrations (AgentOps, Phoenix, MLflow, etc.), and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment setup (use google-agents-cli-deploy) or API code patterns (use google-agents-cli-adk-code).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-observability\u002FSKILL.md",[145,148,149,150],{"categoryNo":146,"categoryName":147,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000013","分析与可视化",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},{"categoryNo":151,"categoryName":152,"taxonomyType":100,"taxonomyTypeDesc":101},"01JBSEEDCAT000000000000033","数据分析师",[9,27,154,155,45,104,105,156,157,111,39,158,159,160,36,161,162,33,135,163],"google agents cli observability","observability","SET","up","traffic","configure","code patterns","api","monitoring","mlflow",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":172,"publishedAt":46},"01M6990PXZ0S6NHYV8PGGVFT6E","google-agents-cli-eval","This skill should be used when the user wants to \"run an evaluation\", \"evaluate my agent\", \"evaluate my ADK agent\", \"write an eval dataset\", \"analyze eval failures\", \"compare eval results\", \"optimize agent\", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-eval\u002FSKILL.md",[170,171],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},[9,27,173,174,45,175,41,176,39,177,160,36,178,161,179,180,181,33,115,182],"google agents cli eval","eval","project scaffolding","scaffolding","dataset","scoring","common","analyze","optimize","write",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":195,"publishedAt":46},"01M6990MAHH0X6XCNVB74Q67P6","google-agents-cli-deploy","This skill should be used when the user wants to \"deploy an agent\", \"deploy my ADK agent\", \"set up CI\u002FCD\", \"configure secrets\", \"troubleshoot a deployment\", or needs guidance on Agent Runtime, Cloud Run, or GKE deployment targets, or binding an agent to an Agent Gateway. Covers deployment workflows, service accounts, rollback, and production infrastructure. Applies to any framework agents-cli deploys (ADK, LangChain, ...). Part of the agents-cli skills suite. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), evaluation (use google-agents-cli-eval), or project scaffolding (use google-agents-cli-scaffold).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-deploy\u002FSKILL.md",[189,192,193,194],{"categoryNo":190,"categoryName":191,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},[9,196,27,197,45,41,40,174,39,198,160,199,115,200,201,202,203,204,205,206],"google agents cli deploy","deploy","workflows","gke","Evaluation","langchain","infrastructure","do","cloud run","for","deployment",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":215,"publishedAt":46},"01M6990HY6R7MS0J02P09ZTT89","google-agents-cli-adk-code","This skill should be used when the user wants to \"write agent code\", \"build an agent with ADK\", \"add a tool\", \"create a callback\", \"define an agent\", \"use state management\" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fagents-cli\u002Fblob\u002Fmain\u002Fsrc\u002Fgoogle\u002Fagents\u002Fcli\u002Fskills\u002Fdata\u002Fgoogle-agents-cli-adk-code\u002FSKILL.md",[213,214],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":98,"categoryName":99,"taxonomyType":100,"taxonomyTypeDesc":101},[9,45,27,216,36,104,105,217,218,219,41,176,111,39,220,37,161,35,33,182],"google agents cli adk code","quick","quick reference","types","orchestration"]