adk-review
БесплатноБез исполняемых скриптовНе проверенReviews the uncommitted changes in an adk-python working tree and reports correctness, design, public-API stability, test, sample and documentation gaps as a…
от google★ 22 468 звёзд на GitHubОб этом скилле
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
git statusandgit diff(add--stagedfor staged work) to get the exact set of added, modified, and deleted files.- Review the diff file by file against the checklist.
- Emit the report in the format below.
- Stop. Do not edit any file, and do not offer to. Wait for the user to ask.
- If the user asks for fixes, apply them, then re-run the affected tests
(
pytest tests/unittests/{path}) andpre-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
mypyerrors. CI diffsmypyoutput 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
LlmAgentbefore inspectingmode), 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. - Session, Artifact, and Memory service changes: adding any new field to
Session,ArtifactVersion,MemoryEntry, or toBaseSessionService,BaseArtifactService,BaseMemoryServiceand their schemas is a breaking change (even if optional or defaulted), because existing downstream storage subclasses and external backends will not persist or deserialize unknown fields, causing silent state loss upon reload. - 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-architectureskill. - 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 asDROP INDEX(which takesACCESS EXCLUSIVElocks and breaks rolling deployments/rollbacks). Any additive runtime DDL must account for multi-container startup races (process-localasyncio.Lockdoes not prevent cross-container TOCTOU races oncheckfirst=True) by wrapping creation in aSAVEPOINT(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-docsrepository, 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-designskill 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-creatorconventions if so.
7. Tests
- Every new or modified code path has a test under `tests
Установить adk-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл adk-review?
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).
Как установить скилл adk-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adk-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic