Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

adk-dev-guideadk 开发指南

Agent Skill

adk-dev-guide 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

250

周安装

10

GitHub Stars

公开资料未说明

下载量

81
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

adk-dev-guide 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它以 DESIGN_SPEC.md 为首要参考,定义功能需求、成功标准与行为约束,强调跨会话技能复用与上下文连续性。
  • 使用时应按开发阶段切换对应技能(如代码备忘单、评估指南),确保工作流一致性与质量可控。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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 GEMINI.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.

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, see references/docs-index.md in the cheatsheet skill for WebFetch URLs - 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: `` uvx --from "google-adk" adk dev skills check ` If it reports outdated skills, tell the user to update: ` uvx --from "google-adk" adk dev skills setup -y `` Do NOT run this check on every session — only when you suspect stale skills are causing problems.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.74%
按下载量换算28

Claude

32.53%
按下载量换算26

Cursor

20.91%
按下载量换算17

Gemini CLI

8.77%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills