google-adk

google-adk is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 0 tokens per session (459 once invoked), scanned A, original, CC0-1.0.

A set of rules for building agents with Google's Agent Development Kit. It covers agent roles, tools, sessions, memory, files, evaluation, and deployment.

In plain words
What is it for?
Use it when designing ADK agents, tool workflows, multi-agent systems, session state, memory, generated files, or deployment plans.
Why use it?
It helps keep agent systems focused, validates tool use, handles failures clearly, and separates temporary conversation data from longer-term memory.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when designing ADK agents, tool workflows, multi-agent systems, session state, memory, generated files, or deployment plans.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/google-adk
About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,734 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/google-adk.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/google-adk)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/google-adk"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/google-adk.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 459 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.00000 $0.00459
Opus 5 $0.00000 $0.00230
Sonnet 5 $0.00000 $0.00092
Haiku 4.5 $0.00000 $0.00046

Measured 4d ago against content hash 2e95fe723286, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

google-adk 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 4d 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.

rules/google-adk.mdc · 53 lines

How it starts

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

Google ADK Rules

Agent Design

  • Keep each agent focused on a clear goal, persona, and tool set.
  • Use LLM agents for flexible reasoning and workflow agents for deterministic orchestration.
  • Write instructions that define task boundaries, tool-use rules, and escalation behavior.
  • Split multi-agent systems by responsibility rather than by implementation convenience.
  • Keep model choices configurable.

Tools

  • Give tools narrow, typed inputs and outputs.
  • Validate tool arguments before performing side effects.
  • Keep secrets, credentials, and privileged APIs out of agent prompts.
  • Handle tool errors explicitly and return actionable failure messages.
  • Be aware of ADK tool limitations; some built-in tools cannot be combined with other tools on the same agent.

Sessions, State, and Memory

  • Use session state for current-conversation data.
  • Use memory for cross-session recall and retrieval.
  • Keep state small and serializable.
  • Do not store large files or binary payloads in session state.
  • Make state keys stable and documented.

Artifacts

  • Use artifacts for generated files, uploaded files, reports, images, audio, and other binary data.
  • Configure an artifact service in the runner before relying on artifact operations.
  • Version artifact filenames intentionally and avoid overwriting semantically different outputs.
  • Store only references or summaries in state when full content belongs in artifacts.

Evaluation and Deployment

  • Add tests for tool behavior, agent routing, prompt regressions, and unsafe tool calls.
  • Use trace or event logs to debug agent decisions.
  • Keep local development, staging, and production configuration separate.
  • Add observability for latency, tool failures, token use, and handoff failures.

Common Mistakes

  • Do not make one agent responsible for every workflow.
  • Do not let tools accept arbitrary shell, SQL, or HTTP input without validation.
  • Do not rely on prompt text for access control.
  • Do not hide important side effects behind generic tool names.

Read the full file on GitHub · 53 lines

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. 4d ago First seen · 53 lines · 0 tokens per session scan A 2e95fe723286

Subscribe to this mod's changes

google-adk is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,734 stars, last pushed 3mo ago), licensed CC0-1.0. It costs nothing until one of its globs matches a file; then it loads 459 tokens. 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-09-03.