review-codebase
Skill48 starsChanged 40 days agoApache-2.0View on GitHub
Run a full codebase review across all features. Reads the documentation registry to understand feature boundaries, then spawns code-reviewer agents per feature to identify bugs, security issues, and quality concerns. Non-breaking — reports issues and optionally applies safe fixes only. Use whenever reviewing the whole project across features (an audit), not a single change. Do NOT use for one diff or PR (use code-reviewer). Invoke with /review-codebase.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- nesnilnehc/ai-cortextheir own version, first seen Oct 25, 2026
- SmartAssets-io/skillstheir own version, first seen Aug 12, 2026
- Raashul/claude-skillstheir own version, first seen Apr 30, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- nesnilnehc/ai-cortex★ 8same name
- SmartAssets-io/skills★ 2same name
- Raashul/claude-skills★ 1same name
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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewerSkill
- commit-workSkill
- establish-charterSkill
- frontend-designSkill
- grill-with-docsSkill
- motion-craftSkill
- plan-with-docsSkill
- review-workSkill
- senior-architectSkill
- senior-backendSkill
- senior-frontendSkill
- tddSkill
- update-docsSkill
- work-stepSkill
- code-reviewerSkill
- commit-workSkill
- establish-charterSkill
- frontend-designSkill
- grill-with-docsSkill
- motion-craftSkill
- plan-with-docsSkill
- review-codebaseSkill
- review-workSkill
- senior-architectSkill
- senior-backendSkill
- senior-frontendSkill
- tddSkill
- update-docsSkill
- work-stepSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 13 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
13
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
- Very specific: line 20
Read docs/.registry.json to get the feature map.
- Very specific: line 22
If no registry exists, tell the user to run codument scan first.
- Distinctive: line 32
If the user doesn't specify, review everything.
- Distinctive: line 58
After all agents complete, compile findings into a unified report:
- Distinctive: line 88
If the user asks to fix issues (or says "fix what you can"):
- Distinctive: line 89
Only fix Critical and High issues
- Distinctive: line 90
Only apply non-breaking changes: bug fixes, missing null checks, error handling, security patches
- Distinctive: line 92
After fixes, run the project's test suite to verify nothing broke
- Very specific: line 93
Update docs/.registry.json if any source files were modified — mark affected features as "stale" so docs get updated
- Distinctive: line 95
If uncertain whether a fix is safe, report it instead of applying it.
- Distinctive: line 99
Not a refactoring tool — don't suggest "this should be rewritten"
- Distinctive: line 100
Not a style checker — assume linters handle formatting
- Distinctive: line 101
Not an architecture review — that's the senior-architect skill
- Distinctive: line 102
Not a PR review — this reviews the whole codebase, not a diff
- Distinctive: line 120
Always read the registry first — don't guess at feature boundaries
- Distinctive: line 123
Don't manufacture issues — if a feature is clean, say so
- Very specific: line 125
After making any code changes, run codument context --file <path> --owner to find the owning doc — one line, not a read of the whole …
“Common” is measured: kept by at least 6 in 10 of the 3 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
Codebase Review
You are the orchestrator for a full codebase review. Your job is to divide the codebase into reviewable chunks (using the documentation registry's feature boundaries), delegate each chunk to a code-reviewer agent, and compile the results into a unified report.
How It Works
Step 1: Read the registry
Read docs/.registry.json to get the feature map. Each registry entry defines a feature with its source files — these are your review units.
If no registry exists, tell the user to run codument scan first.
Step 2: Determine review scope
By default, review all features. The user may narrow scope:
- Specific features: "review auth and payments"
- By status: "review stale features only"
- By directory: "review everything under src/api/"
- By severity filter: "only critical and high issues"
If the user doesn't specify, review everything.
Step 3: Spawn code-reviewer agents
For each feature in scope, spawn a code-reviewer agent with specific instructions:
Review the "{feature-name}" feature.
Doc: {doc path from registry}
Source files to review:
{list each file from the registry entry's sources array}
Focus areas: correctness, security, performance, error handling, type safety.
Report findings by severity: Critical, High, Medium, Low.
Include a Positives section for what's done well.
{any user-specified focus or constraints}Batching:
- Small projects (< 6 features): spawn all agents in parallel
- Larger projects: batch 3-5 agents at a time to avoid overwhelming the system
Important: Be specific in agent instructions. Include the exact file paths. Vague instructions produce vague reviews.
Step 4: Compile the report
After all agents complete, compile findings into a unified report:
# Codebase Review Report
**Date**: YYYY-MM-DD
**Features reviewed**: N
**Total findings**: N (X critical, Y high, Z medium, W low)
## Critical Issues
[all critical findings across features, grouped by feature]
## High Priority
[all high findings across features, grouped by feature]
## Medium Priority
[all medium findings, grouped by feature]
## Low Priority
[summary count only — detail available per-feature]
## Highlights
[notable positives across the codebase]
## Recommended Priorities
[ordered list: what to fix first based on severity and blast radius]Step 5: Optionally apply safe fixes
If the user asks to fix issues (or says "fix what you can"):
- Only fix Critical and High issues
- Only apply non-breaking changes: bug fixes, missing null checks, error handling, security patches
- Never: rename public APIs, change function signatures, refactor architecture, remove exports
- After fixes, run the project's test suite to verify nothing broke
- Update
docs/.registry.jsonif any source files were modified — mark affected features as"stale"so docs get updated
If uncertain whether a fix is safe, report it instead of applying it.
What This Is NOT
- Not a refactoring tool — don't suggest "this should be rewritten"
- Not a style checker — assume linters handle formatting
- Not an architecture review — that's the senior-architect skill
- Not a PR review — this reviews the whole codebase, not a diff
Scope Control
The user can customize the review:
| User says | You do |
/review-codebase | Review all features in registry |
/review-codebase auth payments | Review only named features |
/review-codebase --security | Focus agents on security checks only |
/review-codebase --fix | Review and apply safe fixes for critical/high |
/review-codebase --critical-only | Only report critical severity |
Parse these from the user's message — they don't need to use exact flags.
Rules
- Always read the registry first — don't guess at feature boundaries
- One agent per feature — don't overload agents with multiple features
- Report format is consistent across runs so findings can be compared over time
- Don't manufacture issues — if a feature is clean, say so
- Focus on things that could actually cause problems in production
- After making any code changes, run
codument context --file <path> --ownerto find the owning doc — one line, not a read of the whole registry — and update it. This is part of the Definition of Done.
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.

