google-agents-cli-adk-code

द्वारा google

यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "एजेंट कोड लिखना", "ADK के साथ एजेंट बनाना", "टूल जोड़ना", "कॉलबैक बनाना", "एजेंट परिभाषित करना", "स्टेट मैनेजमेंट का उपयोग करना" चाहता है, या ADK (एजेंट डेवलपमेंट किट) Python API पैटर्न और कोड उदाहरणों की आवश्यकता है। Google ADK कौशल सूट का हिस्सा। यह एजेंट प्रकारों, टूल परिभाषाओं, ऑर्केस्ट्रेशन पैटर्न, कॉलबैक और स्ट

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-3.6-flash",
    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, ManagedAgent (server-hosted first-party agents), A2A protocol, A2UI. 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

google की और Skills

google-agents-cli-eval
google
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "मूल्यांकन चलाना", "अपने ADK एजेंट का मूल्यांकन करना", "मूल्यांकन डेटासेट लिखना", "मूल्यांकन विफलताओं का विश्लेषण करना", "मूल्यांकन परिणामों की तुलना करना", "एजेंट को अनुकूलित करना" चाहता है, या एजेंट प्लेटफ़ॉर्म मूल्यांकन पद्धति और क्वालिटी फ्लाईव्हील पर मार्गदर्शन की आवश्यकता है। इसमें मूल्यांकन मीट्रिक, डेटासेट स्कीमा
developmenttestingdata-analysis
google-agents-cli-workflow
google
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "एजेंट विकसित करना", "ADK का उपयोग करके एजेंट बनाना", "एजेंट को स्थानीय रूप से चलाना", "एजेंट कोड को डीबग करना", "एजेंट का परीक्षण करना", "एजेंट को तैनात करना", "एजेंट प्रकाशित करना", "एजेंट की निगरानी करना" चाहता है, या ADK (एजेंट डेवलपमेंट किट) विकास जीवनचक्र और कोडिंग दिशानिर्देशों की आवश्यकता होती है। ADK एजेंट बनाने के लिए प्रव
developmentdevopstesting
google-agents-cli-deploy
google
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "एजेंट तैनात करें", "मेरा ADK एजेंट तैनात करें", "CI/CD सेट करें", "सीक्रेट कॉन्फ़िगर करें", "तैनाती में समस्या निवारण करें" चाहता है, या Agent Runtime, Cloud Run, या GKE तैनाती लक्ष्यों पर मार्गदर्शन की आवश्यकता हो। तैनाती वर्कफ़्लो, सेवा खाते, रोलबैक और उत्पादन बुनियादी ढांचे को शामिल करता है। Google ADK (एजेंट डेवलपमेंट किट) कौशल सूट
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
इस कौशल का उपयोग तब किया जाना चाहिए जब उपयोगकर्ता "ट्रेसिंग सेट अप करना", "अपने ADK एजेंट की निगरानी करना", "लॉगिंग कॉन्फ़िगर करना", "ऑब्ज़र्वेबिलिटी जोड़ना", "प्रोडक्शन ट्रैफ़िक डीबग करना" चाहता है, या तैनात ADK (एजेंट डेवलपमेंट किट) एजेंटों की निगरानी पर मार्गदर्शन की आवश्यकता है। इसमें Cloud Trace, प्रॉम्प्ट-रिस्पॉन्स लॉगिंग, BigQuery Agent Analytics, तृतीय-पक्ष एकीकरण (AgentOps
developmentdevopsapi
google-agents-cli-publish
google
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता "एजेंट प्रकाशित करें", "मेरा ADK एजेंट प्रकाशित करें", "Gemini Enterprise में एजेंट पंजीकृत करें", "Gemini Enterprise पर प्रकाशित करें" चाहता है, या agents-cli publish gemini-enterprise कमांड पर मार्गदर्शन की आवश्यकता हो। इसमें ADK बनाम A2A पंजीकरण मोड, प्रोग्रामेटिक और इंटरैक्टिव उपयोग, फ्लैग संदर्भ, डिप्लॉयमेंट मेटाडेटा से स्वतः पहचान, और समस्या निवारण शामिल है। Google ADK (एज
developmentdevopsapi