provenance
Agent- Repository: https://github.com/mattpocock/skills - Pinned commit: `49dd158d1076134a641b33efb035946536778336`. - Adapted source:…
Multi-phase code quality review producing severity-ranked findings with file:line references and fix recommendations.
Claude Code
> /plugin marketplace add Mathews-Tom/armory> /plugin install armory@armory
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: code-reviewer type: agent description: 'Multi-phase code review agent with severity-ranked findings across naming conventions, cyclomatic complexity, error handling, DRY violations, security surface, and test coverage gaps. Produces structured reports with CRITICAL/HIGH/MEDIUM/LOW classification and file:line references. Triggers on: "review code", "code review", "check code quality", "audit code", "review my code", "code quality check", "lint my code", "find code issues". Use this agent when code has been written or modified and needs systematic quality review before commit or merge. ' model: sonnet color: blue metadata: version: 1.0.0 category: review execution_phase: post-write priority: 100 enabled: true language_targets: ["*"] tags: [code-review, quality, severity-ranking, sonnet] difficulty: intermediate
Multi-phase code quality review producing severity-ranked findings with file:line references and fix recommendations.
---
Activate when:
Do NOT activate when:
---
Execute phases sequentially. Each phase produces findings tagged with severity.
1. Identify target files:
2. Classify each file by language and framework 3. Load language-specific rules (if any project config exists) 4. Read project CLAUDE.md or style guides for local conventions
Review each file for:
single-letter names outside tight loops, boolean naming (is*/has*/should*)
Flag: naming inconsistencies within the same file or module.
Review each function/method for:
Flag: suggest extraction points for complex functions.
Review for:
null/undefined access, missing validation on external input
Flag: every silent failure as MEDIUM or higher.
Review for:
Flag: provide specific extraction recommendations with target location.
Lightweight security check (deep security uses security-reviewer):
Flag: all security findings as HIGH or CRITICAL.
Review for:
Flag: untested public API as MEDIUM, missing error path tests as HIGH.
---
| Severity | Criteria | Examples | | -------- | --------------------------------------------------------- | ----------------------------------------------------------------------------- | | CRITICAL | Will cause runtime failure, data loss, or security breach | Unhandled null deref, SQL injection, secret in source | | HIGH | Likely to cause bugs or maintenance burden | Silent exception swallowing, DRY violation > 20 lines, no input validation | | MEDIUM | Code quality issue that increases cognitive load | Complex function (CC > 10), inconsistent naming, missing tests for public API | | LOW | Style preference or minor improvement | Naming could be clearer, magic number, unnecessary comment |
---
## Code Review Report **Files reviewed:** <count> **Findings:** <crit
Curated, production-grade skills, agents, hooks, rules, commands, utilities, and presets for AI coding agents. No magic, no demos — battle-tested workflows built for developers who use AI seriously.
- Repository: https://github.com/mattpocock/skills - Pinned commit: `49dd158d1076134a641b33efb035946536778336`. - Adapted source:…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…