google-adk-agent-patterns

google-adk-agent-patterns is a skill for Claude Code, Codex from saski/arnesto. It costs 92 tokens per session (1,141 once invoked), scanned A, original, Unlicense.

A set of patterns for building Google ADK agents, which are AI programs that can use functions and work together on tasks.

In plain words
What is it for?
Use it to write Python function tools, configure LlmAgent objects, and build sequential, looping, parallel, or routing agent pipelines.
Why use it?
It helps keep agent definitions, tool connections, shared results, and multi-agent workflows understandable and predictable.

Skill for Claude CodeCodex

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

Good fit Use it to write Python function tools, configure LlmAgent objects, and build sequential, looping, parallel, or routing agent pipelines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saski/arnesto/google-adk-agent-patterns
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 saski/arnesto --skill google-adk-agent-patterns
Clone the repo
git clone --depth 1 https://github.com/saski/arnesto

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 google-adk-agent-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/saski/arnesto/google-adk-agent-patterns/github.svg)](https://agentmods.dev/skills/saski/arnesto/google-adk-agent-patterns)
Your own site
<a href="https://agentmods.dev/skills/saski/arnesto/google-adk-agent-patterns"><img src="https://agentmods.dev/badge/skills/saski/arnesto/google-adk-agent-patterns/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 google-adk-agent-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/saski/arnesto/google-adk-agent-patterns"><img src="https://agentmods.dev/badge/skills/saski/arnesto/google-adk-agent-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,141 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.
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.00092 $0.01141
Opus 5.5 $0.00037 $0.00456
Sonnet 5.5 $0.00018 $0.00228
Haiku 4.5 $0.00009 $0.00114

Measured 3mo ago against content hash 1651ebd1f1bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

google-adk-agent-patterns 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 3mo 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/google-adk-agent-patterns/SKILL.md · 157 lines

How it starts

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

Google ADK Agent Patterns

When to Use / When Not to Use

Use this skill when:

  • Defining or modifying an Agent (LlmAgent) with model, instructions, or tools.
  • Writing Python function tools registered in tools=[...].
  • Composing multi-agent pipelines (sequential, loop, parallel, router).
  • Passing state between agents using output_key / {var} injection.

Do not use this skill when:

  • Setting up a new ADK project from scratch (use google-adk-setup).
  • Deploying to Cloud Run (covered in google-adk-setup references).

Agent Configuration (LlmAgent / Agent)

from google.adk.agents.llm_agent import Agent

root_agent = Agent(
    name="my_agent",
    model="gemini-2.5-flash",
    description="One-sentence description used by other agents for routing.",
    instruction="You are a helpful assistant. Answer: {topic?}",
    tools=[my_tool],
)

Key parameters:

Parameter Purpose
name Unique identifier for the agent
model Gemini model string (e.g. gemini-2.5-flash)
description Used by orchestrators for routing — be precise
instruction System prompt; supports {var} (required) and {var?} (optional) state injection
tools List of Python functions or AgentTool instances
output_schema Pydantic model for structured output
output_key Writes agent output to shared session state under this key
include_contents Controls which conversation history is passed
generate_content_config Fine-grained generation parameters

Critical constraint: output_schema and tools cannot both be set on most models. Choose one.


Function Tools

See references/tool-patterns.md for full examples.

Minimal function tool

def get_weather(city: str) -> dict:
    """Return current weather for the given city name.

    Args:
        city: The city name to look up.
    """
    return {"status": "success", "temperature_c": 22}

agent = Agent(model="gemini-2.5-flash", name="weather_agent", tools=[get_weather])

Read the full file on GitHub · 157 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. 3mo ago First seen · 157 lines · 92 tokens per session scan A 1651ebd1f1bf

Subscribe to this mod's changes

google-adk-agent-patterns is a skill published in the GitHub repository saski/arnesto (7 stars, last pushed 5d ago), licensed Unlicense. It adds 92 tokens to every session and 1,141 once invoked, about $0.0004 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-31.

Related

google-adk-agent-patterns compared with skills from other repositories

google-adk-agent-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
google-adk-agent-patternssaski/arnestoSkill75d agoUnlicenseA92Claude Code, Codex
repo-contracts-and-boundariesyfge/agent-harness-skillsSkill1212d agoMITA41Claude Code
repo-harness-assessmentyfge/agent-harness-skillsSkill1212d agoMITA56Claude Code
work-state-and-deliveryyfge/agent-harness-skillsSkill1212d agoMITA48Claude Code
runtime-evidence-and-tracingyfge/agent-harness-skillsSkill1212d agoMITA39Claude Code
validation-harness-designyfge/agent-harness-skillsSkill1212d agoMITA35Claude Code
readonly-reviewRanvier-Technologies/pixirSkill252mo agoMITA20Claude Code, Codex