adk-sample-creator

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

A guide for creating a small example agent in the ADK Python repository, including its source file, README, directory, and category placement.

In plain words
What is it for?
Use it when adding a sample that demonstrates an ADK feature or agent pattern.
Why use it?
It keeps new examples consistent with the repository's existing structure and naming conventions.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding a sample that demonstrates an ADK feature or agent pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/google/adk-python/adk-sample-creator
About the project

Agent Development Kit is a Python framework for building, evaluating, deploying, and coordinating AI agents as software applications. Developers use it to compose workflows, delegate tasks between specialized agents, manage state, and connect agents to tools while choosing supported models and deployment environments. The catalogue add-ons provide workflows for using the toolkit.

google/adk-python · 22,443 stars · on GitHub · google.github.io

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.

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

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-python/adk-sample-creator/github.svg)](https://agentmods.dev/skills/google/adk-python/adk-sample-creator)
Your own site
<a href="https://agentmods.dev/skills/google/adk-python/adk-sample-creator"><img src="https://agentmods.dev/badge/skills/google/adk-python/adk-sample-creator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adk-sample-creator

Your own site · 80×15
<a href="https://agentmods.dev/skills/google/adk-python/adk-sample-creator"><img src="https://agentmods.dev/badge/skills/google/adk-python/adk-sample-creator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00150 $0.01275
Opus 5.5 $0.00060 $0.00510
Sonnet 5.5 $0.00030 $0.00255
Haiku 4.5 $0.00015 $0.00128

Measured 13d ago against content hash 2d81410c021c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 13d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

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

How it starts

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

ADK Sample Creator

Creates samples under contributing/samples/. These are deliberately minimal agents that each exercise one or two features — distinct from the adk-recipes repository, which hosts full end-to-end applications.

Read the adk-style skill first for ADK 2.0 conventions if you have not already.

1. Pick the category directory

Almost every sample lives at contributing/samples/{category}/{sample_name}/. List the categories and confirm with the user which one the sample belongs in before creating anything — a workflow sample landing outside workflows/ is the usual mistake.

ls contributing/samples/

Categories include workflows, patterns, core, multi_agent, tools, models, live, mcp, a2a, evaluation, and plugins. A handful of samples nest one level further when a single feature needs several variants, as plugins/plugin_reflect_tool_retry/basic/ does.

Name the sample directory in snake_case after the feature it demonstrates: dynamic_nodes, fan_out_fan_in, streaming_tool_events.

Do not add an _agent suffix, and do not repeat the category as a prefix — every sample is an agent, and the category is already in the path. Many existing directories still carry both; do not copy them.

2. Write agent.py

Contents of a sample directory:

File Required Purpose
agent.py yes The agent or workflow. Must expose root_agent.
README.md yes See readme-template.md.
__init__.py sometimes Present when the sample is imported as a package.
tests/*.json no Recorded sessions used as eval sets.

Use absolute imports so the file can be run and imported directly.

Do not set model= on Agent instances. Samples inherit the system-configured model, which keeps them working when the default model changes; hardcoding model="gemini-2.5-flash" pins the sample to a model that will be retired. Set it only when the user explicitly asks for a specific model.

Read the full file on GitHub · 161 lines

Files

What ships with it

1 file 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. 13d ago Changed · +2 lines 2d81410c021c
  2. 3mo ago First seen · 159 lines · 150 tokens per session scan A 19bce171b731

Subscribe to this mod's changes

adk-sample-creator is a skill published in the GitHub repository google/adk-python (22,443 stars, last pushed 2d ago), licensed Apache-2.0. It adds 150 tokens to every session and 1,275 once invoked, about $0.0006 per session on Opus 5.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-08-30.

Related

adk-sample-creator compared with skills from other repositories

adk-sample-creator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adk-sample-creatorgoogle/adk-pythonSkill22k2d agoApache-2.0A150Claude Code, Codex
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
adk-go-self-reviewgoogle/adk-goSkill9.0kyesterdayApache-2.0A87Claude Code, Codex
artifact-deploykirodotdev/KiroCrewSkill5.1ktodayApache-2.0A74Claude Code, Codex
security-conductorkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A57Claude Code, Codex
explain-forkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A71Claude Code, Codex
learn-from-sagekirodotdev/KiroCrewSkill5.1ktodayApache-2.0A56Claude Code, Codex