google-agents-cli-adk-code

por 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

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

Más skills de google

google-agents-cli-eval
google
This skill should be used when the user wants to "run an evaluation", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Agent Platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Do NOT use for API code patterns (use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use...
developmenttestingdata-analysis
google-agents-cli-workflow
google
Esta habilidad debe usarse cuando el usuario quiera "desarrollar un agente", "crear un agente usando ADK", "ejecutar el agente localmente", "depurar código de agente", "probar un agente", "implementar un agente", "publicar un agente", "monitorear un agente", o necesite el ciclo de vida de desarrollo y las pautas de codificación de ADK (Kit de Desarrollo de Agentes). Punto de entrada para crear agentes ADK. Siempre activo: proporciona el flujo de trabajo completo (andamiaje, compilación, evaluación, implementación, publicación, observación), reglas de preservación de código, orientación para la selección de modelos y...
developmentdevopstesting
google-agents-cli-deploy
google
Esta habilidad debe usarse cuando el usuario quiera "desplegar un agente", "desplegar mi agente ADK", "configurar CI/CD", "configurar secretos", "solucionar problemas de un despliegue", o necesite orientación sobre Agent Runtime, Cloud Run o destinos de despliegue en GKE. Cubre flujos de trabajo de despliegue, cuentas de servicio, reversión e infraestructura de producción. Parte del conjunto de habilidades de Google ADK (Agent Development Kit). NO usar para patrones de código de API (usar google-agents-cli-adk-code), evaluación (usar google-agents-cli-eval) o...
developmentdevops
google-agents-cli-scaffold
google
This skill should be used when the user wants to "create an agent project", "start a new ADK project", "build me a new agent", "add CI/CD to my project", "add deployment", "enhance my project", or "upgrade my project". Part of the Google ADK (Agent Development Kit) skills suite. Covers `agents-cli scaffold create`, `scaffold enhance`, and `scaffold upgrade` commands, template options, deployment targets, and the prototype-first workflow. Do NOT use for writing agent code (use...
developmentdevops
google-agents-cli-observability
google
Esta habilidad debe usarse cuando el usuario quiera "configurar el rastreo", "monitorear mi agente ADK", "configurar el registro", "agregar observabilidad", "depurar tráfico de producción", o necesite orientación sobre el monitoreo de agentes ADK (Agent Development Kit) implementados. Cubre Cloud Trace, registro de solicitudes y respuestas, BigQuery Agent Analytics, integraciones de terceros (AgentOps, Phoenix, MLflow, etc.) y resolución de problemas. Parte del conjunto de habilidades de Google ADK (Agent Development Kit). NO usar para la configuración de implementación (usar...
developmentdevopsapi
google-agents-cli-publish
google
Esta habilidad debe usarse cuando el usuario quiera "publicar un agente", "publicar mi agente ADK", "registrar un agente en Gemini Enterprise", "publicar en Gemini Enterprise" o necesite orientación sobre el comando agents-cli publish gemini-enterprise. Cubre los modos de registro ADK vs A2A, uso programático e interactivo, referencia de banderas, detección automática a partir de metadatos de implementación y resolución de problemas. Parte del conjunto de habilidades de Google ADK (Agent Development Kit). NO usar para implementación (usar...
developmentdevopsapi