.agents/skills/adk-sample-creator/references/readme-template.md
Every sample gets a README.md with these sections, in this order.
What the sample does and which feature or pattern it exists to demonstrate.
Prompts a reader can paste in to exercise the sample. Wrap each prompt in backticks. If a prompt needs an explanation, leave a blank line between the prompt and the explanation and indent the explanation by two spaces — without the blank line Markdown folds them into one list item.
A Mermaid diagram of the structure, not of the request/response flow.
Workflow root agent, draw the graph of nodes and edges.LlmAgent,
ManagedAgent), draw the topology of the agent and its tools/sub-agents
instead of internal workflow nodes.Keep it to a few nodes and edges. A user -> agent -> API -> tool -> user
sequence diagram is noise: it says nothing the topology does not.
The key techniques the sample uses (for example ctx.run_node), with the few
lines of code that show each one.
Links to the guides under docs/guides/ that explain the classes used, each
with a one-line summary. From a sample at
contributing/samples/{category}/{sample_name}/ the guides are four levels up:
- [Workflow](../../../../docs/guides/workflow/workflow/index.md) - Explains building complex multi-step graphs.
# ADK Sample Name
## Overview
Brief description.
## Sample Inputs
- `Prompt example 1`
- `Prompt example 2`
*Explanation or expected behavior*
## Graph
For a Workflow root agent:
```mermaid
graph TD
START --> MyNode
```
For an agent orchestrating tools or sub-agents:
```mermaid
graph TD
MyAgent[my_agent] -->|calls| MyTool(my_tool)
```
## How To
Explain the details.
## Related Guides
- [Guide Title](../../../../docs/guides/path/to/guide.md) - Brief description of what the guide covers.