Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
google avatar

Google Agents Cli Adk Code

  • 64.5k installs
  • 5.4k repo stars
  • Updated July 23, 2026
  • google/agents-cli

Google-agents-cli-adk-code is a reference skill for writing agents using Google's ADK Python API with patterns for tools, callbacks, and orchestration.

About

ADK Code Reference is a skill providing quick reference for agent types, tool definitions, orchestration patterns, callbacks, and state management when writing agents with Google's Agent Development Kit (ADK) in Python. It covers Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, and the A2A protocol.

  • Reference for ADK Python API patterns and code examples
  • Agent types, tool definitions, orchestration patterns, callbacks
  • Multi-agent systems, state management, and artifacts

Google Agents Cli Adk Code by the numbers

  • 64,509 all-time installs (skills.sh)
  • +8,461 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #21 of 16,659 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

google-agents-cli-adk-code capabilities & compatibility

Capabilities
agent coding · tool definition
Runs
Runs locally
Pricing
Free
npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs64.5k
repo stars5.4k
Security audit2 / 3 scanners passed
Last updatedJuly 23, 2026
Repositorygoogle/agents-cli

How do you write ADK 2.0 Workflow API agent code?

Write agent code using Google's ADK with patterns for tools, callbacks, state, and multi-agent orchestration

Who is it for?

ADK agent developers,Python-based agents

Skip if: ADK 1.x Live Streaming projects, non-Python stacks, or developers who only need scaffold, deploy, or publish commands without writing Workflow API code.

When should I use this skill?

The user asks to write, debug, upgrade, or maintain ADK 2.0 Workflow API agent code in Python.

What you get

Correct ADK 2.0 Workflow API Python modules, upgraded pyproject.toml dependency pins, and debugged agent workflow definitions.

  • ADK 2.0 Workflow API Python code
  • Updated dependency pins in pyproject.toml

By the numbers

  • Requires Python >= 3.11
  • Requires google-adk >= 2.0.0
  • Workflow API is incompatible with Live Streaming

Files

SKILL.mdMarkdownGitHub ↗

ADK Code Reference

Before using this skill, activate /google-agents-cli-workflow first — it contains the required development phases and scaffolding steps.

Prerequisites

1. Run agents-cli info — if it shows project config, skip to the reference below 2. If no project exists: run agents-cli scaffold create <name> 3. If user has existing code: run agents-cli scaffold enhance .

Do NOT write agent code until a project is scaffolded.

Python only for now. This reference currently covers the Python ADK SDK.
Support for other languages is coming soon.

Quick Reference — Most Common Patterns

from google.adk.agents import Agent

def get_weather(city: str) -> dict:
    """Get current weather for a city."""
    return {"city": city, "temp": "22°C", "condition": "sunny"}

root_agent = Agent(
    name="my_agent",
    model="gemini-flash-latest",
    instruction="You are a helpful assistant that ...",
    tools=[get_weather],
)

---

References

The first two are cheatsheets for common patterns; for broad or deep knowledge, go to the source (docs index or installed package).

ReferenceWhen to read
references/adk-python.mdCore ADK API: Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, SequentialAgent / ParallelAgent / LoopAgent, custom BaseAgent. Default for most agents.
references/adk-workflows.mdGraph-based Workflow API (ADK 2.0): nodes, edges, fan-out/fan-in, HITL, parallel processing. Use when you need explicit graph topology.
curl https://adk.dev/llms.txtDocs index (every page title + URL). Fetch it, then WebFetch the specific page for anything beyond the cheatsheets.
Installed ADK packageExact signatures and symbols — inspect the source (see "Inspecting ADK Source Code" in references/adk-python.md).

Related Skills

  • /google-agents-cli-workflow — Development workflow, coding guidelines, and operational rules
  • /google-agents-cli-scaffold — Project creation and enhancement with agents-cli scaffold create / scaffold enhance
  • /google-agents-cli-eval — Evaluation methodology, dataset schema, and the eval-fix loop
  • /google-agents-cli-deploy — Deployment targets, CI/CD pipelines, and production workflows

Related skills

How it compares

Use google-agents-cli-adk-code for Workflow API coding and 2.0 upgrades; use google-agents-cli-scaffold when the project does not exist yet.

FAQ

What Python and ADK versions does ADK 2.0 Workflow API require?

google-agents-cli-adk-code states ADK 2.0 Workflow API requires Python >= 3.11 and google-adk >= 2.0.0. The APIs are experimental pre-GA and may change before general availability.

Why can pip install --pre google-adk stay on ADK 1.x?

google-agents-cli-adk-code explains scaffolded projects pin google-adk<2.0.0 in pyproject.toml, so pip install --pre or uv add --prerelease=allow can silently remain on 1.x until those pins are updated under [project] dependencies.

Can ADK 2.0 Workflow API share storage with ADK 1.x?

google-agents-cli-adk-code warns not to allow ADK 2.0 projects to share persistent storage with ADK 1.x projects because that can cause data loss or corruption.

Is Google Agents Cli Adk Code safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.