
ADK Agent Code Guide
Gives patterns for ADK agents, tools, callbacks, state and workflow orchestration.
Install
npx skills add google/agents-cli --skill google-agents-cli-adk-code -g -a claude-code -y- Repository
- google/agents-cli6.3k
- Category
- AI and agents
- Updated
- 8d ago
- License
- Apache-2.0
- Context cost
- Lightabout 921 tokens
- Runs scripts
- No, instructions only
What it does
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
ADK Code Reference
Activate /google-agents-cli-workflow first for required development phases and scaffolding steps.
1. Study Recipes (No Project Needed)
Python, read the topic index in references/recipes.md before answering "how do I build X".
Worked implementations exist for: sandboxed/per-user code execution, agent-loadable SKILL.md
skills, cross-session memory, approval gates before risky actions, tool guardrails, per-user
credentials, and scheduled/event-driven runs.
Go, read the upstream examples/.
clone the repo and read the one matching the capability you need before implementing it.
2. Prerequisites for Writing Code
Do NOT write agent code until a project is scaffolded.
- Verify project: run
agents-cli info(proceed if config exists). - New project: run
agents-cli scaffold create <name> --agent adk_python --deployment-target <target>, use--agent adk_gofor Go. - Existing code: run
agents-cli scaffold enhance ..
Quick Reference, Most Common Patterns
See references/adk-python.md and references/adk-go.md for Python and Go code examples, respectively.
References
Use the cheatsheets for common patterns. For deep knowledge, fetch the docs index or inspect the installed package.

