google-agents-cli-workflow
Skill này làm gì
Skill là hướng dẫn chính để xây dựng, kiểm thử, triển khai và giám sát agent với Agent Development Kit của Google. Skill dành cho lập trình viên muốn có thứ tự các bước rõ ràng từ ý tưởng đến agent đang chạy.
Khi nào nên dùng
- ✓Khi bạn muốn xây một agent AI bằng Agent Development Kit từ đầu đến cuối.
- ✓Khi bạn cần chạy, gỡ lỗi hoặc kiểm thử một agent trên máy cục bộ.
- ✓Khi bạn muốn biết nên dùng skill nào cho từng giai đoạn của dự án agent.
Liên kết skill
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-workflow/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hướng dẫn tôi xây dựng một agent ADK xử lý hoàn trả hàng, từ lập kế hoạch và thiết lập đến chạy cục bộ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill liệt kê các giai đoạn phát triển agent và chỉ tới skill phù hợp cho từng giai đoạn. Skill yêu cầu bạn làm rõ yêu cầu trước, sau đó tạo khung dự án và chạy agent qua từng giai đoạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Agent Development Workflow & Guidelines
agents-cli is a CLI and skills toolkit for building, evaluating, and deploying agents on Google Cloud. It works with any coding agent — Antigravity CLI, Claude Code, Codex, or others — and with the agent framework of your choice (the Agent Development Kit (ADK) by default). Install with uvx google-agents-cli setup.
Before writing agent code, make sure a scaffolded project exists (see Phase 2). Skipping scaffolding loses eval boilerplate, CI/CD config, and project conventions.
Requires: google-agents-cli
= 1.12.0 If version is behind, run: uv tool install "google-agents-cli=1.12.0"
Check version: agents-cli info Install uv first if needed.
Session Continuity & Skill Cross-References
Re-read the relevant skill before each phase — not after you've already started and hit a problem. Context compaction may have dropped earlier skill content. If skills are not available, run uvx google-agents-cli setup to install them.
| Phase | Skill | When to load |
|---|---|---|
| 0 — Understand | — | No skill needed — read .agents-cli-spec.md if present, else clarify goals with the user |
| 1 — Study recipes | /google-agents-cli-adk-code |
Load it during design, before scaffolding. Python: the references/recipes.md topic index maps a need to the recipe that implements it. Go: the upstream examples/ are the equivalent. Yes, load this early. |
| 2 — Scaffold | /google-agents-cli-scaffold |
Before creating or enhancing a project |
| 3 — Build | /google-agents-cli-adk-code |
Before writing agent code — API patterns, tools, callbacks, state |
| 4 — Evaluate | /google-agents-cli-eval |
Before running any eval — dataset schema, metrics, eval-fix loop |
| 5 — Deploy | /google-agents-cli-deploy |
Before deploying — target selection, troubleshooting 403/timeouts |
| 6 — Publish | /google-agents-cli-publish |
After deploying, if registering with Gemini (optional) |
| 7 — Observe | /google-agents-cli-observability |
After deploying — traces, logging, monitoring setup |
Setup
If agents-cli is not installed:
uv tool install google-agents-cli
uv command not found
Install uv following the official installation guide.
Product name mapping
Users name products inconsistently (Vertex AI or Agent Platform → Gemini platform, Agent Engine or Agent Runtime → Agent Runtime in Gemini platform, etc.). Map user terms to CLI values using references/terminology.md.
Phase 0: Understand
Before writing or scaffolding anything, understand what you're building — through a design dialogue, not a checklist. Load references/brainstorming.md and follow it: ask one question at a time, propose 2–3 architecture approaches for non-trivial agents, and validate the design before any scaffolding.
If .agents-cli-spec.md exists in the current directory, read it — it is your primary source of truth. Otherwise:
Do NOT proceed to planning, scaffolding, or coding until the user approves the spec. Do not assume, research, or fill in the blanks yourself — the user's intent drives everything.
Scale the ceremony to complexity: a trivial agent (single tool, fixed persona) needs only a couple of questions, a 2–3 sentence spec, and one approval; a complex agent (multi-agent, RAG, external APIs/auth, safety-critical) gets the full treatment in references/brainstorming.md.
Topics to cover (one question at a time, adapting to the user — see the playbook):
- What problem will the agent solve? — Core purpose and capabilities
- External APIs or data sources needed? — Tools, integrations, auth requirements
- Safety constraints? — What the agent must NOT do, guardrails
- Deployment preference? — Prototype first (recommended) or full deployment? If deploying: Agent Runtime, Cloud Run, or GKE?
Ask based on context:
- If the agent needs a capability the scaffold doesn't ship — retrieval over your data, sandboxed code execution, memory across sessions, OAuth consent, safety guardrails, event-driven triggers — that capability comes from a clone-and-study recipe, not a scaffold flag. Look the need up in the topic index in
/google-agents-cli-adk-code→ `references/recipe
Câu hỏi thường gặp
Skill có bắt đầu từ dự án không?
Mô tả cho biết cần có dự án đã tạo khung trước khi viết mã agent, nên skill sẽ thiết lập một dự án.
Skill dùng framework nào?
Skill dùng Agent Development Kit theo mặc định, và mô tả cho biết các framework khác cũng có thể.
Lệnh nào cài đặt nó?
Mô tả gợi ý chạy lệnh thiết lập bằng uvx, sau khi cài uv nếu cần.
Chi tiết
Mô tả gốc của tác giả
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.
repo: google/agents-cli
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14374
- Giấy phép
- Apache-2.0
- Cập nhật
- 27/10/2026
Bình luận
- …
Thêm skill từ kho mã này
google-agents-cli-adk-code
6.3kGiúp agent của bạn viết mã cho agent AI bằng Google ADK, gồm công cụ, callback, trạng thái và các mẫu điều phối.
google-agents-cli-deploy
6.3kGiúp agent của bạn triển khai một agent AI lên Google Cloud, gồm Agent Runtime, Cloud Run, GKE, bí mật, CI/CD và xử lý sự cố.
google-agents-cli-eval
6.3kGiúp agent của bạn đánh giá một agent AI bằng bộ dữ liệu kiểm thử và chấm điểm, rồi tìm nguyên nhân các câu trả lời bị sai.
google-agents-cli-observability
6.3kGiúp agent của bạn thiết lập truy vết, ghi nhật ký và giám sát cho một agent AI đã triển khai trên Google Cloud, để bạn thấy nó làm gì.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.