google-agents-cli-adk-code

oleh google

Keterampilan ini harus digunakan ketika pengguna ingin "menulis kode agen", "membangun agen dengan ADK", "menambahkan alat", "membuat callback", "mendefinisikan agen", "menggunakan manajemen status", atau membutuhkan pola dan contoh kode API Python ADK (Agent Development Kit). Bagian dari rangkaian keterampilan Google ADK. Menyediakan referensi cepat untuk jenis agen, definisi alat, pola orkestrasi, callback, dan manajemen status. JANGAN digunakan untuk membuat proyek baru (gunakan google-agents-cli-scaffold) atau deployment...

npx skills add https://github.com/google/agents-cli --skill google-agents-cli-adk-code

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.

  1. Verify project: run agents-cli info (proceed if config exists).
  2. New project: run agents-cli scaffold create <name> --agent adk_python --deployment-target <target> — use --agent adk_go for Go.
  3. 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.

ReferenceLanguageWhen to read
references/recipes.mdPythonTopic-indexed catalog of ADK reference recipes. Read in workflow Phase 1 — before scaffolding and before writing code — maps a capability to the recipe that implements it.
references/adk-python.mdPythonCore ADK API: Agent, tools, callbacks, plugins, state, artifacts, multi-agent systems, SequentialAgent / ParallelAgent / LoopAgent, custom BaseAgent, ManagedAgent (server-hosted first-party agents), A2A protocol, A2UI. Default for most agents.
references/adk-python-workflows.mdPythonGraph-based Workflow API (ADK Python 2.0): nodes, edges, fan-out/fan-in, HITL, parallel processing. Use when you need explicit graph topology.
references/adk-python-live.mdPythonLive and voice agents: Runner.run_live, LiveRequestQueue, model and regional availability, voice/speech_config, VAD, session limits, /run_live serving. Use for real-time voice or video agents.
references/adk-go.mdGoCore ADK Go API: llmagent, tools, callbacks, plugins, state, artifacts, multi-agent systems, sequential/parallel/loop agents, custom agents, the runner, serving over HTTP, A2A protocol, and ambient triggers. Default for most agents.
references/adk-go-workflows.mdGoGraph-based Workflow API: nodes, edges, fan-out/fan-in, HITL, parallel processing. Use when you need explicit graph topology.
examples/GoRunnable upstream programs — the closest thing to a recipe catalog for Go.
curl https://adk.dev/llms.txtPythonDocs index (every page title + URL). Fetch it, then WebFetch the specific page for anything beyond the cheatsheets.
Installed ADK packagePythonExact 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

Lebih banyak skill dari google

google-agents-cli-eval
google
Keterampilan ini harus digunakan ketika pengguna ingin "menjalankan evaluasi", "mengevaluasi agen ADK saya", "menulis dataset evaluasi", "menganalisis kegagalan evaluasi", "membandingkan hasil evaluasi", "mengoptimalkan agen", atau membutuhkan panduan tentang metodologi evaluasi Agent Platform dan Quality Flywheel. Mencakup metrik evaluasi, skema dataset, penilaian LLM-sebagai-hakim, dan penyebab kegagalan umum. JANGAN digunakan untuk pola kode API (gunakan google-agents-cli-adk-code), deployment (gunakan google-agents-cli-deploy), atau pembuatan proyek (gunakan...
developmenttestingdata-analysis
google-agents-cli-workflow
google
Keterampilan ini harus digunakan ketika pengguna ingin "mengembangkan agen", "membangun agen menggunakan ADK", "menjalankan agen secara lokal", "men-debug kode agen", "menguji agen", "menyebarkan agen", "menerbitkan agen", "memantau agen", atau membutuhkan panduan siklus pengembangan dan pengkodean ADK (Agent Development Kit). Titik masuk untuk membangun agen ADK. Selalu aktif — menyediakan alur kerja lengkap (scaffold, build, evaluate, deploy, publish, observe), aturan pelestarian kode, panduan pemilihan model, dan...
developmentdevopstesting
google-agents-cli-deploy
google
Keterampilan ini harus digunakan ketika pengguna ingin "menyebarkan agen", "menyebarkan agen ADK saya", "menyiapkan CI/CD", "mengonfigurasi rahasia", "memecahkan masalah penyebaran", atau membutuhkan panduan tentang target penyebaran Agent Runtime, Cloud Run, atau GKE. Mencakup alur kerja penyebaran, akun layanan, pengembalian, dan infrastruktur produksi. Bagian dari rangkaian keterampilan Google ADK (Agent Development Kit). JANGAN digunakan untuk pola kode API (gunakan google-agents-cli-adk-code), evaluasi (gunakan google-agents-cli-eval), atau...
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
Keterampilan ini harus digunakan ketika pengguna ingin "menyiapkan tracing", "memantau agen ADK saya", "mengonfigurasi pencatatan log", "menambahkan observabilitas", "men-debug lalu lintas produksi", atau membutuhkan panduan tentang pemantauan agen ADK (Agent Development Kit) yang telah digunakan. Mencakup Cloud Trace, pencatatan log prompt-respons, BigQuery Agent Analytics, integrasi pihak ketiga (AgentOps, Phoenix, MLflow, dll.), dan pemecahan masalah. Bagian dari rangkaian keterampilan Google ADK (Agent Development Kit). JANGAN digunakan untuk penyiapan deployment (gunakan...
developmentdevopsapi
google-agents-cli-publish
google
Keterampilan ini digunakan saat pengguna ingin "menerbitkan agen", "menerbitkan agen ADK saya", "mendaftarkan agen ke Gemini Enterprise", "menerbitkan ke Gemini Enterprise", atau membutuhkan panduan tentang perintah agents-cli publish gemini-enterprise. Mencakup mode pendaftaran ADK vs A2A, penggunaan secara terprogram dan interaktif, referensi flag, deteksi otomatis dari metadata deployment, serta pemecahan masalah. Bagian dari rangkaian keterampilan Google ADK (Agent Development Kit). JANGAN digunakan untuk deployment (gunakan...
developmentdevopsapi