Token导航 LogoToken导航

Agent Skill · 研究检索

adk-dev-guide(adk 开发指南)

adk-dev-guide 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

adk-dev-guide 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 2,015。

总安装 69,888周安装 2,768GitHub Stars 1,312下载 22,624核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:adk-dev-guide(adk 开发指南)
来源仓库:https://github.com/google/adk-docs
仓库路径:skills/adk-dev-guide
安装命令:
npx skills add https://github.com/google/adk-docs --skill adk-dev-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/google/adk-docs --skill adk-dev-guide

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

ADK 代理开发的基本参考指南,涵盖规范驱动的工作流程、代码保存规则和操作最佳实践。

阅读 DESIGN_SPEC.md 首先作为你的主要事实来源;所有实施决策都必须与其保持一致 遵循四个强制性阶段:了解规范、构建和实施、评估(使用 /adk-eval-guide ),并经人工批准进行部署 修改时保留所有不相关的代码;除非要求,否则仅更改明确的目标细分,绝不更改型号名称 使用Gemini 3系列型号(gemini-3-flash-preview, gemini-3-pro-预览版 ) 对于新代理;修复遇到 404 错误时的位置问题(不是型号名称) 连续出现三个相同错误后立即停止;在重试操作之前修复根本原因(工具错误、状态冲突、位置不匹配)

来源仓库内路径:skills/adk-dev-guide

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/google/adk-docs --skill adk-dev-guide;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

adk-dev-guide 怎么安装?

在终端执行 npx skills add https://github.com/google/adk-docs --skill adk-dev-guide。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

adk-dev-guide 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

adk-dev-guide 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

adk-dev-guide 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

adk-dev-guide 用的人多吗?

公开数据是累计安装 69,888 次,近一周安装 2,768 次,下载 22,624 次,GitHub 1,312 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

adk-dev-guide 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 1,312 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
adk-dev-guide

adk 开发指南 · 本页

69,8881,312需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

ADK Development Workflow & Guidelines

Session Continuity

If this is a long session, re-read the relevant skill before each phase — /adk-cheatsheet before writing code, /adk-eval-guide before running evals, /adk-deploy-guide before deploying, /adk-scaffold before scaffolding. Context compaction may have dropped earlier skill content.


DESIGN_SPEC.md — Your Primary Reference

IMPORTANT: If DESIGN_SPEC.md exists in this project, it is your primary source of truth.

Read it FIRST to understand:

  • Functional requirements and capabilities
  • Success criteria and quality thresholds
  • Agent behavior constraints
  • Expected tools and integrations

The spec is your contract. All implementation decisions should align with it. When in doubt, refer back to DESIGN_SPEC.md.


Phase 1: Understand the Spec

Before writing any code:

  1. Read DESIGN_SPEC.md thoroughly
  2. Identify the core capabilities required
  3. Note any constraints or things the agent should NOT do
  4. Understand success criteria for evaluation

Phase 2: Build and Implement

Implement the agent logic:

  1. Write/modify code in the agent directory (check the agent guidance file, e.g. GEMINI.md or CLAUDE.md, for directory name)
  2. Use make playground (or adk web.) for interactive testing during development
  3. Iterate on the implementation based on user feedback

For ADK API patterns and code examples, use /adk-cheatsheet.

Phase 3: Evaluate

This is the most important phase. Evaluation validates agent behavior end-to-end using evalsets and scoring metrics.

MANDATORY: Activate /adk-eval-guide before running evaluation. It contains the evalset schema, config format, and critical gotchas. Do NOT skip this.

Tests (pytest) are NOT evaluation. They test code correctness but say nothing about whether the agent behaves correctly. Always run adk eval.

  1. Start small: Begin with 1-2 sample eval cases, not a full suite
  2. Run evaluations: adk eval (or make eval if the project has a Makefile)
  3. Discuss results with the user
  4. Fix issues and iterate on the core cases first
  5. Only after core cases pass, add edge cases and new scenarios
  6. Repeat until quality thresholds are met

Expect 5-10+ iterations here.

Phase 4: Deploy

Once evaluation thresholds are met:

  1. Deploy when ready — see /adk-deploy-guide for deployment options

IMPORTANT: Never deploy without explicit human approval.


Operational Guidelines for Coding Agents

Principle 1: Code Preservation & Isolation

When executing code modifications, your paramount objective is surgical precision. You must alter only the code segments directly targeted by the user's request, while strictly preserving all surrounding and unrelated code.

Mandatory Pre-Execution Verification:

