google-agents-cli-adk-code

作成者: google

このスキルは、ユーザーが「エージェントコードを書く」「ADKでエージェントを構築する」「ツールを追加する」「コールバックを作成する」「エージェントを定義する」「状態管理を使用する」、またはADK(Agent Development Kit)Python APIのパターンやコード例を必要とする場合に使用します。Google ADKスキルスイートの一部です。エージェントタイプ、ツール定義、オーケストレーションパターン、コールバック、状態管理のクイックリファレンスを提供します。新しいプロジェクトの作成(google-agents-cli-scaffoldを使用)やデプロイには使用しないでください...

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のその他のスキル

google-agents-cli-eval
google
このスキルは、ユーザーが「評価を実行する」「ADKエージェントを評価する」「評価データセットを作成する」「評価の失敗を分析する」「評価結果を比較する」「エージェントを最適化する」、またはAgent Platformの評価方法論とQuality Flywheelに関するガイダンスを必要とする場合に使用します。評価指標、データセットスキーマ、LLM-as-judgeスコアリング、一般的な失敗原因をカバーします。APIコードパターン(google-agents-cli-adk-codeを使用)、デプロイ(google-agents-cli-deployを使用)、プロジェクトスキャフォールディング(...を使用)には使用しないでください。
developmenttestingdata-analysis
google-agents-cli-workflow
google
このスキルは、ユーザーが「エージェントを開発する」「ADKを使ってエージェントを構築する」「エージェントをローカルで実行する」「エージェントコードをデバッグする」「エージェントをテストする」「エージェントをデプロイする」「エージェントを公開する」「エージェントを監視する」、またはADK(Agent Development Kit)の開発ライフサイクルとコーディングガイドラインが必要な場合に使用します。ADKエージェント構築のエントリーポイントです。常にアクティブで、完全なワークフロー(スキャフォールド、ビルド、評価、デプロイ、公開、観測)、コード保存ルール、モデル選択ガイダンスなどを提供します。
developmentdevopstesting
google-agents-cli-deploy
google
このスキルは、ユーザーが「エージェントをデプロイする」「ADKエージェントをデプロイする」「CI/CDを設定する」「シークレットを構成する」「デプロイのトラブルシューティング」を行いたい場合、またはAgent Runtime、Cloud Run、GKEデプロイ先に関するガイダンスが必要な場合に使用します。デプロイワークフロー、サービスアカウント、ロールバック、本番インフラをカバーします。Google ADK(Agent Development Kit)スキルスイートの一部です。APIコードパターン(google-agents-cli-adk-codeを使用)、評価(google-agents-cli-evalを使用)には使用しないでください。
developmentdevops
google-agents-cli-scaffold
google
We need to translate the given text from English to Japanese, preserving the name "google-agents-cli-scaffold" if it appears, but the instruction says not to include the name unless it appears in the source text. The source text does not contain the name, so we don't include it. Also preserve product names, protocol names, URLs, numbers, technical terms. The text includes "Google ADK", "Agent Development Kit", "agents-cli scaffold create", "scaffold enhance", "scaffold upgrade", etc. These should be kept as is. Translate the rest naturally. The text: "This skill should be used when the user wants to ..." etc. We need to output only the translation, no extra commentary. Let's translate: "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 (
developmentdevops
google-agents-cli-observability
google
このスキルは、ユーザーが「トレーシングを設定する」「ADKエージェントを監視する」「ロギングを構成する」「可観測性を追加する」「本番トラフィックをデバッグする」、またはデプロイされたADK(Agent Development Kit)エージェントの監視に関するガイダンスを必要とする場合に使用します。Cloud Trace、プロンプト応答ロギング、BigQuery Agent Analytics、サードパーティ統合(AgentOps、Phoenix、MLflowなど)、およびトラブルシューティングをカバーします。Google ADK(Agent Development Kit)スキルスイートの一部です。デプロイメント設定には使用しないでください(代わりに...を使用)。
developmentdevopsapi
google-agents-cli-publish
google
このスキルは、ユーザーが「エージェントを公開する」「ADKエージェントを公開する」「Gemini Enterpriseにエージェントを登録する」「Gemini Enterpriseに公開する」、またはagents-cli publish gemini-enterpriseコマンドに関するガイダンスを必要とする場合に使用します。ADKとA2Aの登録モード、プログラム的およびインタラクティブな使用方法、フラグリファレンス、デプロイメントメタデータからの自動検出、トラブルシューティングをカバーします。Google ADK(Agent Development Kit)スキルスイートの一部です。デプロイメントには使用しないでください(代わりに...を使用)。
developmentdevopsapi