From project-tools
Review code changes for defects, regressions, missing tests, and risky design decisions before shipping.
How this skill is triggered — by the user, by Claude, or both
Slash command
/project-tools:beepus-maximus-project-code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This is the canonical workflow. Claude slash commands may call this skill, but they must not duplicate its process. Codex should use this skill directly. Project-specific documents, scripts, tools, and paths named below are optional context; read or run them only when they exist in the current repository.
This is the canonical workflow. Claude slash commands may call this skill, but they must not duplicate its process. Codex should use this skill directly. Project-specific documents, scripts, tools, and paths named below are optional context; read or run them only when they exist in the current repository.
Use this skill as the Code Review workflow. Your job is to find defects by spawning a fresh-eyes reviewer subagent, then implementing fixes and iterating until findings degrade to nitpicks.
This is not a summary of the diff. It is a search for things that are wrong.
Base all findings on current source code only. Do not read or reference files in .agents/, scratch/, or prior audit/review reports. If you recall information from a previous session, verify it against the current file before citing it.
Before starting, read:
Determine what to review from context:
Collect the file list and read every file in scope before proceeding.
Before spawning the reviewer, build a lightweight impact map of the changes. This gives the reviewer context about what the code affects beyond the files being reviewed.
Identify changed types and functions — From the files in scope, list the public/internal types, protocols, and functions that were modified or added.
Trace 1-hop dependents — For each changed type/function, grep the codebase for references outside the changed files. Note:
Summarize as blast-radius context — Produce a compact summary to inject into the reviewer prompt:
Blast-radius context for this review:
- Changed types: [Foo, BarProtocol, BazClient]
- Packages affected: [PackageA, PackageB]
- Dependent UI/integration points: [FooView, BarListView]
- Test coverage: [FooTests covers Foo; BarProtocol conformers untested]
- Risk signals: [protocol change with 3 conformers; schema or contract change in Foo]
This context helps the reviewer assess whether changes are safe beyond the files they can see. It is informational — the reviewer still reviews the code on its merits.
Launch a subagent with subagent_type: "general-purpose" and this prompt structure:
You are a senior reviewer for this project's language and platform doing a fresh-eyes code review.
You have never seen this code before. You are looking for defects, not compliments.
Review priority (in order):
1. Correctness and behavioural regressions
2. Data integrity, persistence/storage safety, architecture violations
3. Performance and update-frequency risk
4. Test coverage and verification gaps
5. Code clarity and maintainability
For UI code, also check:
- presentation purity (no expensive work, no side effects)
- state ownership (narrowest owner, no mystery state)
- invalidation scope (broad observation in repeated UI elements)
- identity stability (ForEach IDs, conditional view swapping)
- AI tells (uniform padding, Color.blue, .system(size:), centre-aligned content text)
Project rules:
- Use the project's preferred observation/state model
- No force unwraps in production code
- Use the project's preferred async style
- Business logic outside presentation code
- Feature code stays internal, helpers are private
- Use the project's design tokens and spacing scale
Files to review:
<include the full content of each file>
Project context:
<include relevant spec excerpts if a specification exists>
Blast-radius context:
<include the blast-radius summary from Round 0>
Use this to assess whether changes to shared types, protocols, or models
are safe for their dependents. Flag concerns about untested dependents
or breaking changes to public API.
Output format:
Present findings in a single scannable table — do NOT use bulleted lists or headed sections for individual findings:
| # | Severity | File:Line | Finding | Why It Matters | Fix | Effort |
|---|----------|-----------|---------|----------------|-----|--------|
Severity: MUST FIX | SHOULD FIX | NITPICK
Effort: S (minutes) | M (under an hour) | L (hours)
Group rows by severity within the table. If you find nothing wrong, say so — do not invent findings.
End with a one-line verdict: "PASS", "PASS WITH NITPICKS", or "NEEDS WORK".
When the reviewer returns:
Present the validated findings to the user in a table:
| # | Severity | File:Line | Finding | Fix |
|---|----------|-----------|---------|-----|
STOP and wait for user approval before implementing fixes.
After user approves (or adjusts):
After fixes are implemented, spawn a new reviewer subagent with the updated files. The new reviewer must not see the previous findings — it is a fresh pair of eyes.
Use the same prompt structure as Round 1, but add:
This code has been through one round of review and fixes.
Your job is to find anything that was missed or introduced by the fixes.
Be thorough but calibrated — do not re-litigate style choices that are consistent with the project.
Evaluate the new findings:
## Code Review — [Scope]
### Rounds: N
### Verdict: [PASS | PASS WITH NITPICKS | NEEDS WORK]
### Findings Fixed
| # | Severity | Finding | Round Fixed |
|---|----------|---------|-------------|
### Remaining Nitpicks (optional)
- [nitpick with file:line]
### Review Coverage
- Files reviewed: N
- Total findings: N (N fixed, N nitpicks remaining)
After the review converges, suggest the appropriate next action:
| Situation | Suggested Skill | Why |
|---|---|---|
| Reviewer found spec gaps | sync-spec skill | Reconcile the spec before shipping |
| All findings resolved, code is ready | ship-it skill | Commit, PR, monitor, land |
| Review revealed UX concerns | pre-ship skill | Address UX/visual issues the reviewer flagged |
| Findings are minor and isolated | patch skill | Quick targeted fix with verification, no full implement skill cycle |
| Review surfaced an idea for later | idea-seed skill | Capture it with a trigger condition |
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub 4eleven7/claude-skills --plugin project-tools