agentleFS
GoogleKnown publishergoogle/adk-python/.agents/skills/adk-review/SKILL.md

adk-review

Skill22k starsChanged 4 months agoApache-2.0View on GitHub

Reviews the uncommitted changes in an adk-python working tree and reports correctness, design, public-API stability, test, sample and documentation gaps as a prioritized findings report, fixing them only when asked. Use when the user asks to review local changes, wants a self-review before opening a pull request, asks whether a change breaks the public API or needs tests, samples or docs, or asks what is wrong with the current diff. Required for changes to public APIs, core architecture (Runner, Workflow, BaseNode), new features and major refactors. Don't use for a single style nit (use adk-style), for diagnosing a failing test or a misbehaving agent at runtime (use adk-debug), or for wording a commit message or PR description (use adk-git).

Trending

Less talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 12 mentionsMay 2026: 8 mentionsJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/adk-python repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about google/adk-python

The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 63

Talked about on GitHub, Bluesky and Hacker News (63 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 11

6 more on Bluesky

On Hacker News · 2

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop. Do not edit any file, and do not offer to.

    line 28
  2. Very specific:

    If the user asks for fixes, apply them, then re-run the affected tests (pytest tests/unittests/{path}) and pre-commit run --files {paths}.

    line 29
  3. Very specific:

    Types: no new mypy errors. CI diffs mypy output against the base branch and fails only on *newly introduced* errors, so a pre-existing …

    line 39
  4. Distinctive:

    Imports: no circular imports; absolute imports where the module already uses them.

    line 42
  5. Very specific:

    Exceptions: no bare except:; catch a specific type and log with enough context to identify the caller.

    line 44
  6. Very specific:

    Type discrimination: check an object's type before reading a type-specific attribute (for example confirm a node is an LlmAgent before …

    line 46
  7. Distinctive:

    Concurrency and lifetime: no race conditions; plugins, exporters, and connections are closed on every path, including the error path.

    line 80
  8. Very specific:

    If the change alters a code unit's design contract, the adk-unit-design skill owns the design document for that unit.

    line 101
  9. Very specific:

    Do existing samples under contributing/samples/ still run against the change?

    line 106
  10. Very specific:

    Every new or modified code path has a test under tests/unittests/.

    line 113
  11. Very specific:

    Before reporting a finding, resolve the symbol through base classes (Event extends LlmResponse).

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ADK Change Reviewer

Review the working-tree diff against the seven dimensions below, report what is wrong, and stop. Fix only what the user then asks you to fix.

Workflow

  1. git status and git diff (add --staged for staged work) to get the exact set of added, modified, and deleted files.
  2. Review the diff file by file against the checklist.
  3. Emit the report in the format below.
  4. Stop. Do not edit any file, and do not offer to. Wait for the user to ask.
  5. If the user asks for fixes, apply them, then re-run the affected tests (pytest tests/unittests/{path}) and pre-commit run --files {paths}.

Step 4 is the part that is easy to get wrong: an unrequested fix buries the findings the user asked for and mixes review output with new, unreviewed edits.

Checklist

1. Correctness

  • Types: no new mypy errors. CI diffs mypy output against the base branch and fails only on newly introduced errors, so a pre-existing error in a file you touched is not a blocker but a new one is.
  • Imports: no circular imports; absolute imports where the module already uses them.
  • Exceptions: no bare except:; catch a specific type and log with enough context to identify the caller.
  • Type discrimination: check an object's type before reading a type-specific attribute (for example confirm a node is an LlmAgent before inspecting mode), so an unexpected node type raises nothing.
  • Boundaries: None, empty collections, zero, and empty strings are handled by validation or a fallback default.
  • Preconditions: state invariants are checked before the core logic runs.

2. Design

  • Complexity: functions or classes that would be clearer split up.
  • Coupling: high cohesion, low coupling; no anti-patterns introduced.
  • Performance: redundant computation, repeated I/O in a loop, or allocations that scale with input where they need not.
  • Security: inputs validated, sensitive data not logged, no injection, resource exhaustion, or exposure of internal state.

3. Style

Cross-reference the diff against the adk-style skill rather than restating its rules here: visibility and _ prefixes, typing, Pydantic v2 patterns, lazy logging, imports, async, and file organization.

Confirm the changed files pass pre-commit run --files {paths}.

4. Architecture and unintended outcomes

  • Public API stability: does the change modify, remove, or narrow a public interface, class, method, argument list, or CLI surface under src/google/adk/? A breaking change needs a deprecation cycle first, because the package is released under Semantic Versioning and users pin minor versions.
  • Execution and resumption: changes to workflows, nodes, or state must stay compatible with the event execution lifecycle and with session resumption (human-in-the-loop steps and checkpoints). See the adk-architecture skill.
  • Concurrency and lifetime: no race conditions; plugins, exporters, and connections are closed on every path, including the error path.
  • Database and runtime DDL safety: runtime startup paths (e.g., DatabaseSessionService.prepare_tables() and _ensure_schema_indexes_exist()) must never execute destructive DDL such as DROP INDEX (which takes ACCESS EXCLUSIVE locks and breaks rolling deployments/rollbacks). Any additive runtime DDL must account for multi-container startup races (process-local asyncio.Lock does not prevent cross-container TOCTOU races on checkfirst=True) by wrapping creation in a SAVEPOINT (connection.begin_nested()) and tolerating concurrent creation.
  • Scope: a new public name, parameter or flag the fix did not need; a flag that keeps the buggy behavior as the default; a fix in a shared layer when one caller needed it; an existing test assertion edited to match the new behavior.

5. Documentation impact

  • User-facing documentation lives in the separate adk-docs repository, so a user-visible change needs a PR there as well; note it in the report.
  • Guides under docs/guides/ may need an update when a public API or workflow pattern changes.
  • If the change alters a code unit's design contract, the adk-unit-design skill owns the design document for that unit.

6. Samples

  • Do existing samples under contributing/samples/ still run against the change?
  • Does a new capability warrant a new sample? Follow the adk-sample-creator conventions if so.

7. Tests

  • Every new or modified code path has a test under tests/unittests/.
  • A new test belongs in the existing test_{module}*.py file for its unit, not in a file named after the change, which fragments that unit's coverage.
  • Tests follow the rules in the adk-style testing reference: one behavior per test, behavior-named tests, no assertions on private attributes, minimal fixtures, arrange/act/assert structure.

Ground each finding

Before reporting a finding, resolve the symbol through base classes (Event extends LlmResponse). For a correctness finding, name the input that makes it fail; for any other finding, quote the rule or convention it breaks. A finding that is neither is a guess; leave it out.

Report format

Group findings by priority and give a file path and line for each. Do not report a dimension with nothing to say.

  • 🔴 Critical: bugs, type errors, race conditions, resource leaks, security issues.
  • 🟠 Design: complexity, readability, performance, architectural misalignment.
  • 🟡 Style: lint, formatting, non-lazy logging, typing mismatches.
  • 🔵 Docs, tests, samples: missing or stale coverage, guides, samples.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.