shennawardana23/skillme/adk-go-agent-builder
Claude Code and agent skill by shennawardana23/skillme
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "build an agent with ADK Go", "create an ADK agent in Go", "add a tool to my Go agent", "use google.golang.org/adk", "compose sub-agents in ADK Go", or writes Go code against Google's Agent Development Kit for Go (google.golang.org/adk/v2). Provides verified API patterns for agents, models, function tools, and multi-agent composition.
Install
npx vskill@latest install shennawardana23/skillme/adk-go-agent-builderSKILL.md
The same SKILL.md was published earlier as shennawardana23/skillme/adk-go-agent-builder.
ADK Go Agent Builder
Google's Agent Development Kit has an official, actively maintained Go module: google.golang.org/adk/v2 (go get google.golang.org/adk/v2, requires Go 1.26+). This is a distinct, real SDK — not a hypothetical or Python-only port — with its own idioms that differ from the Python/Java/ Kotlin/TypeScript ADK variants. Ground every code sample in the packages below rather than porting Python ADK syntax (google.adk.agents.Agent, decorator-based tools) directly into Go; the Go API is call-based and config-struct-driven.
Core packages
| Package | Purpose | |
|---|---|---|
google.golang.org/adk/v2/agent | Core agent.Agent interface, agent.Context, agent.NewSingleLoader | |
google.golang.org/adk/v2/agent/llmagent | llmagent.New(llmagent.Config{...}) — the standard LLM-backed agent | |
google.golang.org/adk/v2/model/gemini | gemini.NewModel(ctx, modelName, *genai.ClientConfig) | |
google.golang.org/adk/v2/tool | tool.Tool interface | |
google.golang.org/adk/v2/tool/functiontool | functiontool.New(functiontool.Config{...}, handler) — wrap a typed Go function as a tool | |
google.golang.org/adk/v2/tool/agenttool | agenttool.New(subAgent, *agenttool.Config) — expose one agent as a tool for another | |
google.golang.org/adk/v2/tool/geminitool | Built-in Gemini tools, e.g. geminitool.GoogleSearch{} | |
google.golang.org/adk/v2/cmd/launcher + .../launcher/full | CLI/server launcher that runs an agent |
Minimal agent
Instruction is the system-prompt-equivalent field — write it as a hard behavioral constraint ("Your SOLE purpose is...", "Refuse anything else"), not a vague topic hint, since the model uses it to decide what to refuse.
Custom function tools
Wrap a typed Go function with functiontool.New instead of hand-rolling a JSON-schema tool definition — ADK derives the schema from the Input / Output struct's JSON tags:
The handler signature is fixed: func(ctx agent.Context, input In) (Out, error) — both In and Out must be JSON-serializable structs (even an empty struct for no-input tools), and the returned error becomes a tool-call failure the model can see and react to, not a Go-level panic.
Composing multiple agents
Two distinct composition patterns exist — pick based on whether the parent needs to keep control after the sub-agent responds:
Agent-as-tool (agenttool.New): the parent calls the sub-agent the same way it calls any other tool, gets a result back, and keeps driving the conversation. Use this when a specialist agent (e.g., one already using geminitool.GoogleSearch, which cannot coexist with custom function tools on the same agent — see below) needs to be composed with other tools:
Sub-agent transfer (SubAgents on the parent's config, see google.golang.org/adk/v2/agent/workflowagent and .../agent/workflowagents/* for sequential/parallel/loop orchestration): the parent hands off the entire turn to a specialist and does not necessarily regain control. Use this for hierarchical routing (a triage agent that permanently hands off to the right specialist), not for a single tool-like call-and-return.
agenttool.Config{SkipSummarization: true} skips the parent's LLM summarization pass over the sub-agent's raw output — set it when the sub-agent's output should be returned to the user verbatim rather than re-narrated.
Gemini tool + custom tool conflict
geminitool.GoogleSearch{} (and other built-in Gemini tools) cannot be combined with custom functiontool tools on the same llmagent — this is a genai API limitation, not an ADK bug. The workaround is exactly the agent-as-tool pattern above: put GoogleSearch on its own agent, wrap that agent with agenttool.New, and give the wrapped tool to the agent that also holds custom function tools.
Additional resources
For end-to-end runnable examples straight from the upstream repository (google/adk-go/examples/), including multiagent/, workflowagents/, and tools/, consult references/adk-api.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/adk-go-agent-builder/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shennawardana23/skillme/adk-go-agent-builder)