code-review
Skill2 starsChanged 21 days agoMITView on GitHub
Review a PR, branch, or the current working diff by spawning the reviewer subagent (which runs a Jev-based triage of the changed files, then lens fan-out plus validator pass on @slow). Use when asked to review a PR or diff.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- doggy8088/spec-kittheir own version, first seen Nov 9, 2026
- strelov1/freehiretheir own version, first seen Nov 9, 2026
- storybookjs/storybooktheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- supabase/supabasetheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use close-spec, design-with-images and 10 more.
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.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
PydanticSkilladd-new-model
Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.
Also in 9 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 5 projects that use this
Microsoft AzureSkillazsdk-common-apiview-feedback-resolution
Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.
Also in 6 projects that use this
Microsoft AzureSkillazsdk-common-generate-sdk-locally
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
Also in 6 projects that use this
- +4 more from dzhng
- +2 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 309ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 195ksame name
- github/spec-kit★ 149ksame name
- ggml-org/llama.cpp★ 134ksame name
- supabase/supabase★ 115ksame name
- storybookjs/storybook★ 91ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 60ksame name
184 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 repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-agentSkill
- add-mcp-serverSkill
- add-ruleSkill
- grill-meSkill
- orchestrateSkill
- pi-upgrade-reviewSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 184 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use when the user asks to review a PR (by number or URL), a branch, or the current diff/changes in a repo.
- Very specific: line 14
Check subagent_list for a live or retained handle named reviewer.
- Distinctive: line 34
If the user then asks to fix findings, hand the confirmed findings list to a writer/task agent.
- Very specific: line 38
Reviewer aborted mid-run (no final output): call subagent_wait on the handle — it auto-resumes the aborted child from where it stopped.
- Distinctive: line 41
Jev unavailable during the review (ask-jev tool errors): not a failure — the reviewer degrades to heuristic routing per its own …
- Distinctive: line 42
Fallback threshold: after 2 failed resume/steer attempts for the same failure, spawn a fresh reviewer as a last resort, and tell the user …
- Very specific: line 43
Overlapping invocations: if the user asks to review the same target again while a reviewer handle is live, steer the existing session.
- Distinctive: line 46
Do not use this for stack-specific review workflows.
- Distinctive: line 47
Do not ask the reviewer to edit files.
- Very specific: line 48
Do not spawn the reviewer one-shot (omitting mode: "persistent").
- Distinctive: line 53
If handed a PR number, the review's opener correctly describes that PR's changes (not another PR or stale diff).
“Common” is measured: kept by at least 6 in 10 of the 184 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
When to Use
Use when the user asks to review a PR (by number or URL), a branch, or the current diff/changes in a repo. Do not use for stack-specific review workflows or for reviewing specific files the user wants discussed interactively without the full review treatment.
Procedure
- Determine the target: a PR number/URL, a branch name, or the current working diff (staged/unstaged changes).
- Determine the repo directory: the current working directory unless the PR belongs to another repo under the workspace.
- Check
subagent_listfor a live or retained handle namedreviewer. If one exists for this target, do NOT spawn a duplicate — steer that session (subagent_send) or collect it (subagent_wait). If no handle exists, spawn the reviewer as a PERSISTENT subagent: one
delegatecall, single form, withmode: "persistent",name: "reviewer", agentreviewer(user scope),cwdset to the repo directory, tools['read','bash','grep','find','ls','subagent','ask_jev_files','ask_jev_file_bool','ask_jev_file_score','pick_first_file','triage_log']— this list must match the reviewer's frontmatter; a stale override strips the Jev tools and silently disables triage. NEVER spawn the reviewer withoutmode: "persistent"— a one-shot child exits on failure, and the reflexive retry (a fresh spawn) re-runs the entire review flow from scratch.Exact call shape — copy it, do not improvise parameter names:
delegate({ mode: "persistent", agent: "reviewer", name: "reviewer", cwd: "<repo dir>", tools: ["read","bash","grep","find","ls","subagent","ask_jev_files","ask_jev_file_bool","ask_jev_file_score","pick_first_file","triage_log"], task: "<self-contained prompt from step 5>" })modeselects the engine (auto|oneshot|persistent).modelis a different parameter that takes a model ID or@rolealias — there is nopersistentmodel.- Task prompt must be self-contained, e.g.: "Review <PR #123 / branch X / the current staged+unstaged diff> in this repo. To get the diff run
gh pr diff <num> --patch(PR),git diff <base>...<branch>(branch), orgit diff HEAD+git diff --staged(working tree). Follow your own review method: gather the diff, triage the changed files with your Jev routing step (degrade to heuristics if ask-jev tools error), decide single-pass versus fan-out, run the validator pass if you fan out, and emit your consolidated review in your mandated output format. Return the full review as your final output." - Collect the result from the
reviewerhandle withsubagent_wait. (A delegate call with defaultwait: truealready blocks until the child settles; callsubagent_waitwhen you spawned withwait: false, or after steering/resuming the child.) - Relay the reviewer's consolidated review to the user verbatim — do not re-summarize, re-rank, or add your own findings on top.
- If the user then asks to fix findings, hand the confirmed findings list to a writer/task agent; do not let the reviewer edit files (it is read-only by design).
Failure and retry contract
On any failure, resume the existing reviewer session — re-running the full review flow (re-gathering the diff, re-running every lens, re-validating) is the explicitly forbidden outcome. The retry path is subagent_wait/subagent_send on the retained handle, never a second delegate spawn.
- Reviewer aborted mid-run (no final output): call
subagent_waiton the handle — it auto-resumes the aborted child from where it stopped. Do not invokedelegateagain. - A nested lens or validator agent failed, and the reviewer settled with a partial result:
subagent_senda follow-up on the same retained session, e.g. "The <lens/validator> run failed — re-spawn only that agent, merge its output with the findings you already have, and emit the consolidated review. Do not re-gather the diff or re-run completed lenses." - Handle missing ("no saved session"): often a transient session-flush race — wait briefly and retry the same call before treating the session as lost.
- Jev unavailable during the review (ask-jev tool errors): not a failure — the reviewer degrades to heuristic routing per its own instructions and notes it in the opener. Collect normally; do not respawn.
- Fallback threshold: after 2 failed resume/steer attempts for the same failure, spawn a fresh reviewer as a last resort, and tell the user the previous attempt could not be resumed.
- Overlapping invocations: if the user asks to review the same target again while a
reviewerhandle is live, steer the existing session; never run two reviewers on one target.
Pitfalls
- Do not use this for stack-specific review workflows; use the repository's stack-review workflow when one is available.
- Do not ask the reviewer to edit files. Use a writer/task agent for confirmed fixes.
- Do not spawn the reviewer one-shot (omitting
mode: "persistent"). One-shot children exit on abort, so the only available retry is a fresh spawn that silently re-runs the whole review flow — the exact anti-pattern this skill forbids. - Never write
model: "persistent".modeltakes a model ID or@rolealias;persistentis a value ofmode, notmodel. Writing it asmodelleavesmodeat itsautodefault, so the router may pick one-shot and the retention/retry contract silently disappears, and it passes the bogus stringpersistentas the child's model. Check the spawn call hasmode: "persistent"and nomodelkey.
Verification
- The reviewer subagent returns a review containing an opener, findings ordered by severity with path:line citations, What's good, Test coverage, and a Review Summary table with a verdict.
- If handed a PR number, the review's opener correctly describes that PR's changes (not another PR or stale diff).
- The reviewer was spawned with
mode: "persistent"and namereviewer, the review was collected viasubagent_waiton that handle, and no second reviewer was spawned for the same target — including when a run aborted mid-flight. - The spawn call used
mode: "persistent"(notmodel: "persistent", and nomodelkey was invented). If the transcript showsmodel, the spawn was malformed — fix it before collecting results. - The review completed even if ask-jev tools errored mid-run — degradation to heuristic routing is handled inside the reviewer and is not a failure condition.
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.

