본문으로 건너뛰기

google/agents-cli

The CLI and skills that turn any coding assistant into an expert at creating, evaluating, and deploying AI agents on Google Cloud.

https://skillcdn.ai/gh/google/agents-cli

내 AI에 이 주소를 연결하면 이 스킬을 쓸 수 있어요. 연결 방법 보기

  • 미확인
  • 기본 브랜치main
  • 커밋75e3caa
  • 라이선스Apache-2.0
  • 검색단어
GitHub에서 보기

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.

경로
src/google/agents/cli/skills/data/google-agents-cli-scaffold/SKILL.md
라이선스
Apache-2.0
author
Google
license
Apache-2.0
version
1.17.0

작성자를 위한 경고

  • 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

  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. <!-- remove when scaffold enhance merges the deployment target's dependencies -->
  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.

이 스킬의 파일

이 스킬에는 보조 파일이 없습니다.

지원 파일 전체 둘러보기