adk-sample-creator
Skill0 starsChanged 6 months agoMITView on GitHub
Author new samples for the ADK Python repository. Use this skill when the user wants to create a new sample demonstrating a feature or agent pattern (e.g., dynamic nodes, standalone agents, fan-out/fan-in) or when adding examples to subdirectories under `contributing/`.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- google/adk-gotheir own version, first seen Sep 10, 2026
- google/adk-pythonedited, first seen Aug 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- google/adk-python★ 22k12% same
Wrote their own version · 1
- google/adk-go★ 8.8ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adding-dbt-unit-testSkill
- adk-agent-builderSkill
- adk-architectureSkill
- adk-debugSkill
- adk-setupSkill
- adk-styleSkill
- answering-natural-language-questions-with-dbtSkill
- api-and-interface-designSkill
- auditing-skillsSkill
- aws-ami-builderSkill
- azure-image-builderSkill
- azure-verified-modulesSkill
- babysit-prSkill
- browser-testing-with-devtoolsSkill
- building-dbt-semantic-layerSkill
- ci-cd-and-automationSkill
- code-breaking-changesSkill
- code-review-and-qualitySkill
- code-review-change-sizeSkill
- code-review-contextSkill
- code-reviewSkill
- code-review-testingSkill
- code-simplificationSkill
- codex-pr-bodySkill
- configuring-dbt-mcp-serverSkill
- context-engineeringSkill
- creating-mermaid-dbt-dagSkill
- debugging-and-error-recoverySkill
- deep-agents-coreSkill
- deep-agents-memorySkill
- deep-agents-orchestrationSkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- fetching-dbt-docsSkill
- final-checksSkill
- frontend-ui-engineeringSkill
- gemini-api-devSkill
- gemini-interactions-apiSkill
- gemini-live-api-devSkill
- github-actionsSkill
- githubSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- karpathy-guidelinesSkill
- migrating-dbt-core-to-fusionSkill
- migrating-dbt-project-across-platformsSkill
- new-terraform-providerSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- provider-actionsSkill
- provider-docsSkill
- provider-resourcesSkill
- provider-test-patternsSkill
- push-to-registrySkill
- react-native-best-practicesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use snake_case for the folder name (e.g., dynamic_nodes, fan_out_fan_in).
- Distinctive: line 37
Use this when you need multiple nodes, routing, or parallel execution.
- Distinctive: line 66
Use this when you don't need a graph and the agent handles the loop.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ADK Sample Creator
This skill helps you create new samples for the ADK Python repository. You should search for subdirectories under contributing (such as new_workflow_samples, workflow_samples, etc.) and confirm with the user which folder they want to use before creating the sample.
[!TIP]
Before creating samples, you can use the
adk-styleskill to learn about ADK 2.0 architecture knowledge and best practices.
A sample consists of:
- A directory per sample.
- An
agent.pyfile defining the agent or workflow logic. - A
README.mdfile explaining the sample.
Guidelines
1. Folder Name
Use snake_case for the folder name (e.g., dynamic_nodes, fan_out_fan_in).
2. agent.py Content
The agent.py should focus on demonstrating a specific feature or agent pattern. Use absolute imports for testing convenience.
[!IMPORTANT] Model Selection: Do not set the
modelparameter explicitly (e.g.,model="gemini-2.5-flash") onAgentinstances in sample agents. Instead, let them default to the system-configured model, unless a specific model is explicitly requested by the user.
Choose one of the following patterns:
Pattern A: Workflows (for complex graphs)
Use this when you need multiple nodes, routing, or parallel execution.
Imports:
from google.adk import Agent
from google.adk import Context
from google.adk.workflow import node
from google.adk.workflow import JoinNode
from google.adk.workflow._workflow_class import WorkflowAnatomy:
my_agent = Agent(name="my_agent", ...)
@node()
async def my_node(node_input: str):
return "result"
root_agent = Workflow(
name="root_wf",
edges=[("START", my_node)],
)Pattern B: Standalone Agents (for single-agent or simple tool use)
Use this when you don't need a graph and the agent handles the loop.
Imports:
from google.adk import Agent
from google.adk.tools import google_search # exampleAnatomy:
root_agent = Agent(
name="standalone_assistant",
instruction="You are a helpful assistant.",
description="An assistant that can help with queries.",
tools=[google_search],
)3. README.md Content
Each sample should have a README.md with the following structure:
- Overview: What the sample does.
- Sample Inputs: Examples of inputs to test with. Each prompt must be wrapped in backticks. If a prompt has an explanation, always add a blank line between the prompt and the explanation, and indent the explanation by two spaces.
- Graph: Visualization of the graph flow (Mermaid recommended for workflows).
- How To: Explanation of key techniques used (e.g.,
ctx.run_node).
README Example Template:
# ADK Sample Name
## Overview
Brief description.
## Sample Inputs
- `Prompt example 1`
- `Prompt example 2`
*Explanation or expected behavior*
## Graph
```mermaid
graph TD
START --> MyNode
```
How To
Explain the details.
## Examples
### Dynamic Nodes
Snippet from `dynamic_nodes/agent.py`:
```python
@node(rerun_on_resume=True)
async def orchestrate(ctx: Context, node_input: str) -> str:
while True:
headline = await ctx.run_node(generate_headline)
# ...Fan Out Fan In
Snippet from fan_out_fan_in/agent.py:
root_agent = Workflow(
name="root_agent",
edges=[("START", (node_a, node_b), join_node, aggregate)],
)Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

