/dev-workflow:code-reviewfrom dev-workflow
Runs comprehensive code review with AI tools, analyzing architecture, code quality, security, and test coverage. Leverages MCP servers for multi-perspective review. Use after implementation or refactoring before PR.
Ships in dev-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run a comprehensive code review on $ARGUMENTS (or the current branch if no arguments are provided), leveraging any available AI MCP servers for multi-perspective analysis.
Every finding you report MUST clear the bar in refs/finding-bar.md:
located (file:line), concretely fixable (minimal suggested diff), confident
(high/medium only — drop the rest), and material (correctness / security / data /
spec / explicit convention — never pure style). Prefer fewer, sharper findings: ten
line-anchored issues with fixes beat forty generic observations. This bar is what makes the
review as pointed as an inline PR reviewer instead of a wall of advice.
The spine of this review is refs/high-signal-checklist.md — the concrete, recurring issues that automated PR reviewers (e.g. GitHub Copilot) flag and that generic "review for quality" prompts miss: spec↔code mismatch, enum/constant hardcoding, nil-on-nullable, time/range boundaries, get-or-insert races, missing indexes, XSS escaping, weak test assertions, message↔logic drift. Walking the diff against every category of that checklist is the primary job (Phase 3.b), and pre-empts the post-PR churn of fixing these one comment at a time.
The perspectives below are secondary lenses — a coverage net so nothing whole-cloth is missed. They are necessary but not sufficient; do not let them turn the review into generic advice. Any finding from a lens still has to clear the finding bar.
| Perspective | Details |
|---|---|
| Architecture | Pattern appropriateness, SOLID principles, consistency with existing architecture |
| Quality | Readability, maintainability, duplication, complexity |
| Security | OWASP Top 10, input validation, authentication, authorization |
| Testing | Coverage gaps, coverage threshold compliance, test case sufficiency (normal/error/edge/boundary), edge cases |
| Performance | Inefficient data fetching, memory leaks, unnecessary computation, algorithmic complexity |
| Conventions | CLAUDE.md / AGENTS.md project convention compliance |
| Consistency | PR description / commit messages / linked issue vs. the actual diff (claimed scope, definitions, DB impact, behavior all match the code) |
Determine the base branch automatically:
git remote show origin and look for the HEAD branch.main, master, or develop branches (in that order).git branch --show-current
git diff <base>...HEAD --stat
git diff <base>...HEAD
git status --porcelain
git log --oneline <base>...HEAD
PR description / intent (required for the Consistency perspective): capture the stated intent so the review can cross-check it against the diff (checklist category A).
# If a PR already exists for this branch:
gh pr view --json title,body 2>/dev/null
If no PR exists yet, use the commit messages (git log) and the linked issue
(Linear/Jira ID in the branch name or commits) as the statement of intent. Fetch the
issue body if the tooling is available.
Large diff handling: If git diff --stat shows more than 1000 lines changed or 30+ files, ask the user whether to review all changes or focus on specific directories/files.
Read project conventions before starting the review:
CLAUDE.md — coding conventions, style rules, project guidelinesAGENTS.md — agent-specific instructionsdocs/ directory — architecture and design documentsPrepare the following context to pass to AI engines:
git diff <base>...HEADgit diff --name-only <base>...HEADgit log --oneline <base>...HEADCheck your available tools for AI-powered MCP servers and dispatch reviews in parallel. Below are known integrations — use any that are available, and skip those that are not.
Pass the finding bar and the high-signal checklist into every dispatched prompt, and
require each engine to anchor findings to file:line with a minimal fix. An engine that
returns generic prose without locations is producing noise — re-prompt it for located
findings or discard its output.
Check if mcp__codex__spawn_agent is available. If so, spawn an agent in background with the diff, file list, commit log, and conventions, instructing it to review from an architecture perspective (design patterns, SOLID principles, architectural consistency, separation of concerns, dependencies, scalability).
Check if mcp__gemini__gemini-analyze-code is available. If so, call it with the full diff, instructing it to review code quality and security (vulnerabilities, error handling, duplication, test coverage, performance).
If other AI-capable MCP tools are available, dispatch additional review perspectives to them.
Request each engine to return findings in this format:
If no AI MCP servers are available: Skip Phase 2. Claude performs a comprehensive review covering ALL perspectives in Phase 3.
This is the primary pass. Do it whether or not Phase 2 ran.
Step 1 — Spec ↔ implementation table (checklist category A). Take each factual claim in
the captured intent (PR/commit/issue) and point at the line that proves or contradicts it.
Emit the claim-by-claim table from the report template (Claim | file:line | VERIFIED / MISMATCH) before anything else. A MISMATCH that ships wrong behavior is Critical.
Step 2 — Walk every checklist category against the diff. Go through
refs/high-signal-checklist.md categories B–I in order — B.
enum/constant hardcoding, C. nil/nullable, D. time & range boundaries, E. concurrency &
idempotency, F. indexes & query efficiency, G. web security & a11y, H. test rigor, I.
message/i18n↔logic. Do not skim. For each category, either emit located findings or write
"clear". Each finding gets file:line, severity, confidence, and a minimal-diff fix.
Step 3 — Secondary lenses. Sweep the perspectives table for anything the checklist didn't cover (architecture fit, integration risks, convention compliance, edge cases the checklist doesn't enumerate). Same bar applies — located, fixable, material, or it doesn't ship.
Auto-detect the project's test, lint, and type-check commands from configuration files. Run each gate and report results. If a command is undetectable, ask the user. If the project does not use static typing, skip the type-check gate.
Report findings the way an inline PR reviewer does — located, minimal, actionable — following refs/report-template.md. Print the report directly to the conversation. Do not create a file unless the user requests it.
Each finding is one block (outer fence shown with four backticks so the inner diff renders):
[Severity] path/to/file.rb:42 — one-line statement of the problem · category · confidence: high
Why it's wrong: one or two concrete sentences — what breaks, under what input/timing.
```diff
- offending line
+ minimal fix
```
file:line. One finding = one location + one fix. The diff must be minimal —
change only what the finding requires.If Critical or High severity findings exist:
Do NOT consider the review complete until zero Critical and zero High findings remain.
/pr-summary to generate PR description (only if no Critical or High findings remain)What SKILL.md sets; muted values are Claude Code's defaults
xhighThree short reads, in order
npx claudepluginhub kzytateishi/spikeee-plugins-marketplace --plugin dev-workflowOther plugins' skills for the same job
6 skills in this plugin
/dev-workflowRun the full development workflow end-to-end: specify → implement → refactor → code-review → pr-summary. Pauses after specify for user confirmation before proceeding. Pass a feature description to start from specification, or a feature name to resume from implementation.
/implementStart implementation based on a specification document (order.md). Processes tasks from todo.md sequentially. Supports TDD (Red-Green-Refactor) or standard implementation workflow. Auto-detects project's test framework, lint tools, and coding conventions. Use after /specify.
/pr-summaryAuto-generate a pull request description from git changes. Analyzes commits, diffs, and code structure to produce a comprehensive PR summary. Automatically detects and follows your project's PR template if present. Use after completing implementation, before creating a PR.