go-adk
Original:🇺🇸 English
Translated
Use this skill to build, run, deploy, evaluate, and troubleshoot Go agents with Google's Agent Development Kit (`google.golang.org/adk`), including llmagent config, tools/integrations, callbacks/plugins, sessions/state/memory, workflows, streaming, MCP/A2A, and runtime/deployment patterns.
2installs
Sourcemetalagman/agent-skills
Added on
NPX Install
npx skill4agent add metalagman/agent-skills go-adkTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →go-adk
Expert guidance for developing agents with (Go ADK).
google.golang.org/adkWhen to trigger
- The user mentions Go ADK, ,
google.golang.org/adk, or asks how to build agents in Go.adk-go - The task involves ADK concepts like , tools, callbacks, sessions/state/memory, workflow agents, streaming, MCP, A2A, ADK web/API runtime, launchers, deployment, evaluation, or safety controls.
llmagent
Core rules
- Treat references/llms-index.md as the required ADK coverage map.
- Prefer official ADK Go APIs and examples over ad-hoc wrappers.
- Follow existing repository patterns first (imports, launcher style, layout, env handling).
- For version-sensitive behavior, check release notes and API reference before giving definitive guidance.
- Prioritize Go-specific ADK docs first; if a feature is documented only in another SDK doc, call that out explicitly.
- Keep agent names unique and never use as an agent name.
user - Use concise fields so delegation and tool selection remain reliable.
Description - Treat ADK Web as development-only unless the user explicitly asks for production runtime choices.
Workflow
- Map task to ADK domain:
- Build, run, deploy, evaluate, safety, components, protocols, or reference.
- Load only the relevant sections from references/llms-index.md.
- Confirm execution style:
- Launcher-first app (,
cmd/launcher) or embedded runtime (cmd/launcher/fullloop).runner.Run - Local dev UI, CLI-only, or REST/API server flow.
- Launcher-first app (
- Build the first working agent:
- with a concrete model (commonly
llmagent.New(llmagent.Config{...})).gemini.NewModel(...) - Add minimum viable ,
Instruction, andDescription.Tools
- Add tools safely:
- Use for typed custom tools.
functiontool.New(...) - Use or other ADK/native integrations only when needed.
geminitool.GoogleSearch{} - For sensitive tools, apply confirmations, auth, and policy callbacks.
- Use
- Wire stateful execution:
- Sessions via (often
session.Servicefor local dev).session.NewInMemoryService() - Add only when cross-session retrieval is required.
memory.Service - Add state/context/artifacts management only when required by the workflow.
- Sessions via
- Apply control points:
- Use callbacks (,
Before/After Model, agent callbacks) for logging, caching, guardrails, and overrides.Before/After Tool - Prefer plugins for reusable security policy enforcement.
- Use callbacks (
- Scale composition:
- Use workflow agents for deterministic orchestration (,
sequentialagent,parallelagent).loopagent - Use multi-agent delegation (descriptions + transfer behavior) only when specialization is clear.
- Use workflow agents for deterministic orchestration (
- Select runtime/deployment posture:
- Local dev: CLI/Web/API.
- Production: deployment target + observability + safety posture.
- Verify behavior end-to-end:
- Validate happy-path conversation, tool errors, callbacks, session resume/rewind behavior, and evaluation criteria.
Output expectations
- Provide exact Go imports, runnable snippets, and command lines that match the chosen runtime mode.
- Call out version-sensitive behavior if the user targets older ADK tags.
- Mention the relevant ADK doc section when guidance comes from categories beyond core Go quickstart pages.
llms-index - Prefer small, testable incremental changes over large rewrites.
References
- Quickstart and launcher baseline: references/quickstart.md
- Core APIs and agent config: references/core-primitives.md
- Tools, callbacks, and guardrails: references/tools-and-guardrails.md
- Runtime modes, examples, and A2A: references/runtime-and-examples.md
- Required ADK source map (mirror): references/llms-index.md
llms.txt