Code Review
Review code changes by running three independent reviews in parallel, correlating findings by severity, then validating with an architecture-level review pass. Use provided user guidance to steer the review and focus on specific code paths, changes, or areas of concern.
Workflow
Determine scope — what to review:
- If PR number/URL provided: fetch with
gh pr view / gh pr diff
- If uncommitted changes exist: review those (
git diff HEAD)
- Otherwise: review last commit (
git show HEAD)
Run 3 independent reviews in parallel — each gets the same diff but reviews independently, focusing on bugs, security, and structure. Each review outputs findings with severity, file path, line number, and suggested fix.
Correlate findings by severity:
- Critical — Will cause data loss, security breach, or system failure
- High — Likely to cause bugs in production
- Medium — Could cause issues under certain conditions
- Low — Minor improvements, best practices
Architecture validation — Send correlated findings to an architecture-level reviewer for a deep accuracy/correctness review. The reviewer evaluates each finding against surrounding code, subsystems, abstractions, and overall architecture. Apply any recommendations (upgrade, downgrade, or dismiss findings). NEVER SKIP ARCHITECTURE REVIEW.
Structural and production lenses — For structural concerns, use
engineering-patterns vocabulary: module, interface, depth, shallow module,
seam, adapter, locality, leverage, deletion test. For service, data, async,
external dependency, or deployment concerns, use production-readiness.
Output unified report — deduplicated, grouped by severity, with file paths, line numbers, and suggested fixes.
Usage
/code-review # Review uncommitted changes or last commit
/code-review 123 # Review PR #123
/code-review --last 3 # Review last 3 commits
Output Format
## Code Review Summary
**Scope:** {uncommitted changes | PR #X | last N commits}
**Files reviewed:** {count}
### Critical Issues
- **[file:line]** Description. Fix: suggestion.
### High Priority
- **[file:line]** Description. Fix: suggestion.
### Medium Priority
- **[file:line]** Description. Fix: suggestion.
### Low Priority / Suggestions
- **[file:line]** Description.
### Summary
{1-2 sentences: overall assessment}
Review Principles
- Be certain — Don't flag something unless you've investigated
- Full context — Read entire files, not just diffs
- No style zealotry — Focus on bugs, not preferences
- Realistic scenarios — Don't invent hypothetical edge cases
- Matter-of-fact — No flattery, no hedging
- Structural clarity — When structure is the issue, explain how it affects
locality, leverage, test surface, or blast radius
- Production behavior — When code crosses a boundary, check timeout, retry,
idempotency, observability, migration, and rollback behavior
Source: mukealicious/dotfiles — distributed by TomeVault.
1---2name: code-review-1603description: Review code changes using parallel review agents. Use when reviewing PRs, recent commits, or uncommitted changes. Invoke with /code-review or when asked to review code. Use engineering-patterns for structural/module-depth findings and production-readiness for service/reliability risks. Use when this capability is needed.4---56# Code Review78Review code changes by running three independent reviews in parallel, correlating findings by severity, then validating with an architecture-level review pass. Use provided user guidance to steer the review and focus on specific code paths, changes, or areas of concern.910## Workflow11121. **Determine scope** — what to review:13 - If PR number/URL provided: fetch with `gh pr view` / `gh pr diff`14 - If uncommitted changes exist: review those (`git diff HEAD`)15 - Otherwise: review last commit (`git show HEAD`)16172. **Run 3 independent reviews in parallel** — each gets the same diff but reviews independently, focusing on bugs, security, and structure. Each review outputs findings with severity, file path, line number, and suggested fix.18193. **Correlate findings** by severity:20 - **Critical** — Will cause data loss, security breach, or system failure21 - **High** — Likely to cause bugs in production22 - **Medium** — Could cause issues under certain conditions23 - **Low** — Minor improvements, best practices24254. **Architecture validation** — Send correlated findings to an architecture-level reviewer for a deep accuracy/correctness review. The reviewer evaluates each finding against surrounding code, subsystems, abstractions, and overall architecture. Apply any recommendations (upgrade, downgrade, or dismiss findings). **NEVER SKIP ARCHITECTURE REVIEW.**26275. **Structural and production lenses** — For structural concerns, use28 `engineering-patterns` vocabulary: module, interface, depth, shallow module,29 seam, adapter, locality, leverage, deletion test. For service, data, async,30 external dependency, or deployment concerns, use `production-readiness`.31326. **Output unified report** — deduplicated, grouped by severity, with file paths, line numbers, and suggested fixes.3334## Usage3536```37/code-review # Review uncommitted changes or last commit38/code-review 123 # Review PR #12339/code-review --last 3 # Review last 3 commits40```4142## Output Format4344```markdown45## Code Review Summary4647**Scope:** {uncommitted changes | PR #X | last N commits}48**Files reviewed:** {count}4950### Critical Issues51- **[file:line]** Description. Fix: suggestion.5253### High Priority54- **[file:line]** Description. Fix: suggestion.5556### Medium Priority57- **[file:line]** Description. Fix: suggestion.5859### Low Priority / Suggestions60- **[file:line]** Description.6162### Summary63{1-2 sentences: overall assessment}64```6566## Review Principles6768- **Be certain** — Don't flag something unless you've investigated69- **Full context** — Read entire files, not just diffs70- **No style zealotry** — Focus on bugs, not preferences71- **Realistic scenarios** — Don't invent hypothetical edge cases72- **Matter-of-fact** — No flattery, no hedging73- **Structural clarity** — When structure is the issue, explain how it affects74 locality, leverage, test surface, or blast radius75- **Production behavior** — When code crosses a boundary, check timeout, retry,76 idempotency, observability, migration, and rollback behavior7778---79> Source: [mukealicious/dotfiles](https://github.com/mukealicious/dotfiles) — distributed by [TomeVault](https://tomevault.io).80<!-- tomevault:4.0:skill_md:2026-06-16 -->