Build crash-safe AI agents on AgentKit and step.ai — durable tool calls, human-in-the-loop approval, realtime progress, and when not to reach for an agent loop at all.
ADK Code Reference Skill
Google's skill for writing agent code with the Agent Development Kit (ADK) in Python or Go: agent types, tools, callbacks, state, multi-agent orchestration, the graph Workflow API and a catalogue of reference recipes, used with agents-cli.
Install
Other ways to install
About
- Recipe index for code execution, memory, approval gates, guardrails and scheduled runs
- Python and Go cheatsheets for agents, tools, callbacks, state and A2A
- Graph Workflow API references for fan-out, fan-in and human-in-the-loop
- Live and voice agent reference for run_live, VAD and speech config
- Refuses to write agent code until a project is scaffolded with agents-cli
The ADK Code Reference is one of the skills that ship with Google's agents-cli, the command-line tool for building, evaluating and deploying agents with the Agent Development Kit. This one covers the coding step. It activates when you ask the agent to write agent code, build an agent with ADK, add a tool, create a callback or manage state, and it explicitly hands scaffolding and deployment to its sibling skills.
It works as a router to detailed references rather than a long inline tutorial. For Python, adk-python.md covers the core API (Agent, tools, callbacks, plugins, state, artifacts, SequentialAgent, ParallelAgent and LoopAgent, custom agents, server-hosted ManagedAgent, the A2A protocol and A2UI). adk-python-workflows.md covers the graph-based Workflow API in ADK Python 2.0 with nodes, edges, fan-out, fan-in and human-in-the-loop steps, and adk-python-live.md covers real-time voice and video agents. Go gets matching references for llmagent, the runner, HTTP serving and workflows, plus a pointer to the upstream adk-go examples.
Before answering any "how do I build X" question, the agent reads a topic-indexed catalogue of worked recipes: sandboxed and per-user code execution, agent-loadable SKILL.md skills, cross-session memory, approval gates before risky actions, tool guardrails, per-user credentials and scheduled or event-driven runs. For anything beyond the cheatsheets it fetches the adk.dev/llms.txt docs index or inspects the installed package source.
The skill sets one firm rule: no agent code until a project exists. It checks with agents-cli info, routes new projects through the google-agents-cli-workflow skill to agree a spec first, and runs agents-cli scaffold enhance . on existing code. It requires agents-cli, installed with uv tool install google-agents-cli. Apache-2.0.
SKILL.md
The instructions your agent loads, as published by Google.
Related Skills
See all ADK Code Reference alternativesSkill: VoltAgent Best Practices
by VoltAgent
VoltAgent's official conventions skill — when to reach for an agent versus a workflow, the expected project layout, and the core snippets for agents, workflows, memory and servers.
Google's skill for deploying agents with agents-cli to Agent Runtime, Cloud Run or GKE: choosing a target, CI/CD pipelines, service accounts, secrets, rollback, Agent Gateway and production troubleshooting.
Temporal's official skill for building durable workflows — SDK patterns across seven languages, plus the determinism rules that decide whether a workflow survives a replay.