Before finalizing any code replacement, verify:

  1. Target Identification: Clearly define the exact lines or expressions to be changed, based *solely* on the user's explicit instructions.
  2. Preservation Check: Ensure all code, configuration values (e.g., model, version, api_key), comments, and formatting *outside* the identified target remain identical.

Example:

  • User Request: "Change the agent's instruction to be a recipe suggester."
  • Incorrect (VIOLATION): root_agent = Agent(name="recipe_suggester", model="gemini-1.5-flash", # UNINTENDED - model was not requested to change instruction="You are a recipe suggester.")
  • Correct (COMPLIANT): root_agent = Agent(name="recipe_suggester", # OK, related to new purpose model="gemini-3-flash-preview", # PRESERVED instruction="You are a recipe suggester." # OK, the direct target)

Principle 2: Execution Best Practices

  • Model Selection — CRITICAL:

- NEVER change the model unless explicitly asked. If the code uses gemini-3-flash-preview, keep it as gemini-3-flash-preview. Do NOT "upgrade" or "fix" model names. - When creating NEW agents (not modifying existing), use Gemini 3 series: gemini-3-flash-preview, gemini-3-pro-preview. - Do NOT use older models (gemini-2.0-flash, gemini-1.5-flash, etc.) unless the user explicitly requests them.

  • Location Matters More Than Model:

- If a model returns a 404, it's almost always a GOOGLE_CLOUD_LOCATION issue (e.g., needing global instead of us-central1). - Changing the model name to "fix" a 404 is a violation — fix the location instead. - Some models (like gemini-3-flash-preview) require specific locations. Check the error message for hints.

  • ADK Built-in Tool Imports (Precision Required): # CORRECT - imports the tool instance from google.adk.tools.load_web_page import load_web_page # WRONG - imports the module, not the tool from google.adk.tools import load_web_page Pass the imported tool directly to tools=[load_web_page], not tools=[load_web_page.load_web_page].
  • Running Python Commands:

- Always use uv to execute Python commands (e.g., uv run python script.py) - Run make install (or uv sync) before executing scripts - Consult Makefile and README.md for available commands (if present)

  • Breaking Infinite Loops:

- Stop immediately if you see the same error 3+ times in a row - Don't retry failed operations — fix the root cause first - RED FLAGS: Lock IDs incrementing, names appending v5->v6->v7, "I'll try one more time" repeatedly - State conflicts (Error 409: Resource already exists): Import existing resources with terraform import instead of retrying creation - Tool bugs: Fix source code bugs before continuing — don't work around them - When stuck: Run underlying commands directly (e.g., terraform CLI) instead of calling problematic tools

  • Troubleshooting:

- Check /adk-cheatsheet first — it covers most common patterns - Search the installed ADK package with Glob/Grep/Read (find it with python -c "import google.adk; print(google.adk.__path__[0])" — use uv run python if using uv) - For ADK docs index, use curl https://adk.dev/llms.txt - For framework questions or GCP products, check official documentation - When encountering persistent errors, a targeted Google Search often finds solutions faster


Scaffold as Reference

When you need specific infrastructure files but don't want to scaffold the current project directly, use the /adk-scaffold skill to create a temporary reference project in /tmp/ and copy over what you need.

See /adk-scaffold for full CLI commands and options.


Development Commands

Projects created via the Agent Starter Pack CLI include a Makefile with these commands. To create or enhance a project, see the /adk-scaffold skill for full instructions. For non-scaffolded projects, use the ADK CLI equivalents.

Make (scaffolded)ADK CLI equivalentPurpose
make playgroundadk web.Interactive local testing
make testpytestRun unit and integration tests
make evaladk eval <agent_dir> <evalset>Run evaluation against evalsets
make lintruff check.Check code quality
make setup-dev-env— (scaffolded only)Set up dev infrastructure (Terraform)
make deploy— (scaffolded only)Deploy to dev (requires human approval)

Skills Version

Troubleshooting hint: If you encounter repeated errors, unexpected tool failures, or instructions in these skills that seem incomplete or reference features you can't find, the skills may be outdated. Run: `` npx skills check -g ` If it reports outdated skills, tell the user to update: ` npx skills update -g `` Do NOT run this check on every session — only when you suspect stale skills are causing problems.

平台分布

Codex

37.17%
按下载量换算8,409

Claude

30.11%
按下载量换算6,812

Cursor

19.25%
按下载量换算4,355

Gemini CLI

10.5%
按下载量换算2,376

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills