review-code
Skill8 starsChanged 2 months agoMITView on GitHub
Runs a comprehensive multi-agent code review of a PR, commit, or the
41 other projects use a version of this.
Adopted by
Most recently taken up by
- kamui/skillstheir own version, first seen Oct 1, 2026
- GeiserX/agent-skillstheir own version, first seen Sep 30, 2026
- gtrabanco/agentic-workflowtheir own version, first seen Sep 22, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
- yamanidev/claude-code-configurationtheir own version, first seen Sep 13, 2026
- fitlab-ai/agent-infratheir own version, first seen Sep 11, 2026
Used with
Projects with it also use review-pr, test and 4 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.
Microsoft AzureSkillreview-pr
Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.
Also in 4 projects that use this
Microsoft AzureSkilltest
Also in 4 projects that use this
VercelSkillinvestigate
Investigate a specific issue report with strict, evidence-driven diagnosis.
Also in 3 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 4 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 3 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- ankitvgupta/exo★ 497same name
- ninehills/skills★ 280same name
- rengwu/wayfinder-maps★ 133same name
- avibebuilder/claude-prime★ 120same name
- fitlab-ai/agent-infra★ 86same name
- ninehills/public-skills★ 86same name
- zhao-wuyan/ccw-command-explorer★ 43same name
- gtrabanco/agentic-workflow★ 21same name
- renzrollon/interlock★ 17same name
- hellotern/Sextant★ 15same name
31 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 repository52 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- anything-to-skillSkill
- ci-generateSkill
- ci-localSkill
- clotho-researchSkill
- codex-imagegenSkill
- create-ruleSkill
- create-skillSkill
- db-migrateSkill
- docker-initSkill
- docs-adrSkill
- docs-checkSkill
- docs-diagramSkill
- docs-initSkill
- docs-rfcSkill
- docs-updateSkill
- env-setupSkill
- find-skillsSkill
- fix-bugSkill
- git-commitSkill
- git-create-prSkill
- gitflowSkill
- git-releaseSkill
- git-syncSkill
- i18n-checkSkill
- implement-featureSkill
- improve-skillSkill
- inject-docsSkill
- jira-cliSkill
- motion-studioSkill
- optimize-ai-setupSkill
- orchestrateSkill
- oss-launchSkill
- prd-to-issuesSkill
- product-design-specSkill
- product-design-tokensSkill
- product-prdSkill
- project-illustratorSkill
- project-plannerSkill
- refactorSkill
- renderSkill
- review-depsSkill
- review-designSkill
- review-perfSkill
- review-planSkill
- review-securitySkill
- shipSkill
- test-suiteSkill
- vrt-checkSkill
- wtfSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Every finding must cite a file:line you actually read: no hypothetical issues, no estimated counts.
- Distinctive: line 38
If PR or commit specified, use Bash to get changed files and diff context:
- Distinctive: line 50
When reviewing a PR or commit, always retrieve the full diff: the diff context is essential for understanding what changed versus what was …
- Distinctive: line 58
If TodoWrite is available, use it to track review progress across the specialist dimensions and report generation.
- Distinctive: line 78
Read each match to verify context and confirm it is a genuine issue
- Distinctive: line 95
After all agents complete:
- Distinctive: line 147
If no focus specified, perform comprehensive review across all dimensions.
- Distinctive: line 158
Does not modify code or run tests/benchmarks, and skips security-specific analysis entirely (use review-security for that)
- Very specific: line 170
Add its dimension (OE- prefix, Minor/Nit by default) to Phase 4/5 output: full report-addendum spec in references/agent-prompts.md.
“Common” is measured: kept by at least 6 in 10 of the 34 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
Code Review
Multi-agent code review spanning six dimensions: correctness, performance, code style, test coverage gaps, error handling, and simplicity/over-engineering. This skill performs analysis only. It surfaces issues, explains why they matter, and suggests fixes, but never touches the code itself.
Every finding must cite a file:line you actually read: no hypothetical issues, no estimated counts. Only review files within the determined scope, and only flag style deviations from the project's own conventions, not personal preference.
Review Workflow
Phase 0: Determine Review Scope
Parse arguments to determine what to review:
Arguments:
- <pr_number>: Review only files changed in PR (e.g., "123", "#123")
- <commit_sha>: Review only files changed in commit (e.g., "abc123")
- "--all" or no args: Review entire codebase
- "--focus [correctness|performance|style|tests|errors]": Focus on specific review dimensionIf PR or commit specified, use Bash to get changed files and diff context:
# For PR - get files and full diff
gh pr view <pr_number> --json files --jq '.files[].path'
gh pr diff <pr_number>
# For commit
git diff-tree --no-commit-id --name-only -r <commit_sha>
git show <commit_sha>When reviewing a PR or commit, always retrieve the full diff: the diff context is essential for understanding what changed versus what was already there. Agents should focus findings on the changed lines while using surrounding code for context.
Phase 1: Project Discovery
Explore the codebase to understand its technology stack and conventions, plus whatever quality standards it already holds itself to:
Phase 2: Initialize Progress Tracking (optional)
If TodoWrite is available, use it to track review progress across the specialist dimensions and report generation. Skip it for a small scoped review or in an environment without it (it's a convenience, not a requirement).
Phase 3: Parallel Specialist Review
Spawn 6 parallel Explore agents for comprehensive code review (5 below, plus Agent 6 from the simplicity/over-engineering module later in this file). Each agent specializes in a specific review dimension. For detailed agent prompts and patterns, see references/agent-prompts.md.
Agent assignments:
| Agent | Dimension | Focus |
| 1 | Correctness & Logic | bugs, race conditions, off-by-one errors, null safety, type mismatches |
| 2 | Performance | algorithmic complexity, unnecessary allocations, N+1 queries, missing caching, memory leaks |
| 3 | Code Style & Patterns | naming, structure, DRY violations, SOLID adherence, framework idioms |
| 4 | Test Coverage Gaps | untested code paths, missing edge case tests, weak assertions, test quality |
| 5 | Error Handling & Edge Cases | unhandled exceptions, missing validation, boundary conditions, graceful degradation |
No Task/Explore tool available: run the same six specialist prompts (Agents 1-6, full text in references/agent-prompts.md) as sequential Grep+Read passes instead of parallel subagents. Take one dimension at a time, in the same order, each following the same steps below, then merge all six dimensions' findings into one list before Phase 4.
Each agent must:
- Grep for issue patterns across files in scope
- Read each match to verify context and confirm it is a genuine issue
- Extract exact code snippets (5-10 lines) with file:line references
- Explain why the code is problematic
- Classify severity (Critical/Major/Minor/Nit)
- Provide a concrete fix suggestion with code example
Severity definitions:
| Severity | Meaning |
| Critical | Bugs that cause data loss, crashes, security holes, or incorrect business logic |
| Major | Significant issues that hurt reliability or performance, or create a maintainability risk |
| Minor | Improvements to readability and consistency, plus minor inefficiencies worth flagging |
| Nit | Style preferences, cosmetic suggestions, optional improvements |
Phase 4: Consolidate & Analyze Findings
After all agents complete:
- Collect all findings from the 6 parallel agents.
- Deduplicate: remove duplicate findings across agents (e.g., the same function flagged by both correctness and error handling agents).
- Prioritize by severity, using the same scale as above: Critical (data corruption, crashes, security implications, broken business logic), Major (performance bottlenecks, reliability issues, test gaps for critical paths), Minor (code readability, minor inefficiencies, style inconsistencies), Nit (naming preferences, optional simplifications, cosmetic changes).
- Categorize by dimension: group findings under the 6 specialist categories.
- Cross-reference findings that span multiple dimensions (e.g., a missing null check is both a correctness and error handling issue).
- Compute statistics: total findings by severity, by dimension, files reviewed vs. files with issues.
Phase 5: Generate Review Report
Generate a comprehensive markdown report following the template in references/report-template.md.
Report sections:
- Executive summary with overall code quality assessment
- Severity breakdown with counts
- Findings organized by dimension: each one carries a file:line, a code snippet, an explanation, and a fix suggestion
- Prioritized action items (Critical first, then Major)
- Positive observations - highlight well-written code, good patterns, thorough tests
To re-review after fixes, just run the skill again on the same PR/commit: Phase 0's scoping naturally re-derives the current diff, so it re-scopes to what's actually still there without a separate workflow.
Usage
# Review a specific PR
review-code 123
review-code #456
# Review a specific commit
review-code abc123def
# Review entire codebase
review-code --all
review-code
# Focus on a specific dimension
review-code 123 --focus performance
review-code --all --focus tests
# Re-review after fixes — just run it again on the same PR/commit
review-code 123Focus Options
correctness: Focus on bugs, logic errors, type safety, race conditionsperformance: Focus on algorithmic complexity, resource usage, caching, queriesstyle: Focus on naming, structure, patterns, framework idioms, DRY/SOLIDtests: Focus on test coverage gaps, assertion quality, edge case testingerrors: Focus on error handling, validation, boundary conditions, graceful degradation
If no focus specified, perform comprehensive review across all dimensions.
Additional Resources
- references/agent-prompts.md - Detailed grep patterns and agent prompts for each review dimension
- references/report-template.md - Full markdown report template with all sections
Limitations
- Static, pattern-based analysis: cannot measure actual runtime/performance impact or detect runtime-only issues; some findings may turn out to be intentional design choices
- Language support: grep patterns in references/agent-prompts.md are written for C-like and Python syntax, so adapt them for other languages before relying on pattern coverage
- Does not modify code or run tests/benchmarks, and skips security-specific analysis entirely (use review-security for that)
Simplicity & Over-engineering lens (Claude Code enhancement)
LLM-written code tends to over-engineer: interfaces built for one implementation, factories for one product, wrapper layers that just forward a call. None of that shows up as a bug, so the five specialists in Phase 3 don't catch it: it needs its own lens. This module adds a 6th parallel specialist and a matching report dimension.
Agent 6: Simplicity & Over-engineering
Spawn this agent alongside Agents 1-5 in Phase 3, in the same parallel batch. Full prompt and tag definitions: references/agent-prompts.md.
Routing out of scope: when Agent 6 flags something that Phase 4 consolidation determines is actually a correctness, security, or performance issue, move it into the matching dimension (CL-, PF-, or EH- prefix) instead of reporting it as an OE finding. An over-engineered function that also happens to be buggy is a bug first.
Add its dimension (OE- prefix, Minor/Nit by default) to Phase 4/5 output: full report-addendum spec in references/agent-prompts.md.
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.

