adk-sample-creator

adk-sample-creator is a skill for Claude Code, Codex from google/adk-go. It costs 94 tokens per session (1,584 once invoked), scanned A, original, Apache-2.0.

A skill for creating runnable Go examples in the ADK repository. ADK is a toolkit for building agents, and each example includes its code, instructions, diagram, and index entry.

In plain words
What is it for?
Use it when adding or reworking an ADK example for workflows, tools, registries, model backends, or servers.
Why use it?
It provides the repository structure and documentation needed for examples that teach one agent feature and actually run.

Skill for Claude CodeCodex

About the project

Agent Development Kit for Go is a Go framework for building, evaluating, deploying, and coordinating AI agents through code. Developers use it to define agent logic, connect tools, compose multi-agent systems, and deploy applications in cloud environments, while retaining compatibility with models and frameworks beyond Gemini. The catalogue entries provide skills and instructions for working with ADK Go.

google/adk-go · 8,745 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/google/adk-go/adk-sample-creator
Any agent
npx skills add google/adk-go --skill adk-sample-creator
Clone the repo
git clone --depth 1 https://github.com/google/adk-go

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for adk-sample-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/google/adk-go/adk-sample-creator.svg)](https://agentmods.dev/skills/google/adk-go/adk-sample-creator)
Your own site
<a href="https://agentmods.dev/skills/google/adk-go/adk-sample-creator"><img src="https://agentmods.dev/badge/skills/google/adk-go/adk-sample-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00094 $0.01584
Opus 5 $0.00047 $0.00792
Sonnet 5 $0.00019 $0.00317
Haiku 4.5 $0.00009 $0.00158

Measured 2d ago against content hash 8ed13d015490, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adk-sample-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/adk-sample-creator/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADK Go sample creator

An example earns its place by teaching one thing faster than the package docs can. It must run. Two families set the standard, and which one you are writing decides several of the choices below:

  • Engine samplesexamples/workflow/*. They exercise ADK itself, need nothing beyond the binary and sometimes a model, and their subject is the shape of a graph.
  • Integration samplesexamples/agentregistry/*. They talk to a live external service, so they carry cloud prerequisites, credentials, failures worth unwrapping, and output that depends on the reader's own project.

Copy the shape of the nearer family rather than inventing one.

examples/README.md documents an older launcher API (ParseAndRun, FormatSyntax). Follow the templates here, not that file.

Layout

examples/<area>/<name>/
├── main.go
└── README.md

lower_snake directory names (hitl_simple), nested by theme once a family grows (routing/llm, dynamic/hitl). When the area keeps an index table — examples/workflow/README.md and examples/agentregistry/README.md do — add a row with the same columns as its neighbours, including LLM?. Most areas keep none, and none is needed.

main.go

Copy templates/main.go.tmpl: it carries the Apache 2.0 header the goheader linter demands, the package doc line, and the launcher wiring. context.Background() is correct there — main is an entrypoint, and it stays banned in library code.

full.NewLauncher() serves console, which is the default, plus web and its api, a2a, webui, pubsub and eventarc sublaunchers. When anything is deferred, move the body into run(ctx) error and let main do the log.Fatal.

Each of these has cost a review round:

  • Pick a versioned model, not a -latest alias, in any sample whose README documents the Vertex AI path: Vertex does not serve the aliases, so the documented instructions would fail at model construction. gemini-3.5-flash answers on both backends.
  • A required variable is read plainly and checked for empty, failing with a message that names it; cmp.Or(os.Getenv("X"), "default") is for the optional ones, and hides a missing value if you reach for it first. Watch for a variable a neighbouring library also reads: GOOGLE_CLOUD_LOCATION steers genai and the Agent Registry client, so a region meant for the model silently moves the catalog lookup.
  • log.SetFlags(0) when the output is a transcript. Otherwise every line carries a timestamp, and a README that omits it is showing output the code cannot produce.
  • log.Fatal only from main. Inside a body that defers a close, it skips the defer.
  • Render API failures as something actionable — unwrap the typed error and keep the part that identifies the fix (see explain in the agentregistry samples), rather than printing the service's whole JSON envelope.
  • Comments say WHY. Never narrate the next line.

Read the full file on GitHub · 140 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 140 lines · 94 tokens per session scan A 8ed13d015490

Subscribe to this mod's changes

adk-sample-creator is a skill published in the GitHub repository google/adk-go (8,745 stars, last pushed yesterday), licensed Apache-2.0. It adds 94 tokens to every session and 1,584 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.