All skills
google avatar

/adk-sample-creator

@50c3edf
by googlegoogle/adk-python22k stars
4,084

Creates a new sample agent in the ADK Python repository — the sample directory, its `agent.py`, and its `README.md` — following the conventions the existing samples already use. Use when the user wants to add a sample or example demonstrating a feature or agent pattern (dynamic nodes, fan-out/fan-in, a standalone tool-using agent), asks where a new sample belongs under `contributing/samples/`, or wants an existing sample's README brought up to the standard structure. Don't use for building a real working agent for the user's own project (use `adk-agent-builder`), or for checking whether the Python blocks in a Markdown file run (use `adk-verify-snippets`).

Use this Skill: https://skilld.dev/gh/google/adk-python/adk-sample-creator

This session only. Nothing lands on disk.

referencesreadme-template.md

≈497 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Sample README structure

Every sample gets a README.md with these sections, in this order.

Overview

What the sample does and which feature or pattern it exists to demonstrate.

Sample Inputs

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.

Graph

A Mermaid diagram of the structure, not of the request/response flow.

  • For a Workflow root agent, draw the graph of nodes and edges.
  • For an agent that orchestrates tools or sub-agents (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.

How To

The key techniques the sample uses (for example ctx.run_node), with the few lines of code that show each one.

Related Guides

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.

Template

# 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.

Source: SKILL.md on GitHub

No alerts17d3 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides a template and guidelines for creating sample agents and workflows within the ADK Python repository structure. It operates cleanly using expected patterns for standard development workflows.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

Signed by skilld at 50c3edf. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago

README badge

README badge for google/adk-python/adk-sample-creator