google-agents-cli-scaffold
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.
작성자를 위한 경고
- 1 "metadata" entries are ignored: expected short text keys and values
- Listed once through the skills extension, as skills/google-agents-cli-scaffold/SKILL.md: this copy is identical.
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
- Run
agents-cli info. If it shows a project, skip to the done-condition. - No project: run
agents-cli scaffold create <name> --agent <template> --prototypefrom the parent directory, plus--deployment-target <target>when the spec's## Deploymentnames one (then the session question below applies).createalways makes a<name>/subdirectory: move.agents-cli-spec.mdinto it, where the next session looks for it, andcd <name>. - Hand-written agent code with no manifest: run
agents-cli scaffold enhancefrom its root, with--base-template <template>for a bundled template other thanadk_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 justagents-cli-manifest.yaml(detects name, language and agent directory) and renders no template; it rejects template flags such as--deployment-targetand--agent-guidance-filename. Pass--agent-directorywhen the code is not inapp/. On Python, then check the serving code imports:uv run python -c "import app.fast_api_app", with your agent directory in place ofapp. AModuleNotFoundError(such asagentplatform.agent_engines) means enhance skipped the deployment target's dependencies. Scaffold a throwaway with the same--agentand--deployment-targetplus--output-dir /tmp,uv addeachdependenciesentry in itspyproject.tomlthat yours lacks, and rerun the check. <!-- remove when scaffold enhance merges the deployment target's dependencies --> - Except with
--from-adk-project, pass--agent-guidance-filenamefor the coding agent you are running in:CLAUDE.mdfor Claude Code,GEMINI.mdfor Antigravity and Gemini CLI,AGENTS.mdfor 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, inadk-scaffold.md). --memory-bankgives 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'sreferences/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.
이 스킬의 파일
이 스킬에는 보조 파일이 없습니다.