Labsco
google logo

google-agents-cli-adk-code

✓ Official4,700

by google · part of google/agents-cli

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", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, and state management. Do NOT use for creating new projects (use google-agents-cli-scaffold) or deployment...

🔥🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the google/agents-cli package — works on its own, and pairs well with its siblings.

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", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, and state management. Do NOT use for creating new projects (use google-agents-cli-scaffold) or deployment...

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by google

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", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, and state management. Do NOT use for creating new projects (use google-agents-cli-scaffold) or deployment... npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code Download ZIPGitHub4.7k

ADK Code Reference

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

Quick Reference — Most Common Patterns

Copy & paste — that's it
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).

Reference When to read references/adk-python.md Core ADK API: Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, SequentialAgent / ParallelAgent / LoopAgent, custom BaseAgent, A2A protocol, A2UI. Default for most agents. references/adk-workflows.md Graph-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.txt Docs index (every page title + URL). Fetch it, then WebFetch the specific page for anything beyond the cheatsheets. Installed ADK package Exact 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