본문으로 건너뛰기

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-workflow

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.

경로
skills/google-agents-cli-workflow/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

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"

StageSkillDone when
1. Detect language and frameworkthis onethe framework is known (new project: stage 2)
2. Design and specthis one; references/design.md beyond a single-tool agentthe user approved .agents-cli-spec.md
3. Scaffoldgoogle-agents-cli-scaffoldagents-cli info shows the project
4. Buildthis one, plus the framework's skill (google-agents-cli-adk-code on ADK)agents-cli run "<prompt>" gives the expected answer
5. Evaluategoogle-agents-cli-evalthe last eval run after the last edit meets the agreed bar
6. Deploy, infrastructure, CI/CDgoogle-agents-cli-deploythe user said yes to the deploy and the deployed agent answers
7. Publishgoogle-agents-cli-publishthe agent is registered
8. Observe (tier chosen in stage 6)google-agents-cli-observabilityobservability 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). <!-- remove when agents-cli info reports the framework and detects it without a manifest -->
  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.

<!-- Mirrors the topic index in adk-code's recipes.md. If you extend one, extend the other. -->

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

FileRead when
references/design.mdDesigning a non-trivial agent: questions, approaches, scope, the spec template
references/extension.mdOverriding or adding a command, or adopting an extension

이 스킬의 파일

지원 파일 전체 둘러보기