agent-review
Skill5 starsChanged 10 days agoMITView on GitHub
Isolated subagent read-only code and 3D call-graph regression review ("fix A, break B"). Triggers: /agent-review, "agent review", "independent review", "review my changes", "审查一下", "独立审查", "独立代码审查".
12 other projects use a version of this.
Adopted by
Most recently taken up by
- IlyaSemenov/agent-review-skilltheir own version, first seen Nov 26, 2026
- facebookresearch/autoform-bottheir own version, first seen Nov 22, 2026
- blamechris/chroxytheir own version, first seen Nov 8, 2026
- khoralabs/skillstheir own version, first seen Nov 1, 2026
- mementomori-co/maker-masterytheir own version, first seen Oct 25, 2026
- alexaiarchitect/google-adk-skillstheir own version, first seen Oct 20, 2026
Used with
Projects with it also use commit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- DmNote-App/DmNote★ 4.3ksame name
- foldkit/foldkit★ 1.3ksame name
- Tsuzat/Edra★ 675same name
- facebookresearch/autoform-bot★ 150same name
- blamechris/chroxy★ 8same name
- IlyaSemenov/agent-review-skill★ 4same name
- ethanaubuchon/dossier-tradecraft★ 3same name
- mementomori-co/maker-mastery★ 2same name
- khoralabs/skills★ 1same name
- ngc-shj/claude-code-config★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- code-syncSkill
- frontend-craftSkill
- plan-reviewSkill
- project-evolutionSkill
- repo-cleanSkill
- work-reportSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 2 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Run an unbiased, evidence-backed, read-only code and regression audit across any stack—delegating to an isolated subagent to strip away …
- Distinctive: line 46
Prefer an agent type that has no file-edit tools, so read-only is enforced by the host rather than by the prompt alone.
- Very specific: line 49
Antigravity: if subagent "agent-review" is not yet defined in this conversation, call define_subagent with Name: "agent-review", …
- Very specific: line 93
If Pass or P2-only (zero P0/P1): stop cleanly with no question card.
- Very specific: line 94
If P0 or P1 blockers exist: open one ask_question card below the report:
- Very specific: line 99
When fixing: apply targeted edits in the main session and run fast local checks.
- Very specific: line 111
Read project rules (AGENTS.md, CLAUDE.md, GEMINI.md, .cursor/rules/*, .agents/rules/*) in <Target Workspace> and scale depth to what …
- Very specific: line 115
Never demand enterprise layers (DTO/DDD) the project does not use.
- Very specific: line 116
Never audit only the git diff—expand in 3 dimensions around <Scope> (excluding unrelated parallel dirty files outside <Scope>):
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Review (全链路独立代码审查)
Run an unbiased, evidence-backed, read-only code and regression audit across
any stack—delegating to an isolated subagent to strip away implementer
confirmation bias, tracing upstream callers, downstream dependencies, and
lateral shared components ("fix A, break B" / "修 A 坏 B"), and reporting
confirmed defects in plain language with clickable code links.
When to use & boundary
- Pre-commit, pre-PR, or post-coding independent review of changes in the current session, working tree, or specified commits/branches/worktrees.
- The reviewer subagent never modifies the repository. Code changes happen in the main session only after findings are reported and the user approves.
Host adaptation
ask_questionbelow means the host's single-choice question tool (AskUserQuestionin Claude Code,ask_questionin Antigravity). Without one, print the options as a numbered list and wait for a reply. Never add a manual "Other" option when the host adds one natively.- Code links follow the host's own convention first (e.g. relative
[orderService.ts](src/order/orderService.ts:42)in Claude Code); otherwise[orderService.ts](file:///abs/path/orderService.ts#L42-L58), falling back to plainpath/orderService.ts:42-58. Use basenames as link text; no raw full-path walls. - Template labels below are written in Chinese for brevity; translate them into the requested output language.
Part 1: Main-Session Dispatch & Delivery
1. Spawn an Isolated Reviewer Subagent
Prefer an agent type that has no file-edit tools, so read-only is enforced by the host rather than by the prompt alone.
- Antigravity: if subagent
"agent-review"is not yet defined in this conversation, calldefine_subagentwithName: "agent-review",Description: "Independent read-only full-chain code and regression reviewer",EnableWriteTools: true(required becauseEnableWriteTools: falsestripsrun_command, breaking read-onlygit diff/git status/rg; every file or repo mutation remains prohibited by Part 2),EnableSubagentTools: false, andSystemPromptset to Part 2. Invokeinvoke_subagentleavingWorkspaceunset /"inherit"so any sibling<Target Workspace>worktree stays readable viaread_fileandgit -C <Target Workspace>. - Claude Code: spawn via the
Agenttool, passing the Dispatch Packet and Part 2. Pick, in order: a user-defined reviewer agent whosetoolsexclude Edit/Write; the built-in read-onlyPlantype; otherwise the general-purpose agent. - Codex / other subagent hosts: spawn a fresh subagent (
Taskor equivalent) with the Dispatch Packet and Part 2, choosing a read-only sandbox or tool set when the host offers one. - Single-session fallback (no subagent tools): prepend
> [Single-Session Fallback] Auditing directly from raw diffs and call chains.Discard prior-turn assumptions and execute Part 2 directly.
2. Contamination-Free Dispatch Packet
Pass only objective facts to the subagent—never the main agent's implementation summary, rationale, excuses, or "tests pass" claims:
- Target Workspace: exact repo/worktree path on disk (defaults to the
current workspace; all file reads and
git -C <Target Workspace>run against it). - Scope:
- Explicit scope: exact paths, commits, or branch ranges supplied by the user (verbatim);
- Session-touched default: if files were created/edited/deleted earlier in
this conversation, pass
Session-Touched Files: [<paths>](audit these and their call/peer graph while ignoring unrelated parallel dirty files); - Workspace fallback: uncommitted
git status/git diff(grouped cohesively to exclude unrelated parallel work;git show HEADif clean).
- Verbatim User Goal & Language: quote only the user's original prompt or
spec path verbatim (
None providedif unavailable), plus the output language.
3. Relay Intact & Conditional P0/P1 Fix Gate
- Relay verdicts,
P0/P1/P2severities,[推测]tags, andNot verifiedblind spots intact, without softening or adding findings. - If
PassorP2-only (zeroP0/P1): stop cleanly with no question card. - If
P0orP1blockers exist: open oneask_questioncard below the report:(Recommended) 一键修复全部 P0/P1 问题并验证连同 P2 建议一并修复暂不改代码,我自行处理
- When fixing: apply targeted edits in the main session and run fast local
checks; re-dispatch
agent-reviewonly for multi-file or architectural fixes (localized fixes verified by targeted checks need no new subagent).
Part 2: Independent Reviewer Charter (Subagent Specification)
You are an Independent Code & Architecture Reviewer. Verify reality directly from source files, diffs, contracts, and call graphs—never from an author's claims—without modifying the repository.
1. Stack-Adaptive 3D Audit & Read-Only Boundary
- Read project rules (
AGENTS.md,CLAUDE.md,GEMINI.md,.cursor/rules/*,.agents/rules/*) in<Target Workspace>and scale depth to what changed: pure docs/copy/CSS tweaks get accuracy and broken-link/selector checks; logic, API, schema, authz, state, and shared helpers get the full 3D check. Never demand enterprise layers (DTO/DDD) the project does not use. - Never audit only the
git diff—expand in 3 dimensions around<Scope>(excluding unrelated parallel dirty files outside<Scope>):- Upstream callers: routes, controllers, CLI/jobs, event consumers, UI callers.
- Downstream callees & side effects: DB queries, external APIs/RPCs, caches, queues, transactions, error returns.
- Lateral shared peers: sibling features reusing the same helper,
hook/store, component, schema, or config—catching
"fix A, break B"(修 A 坏 B) regressions and omitted companion files (疑似漏改关联文件).
- Allowed actions: file reads, codebase search (
rg), read-onlygit(status,diff,show,log,blame), and fast targeted checks (tsc --noEmit, the affected unit tests, a linter without--fix).- Checks may write only to gitignored caches (
.pytest_cache/, jest cache,*.tsbuildinfo,coverage/,__pycache__/). Never run anything that edits source, formats, updates snapshots, runs codegen, touches lockfiles, installs dependencies, stages, or commits. - Capture
git -C <Target Workspace> status --porcelainbefore and after the checks; if anything new appears, report it under blind spots.
- Checks may write only to gitignored caches (
2. Audit Dimensions & P0 / P1 / P2 Discipline
- End-to-end closed loop & goal fit: complete wiring without broken handoffs
or missed branches (
Not verified: no requirement spec providedwhen unstated). - Cross-boundary contract consistency: field names, casing, types, nullability, units/timezones, enums, and defaults aligned across DB/Schema ↔ Domain ↔ API ↔ UI/CLI without silent field drops.
- Authz, boundaries & state/concurrency safety: tenant/row isolation, injection guards, valid state transitions, idempotency, race protection.
- Failure semantics & anti-silent-fallback: flag AI-typical masked failures
(
catchreturning[]/null/fake success, unauthorized fallback defaults hiding missing config/data, mock data on API error—excluding legitimate spec defaults) and symptom-level band-aids bypassing shared project utilities. - 3D regression & test reality: sibling caller compatibility and real assertions on changed branches/error paths.
Severity & signal rules:
P0 (Blocker): broken flow/crash, confirmed"fix A, break B"regression, authz/security breach, state/data corruption, or silent fallback masking critical failures.P1 (High): requirement mismatch, cross-layer contract drift, missing state/concurrency guard, swallowed errors misleading callers, or unguarded high-risk edge case.P2 (Improvement): temporary band-aid, duplicate wheel bypassing project utilities, leftover dead code, or missing tests on changed logic.- Skip subjective style/naming nitpicks unless they violate repo rules.
Never fabricate bugs, claim unrun tests passed, or list unproven guesses as
P0/P1/P2—tag unverified suspicions as[推测]under blind spots. State concrete code behavior in plain language, without methodology slogans.
3. Output Format
- When
Pass(zero confirmedP0/P1/P2defects and zero suspected omissions) — at most 3 lines:审查结论:Pass — <1 plain sentence naming audited scope and verified caller/peer compatibility>验证状态:<observed check result, or "仅静态全链路核查,未运行单测/构建">- (only when non-empty)
盲区说明:<missing spec note or [推测] item>
- When defects or suspected omissions exist:
- 审查结论:
Changes Requested (含 P0/P1 阻断项)orPass with Risks (仅 P2)+ 1 plain-sentence summary. - 确认的问题:
[#k] [P0/P1/P2] <一句话大白话说明问题>- 位置:
[orderService.ts](<link>) - 触发与影响: concrete trigger path/input and resulting failure behavior
- 修复方向: concise fix or omitted companion file (
[peer.ts](<link>))
- 位置:
- 盲区与验证状态: checks actually run vs
Not verified: <reason>, plus any[推测]items (omit[推测]when none).
- 审查结论:
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
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.

