code-review
Coordinates specialist agent personas to perform comprehensive code reviews, focusing on architecture, security, and performance.
Install
mkdir -p .claude/skills/code-review-noodlemind && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15921" && unzip -o skill.zip -d .claude/skills/code-review-noodlemind && rm skill.zipInstalls to .claude/skills/code-review-noodlemind
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Multi-agent code review with confidence-scored findings, persona synthesis, and action routing. Use when reviewing PRs, changes, or branches. Not for single-domain review — delegate to the specialist directly.Key capabilities
- →Coordinate multiple specialist personas for code review
- →Merge and deduplicate findings based on severity and confidence
- →Route findings by action type
- →Determine review scope from pull requests, current changes, specific files, or branch comparisons
- →Select personas and checks based on diff content and project type
- →Synthesize findings into a structured report with a verdict
How it works
The skill coordinates multiple specialist personas and checks, dispatches them with review context, and then synthesizes their structured findings into a single report.
Inputs & outputs
When to use code-review
- →Reviewing pull requests
- →Analyzing code changes
- →Auditing code quality
- →Verifying branch readiness
About this skill
Code Review
Pipeline Role
Step 4 of the connected pipeline: Capture → Plan → Work → Review → Compound.
This skill coordinates multiple specialist personas to provide comprehensive code review. Each persona returns structured findings with severity and confidence scores. The skill merges, deduplicates, and routes findings by action type.
When to Use
Activate when the user wants to:
- Review a pull request or set of code changes
- Get multi-perspective analysis of code quality
- Audit code for security, performance, or architecture concerns
Trigger Examples
Should trigger:
- "Review this PR"
- "Can you do a code review of my changes?"
- "Check this branch for issues before I merge"
Should not trigger:
- "Check this code for security issues only" → delegate to @security-sentinel directly
- "Is this Java code idiomatic?" → delegate to @java-reviewer directly
- "Review this plan document" → use /document-review
References
- Persona definitions: Read
references/review-personas.mdfor what each reviewer looks for, severity calibration, and engagement triggers - Findings schema: Read
references/findings-schema.mdfor the structured JSON output contract, severity definitions, confidence guidelines, and action routing classes
Workflow
1. Determine Mode
Pipeline mode: If a plan file is provided and contains status: in YAML frontmatter, enforce pipeline state validation (status must be review or in-progress).
Standalone mode: If no plan file is provided or the file lacks state machine fields, skip pipeline validation and review whatever is provided.
2. Understand the Scope
Determine what to review:
- Pull Request: Fetch PR details and modified files
- Current Changes: Review uncommitted changes in the workspace
- Specific Files: Review files or directories specified by the user
- Branch Comparison: Diff between two branches:
- Determine the base branch (ask the user if unclear; default
mainormaster) - Get the diff using the best available tool:
- VS Code: Ask the user to run
git diff <base>...<branch> -- . ':!*.lock'in terminal, then read withterminalLastCommand - CLI/Claude Code: Run
git diff <base>...<branch> -- . ':!*.lock'directly viarun_commandorBash
- VS Code: Ask the user to run
- Parse into changed files list with per-file hunks for specialist input
- Determine the base branch (ask the user if unclear; default
3. Gather Context and Detect Intent
- Read modified files and understand the changes
- Check available repository context for accumulated codebase knowledge:
README.md,docs/agent-context.md,docs/codebase-snapshot.md, anddocs/solutions/. When reviewing this prompt-library repo, also check.github/agent-context.md. - Check
docs/solutions/for prior solutions related to the changed areas - If a plan file is referenced, read
## Implementation Notesfor decisions and trade-offs - Detect project type (Java, Python, TypeScript, SQL/data, AWS) from project files
- Read related code and dependencies touched by the changes
- Write a 2-3 line intent summary: what the change is trying to accomplish
4. Select Personas
Read references/review-personas.md for the full persona catalog.
Always engage (every review): architecture-strategist, security-sentinel, performance-oracle, code-simplicity-reviewer, pattern-recognition-specialist (5 personas)
Conditionally engage based on diff content — this is judgment, not keyword matching:
- Language-specific: java-reviewer (Java), compounding-typescript-reviewer (TypeScript), python-reviewer (Python)
- Domain-specific: sql-reviewer (SQL/query/schema work), aws-reviewer (AWS integrations), data-integrity-guardian (migration/backfill/schema risk), spec-flow-analyzer (plan file referenced)
4b. Discover Project Checks
Scan available check directories for check files (.md files with name: frontmatter):
- bundled library checks under this skill's
references/checks/directory - workspace
.github/checks/, if the product repo defines project-specific checks
For each check:
- If the check has a
globs:field, only include it when changed files match the glob pattern - If no
globs:, include for all reviews - Each check will be dispatched as a focused subagent alongside personas
Announce the selected team (personas + checks) before dispatching.
5. Dispatch Personas and Checks
Orchestration: If the agent tool is available for subagent delegation, delegate to persona agents as isolated subagents in parallel batches (3-4 at a time). Otherwise, apply each persona's perspective sequentially within this session.
Each persona receives:
- Their persona definition from
references/review-personas.md - The findings schema from
references/findings-schema.md - Review context: intent summary, file list, diff, project type
- Instruction to return structured JSON matching the schema
Check dispatch: Each discovered check is dispatched as a focused subagent. The subagent receives:
- The check's full content (criteria, examples)
- The findings schema from
references/findings-schema.md - The same review context as personas
- The check's
severity-defaultas the default severity for findings
Checks run in parallel with personas. Their findings are merged into the same synthesis pipeline.
Each persona returns JSON:
{
"reviewer": "persona-name",
"findings": [...],
"residual_risks": [...],
"testing_gaps": [...]
}
6. Synthesize Findings
Merge multiple persona outputs into one deduplicated, confidence-gated finding set:
- Validate: Check each output against the schema. Drop malformed findings (missing required fields). Record drop count.
- Confidence gate: Suppress findings below 0.60 confidence. Exception: P1 findings at 0.50+ confidence survive — critical-but-uncertain issues must not be silently dropped.
- Deduplicate: Fingerprint = normalize(file) + line_bucket(line, ±3) + normalize(title). When fingerprints match: keep highest severity, keep highest confidence with strongest evidence, union evidence arrays, note which personas flagged it.
- Cross-persona boost: When 2+ independent personas flag the same issue, boost merged confidence by 0.10 (capped at 1.0). Note agreement in the output.
- Route by action type: For each merged finding, set the final
autofix_classper the routing definitions inreferences/findings-schema.md:safe_auto→ in-skill fix queue (applied automatically)gated_auto→ user approval required before applyingmanual→ handoff as residual workadvisory→ report only, no action
- Sort: Order by severity (P1 first) → confidence (descending) → file path → line number.
- Collect coverage: Union residual_risks and testing_gaps across all personas.
7. Output Format
Present findings as pipe-delimited markdown tables grouped by severity level. Omit empty severity levels.
# Code Review
**Scope:** [What was reviewed]
**Intent:** [2-3 line summary of what the change accomplishes]
**Personas:** [List of engaged personas with conditional justifications]
### P1 — Critical
| # | File | Issue | Persona(s) | Confidence | Route |
|---|------|-------|------------|------------|-------|
| 1 | `path:line` | Issue title | security, architecture | 0.92 | safe_auto |
### P2 — Important
| # | File | Issue | Persona(s) | Confidence | Route |
|---|------|-------|------------|------------|-------|
| 2 | `path:line` | Issue title | performance | 0.78 | manual |
### P3 — Suggestions
| # | File | Issue | Persona(s) | Confidence | Route |
|---|------|-------|------------|------------|-------|
| 3 | `path:line` | Issue title | patterns | 0.65 | advisory |
## Coverage
- Suppressed: [N] findings below 0.60 confidence
- Residual risks: [from personas]
- Testing gaps: [from personas]
- Failed personas: [any that failed or timed out]
---
## Verdict
[Ready to merge / Ready with fixes / Not ready]
[Brief reasoning]
8. Quality Gates
Before delivering the review, verify:
- Each finding is actionable — if it says "consider" or "might want to" without a concrete fix, rewrite it
- No false positives from skimming — verify the "bug" isn't handled elsewhere in the same function
- Severity is calibrated — a style nit is never P1; a SQL injection is never P3
- Line numbers are accurate — verified against file content
- Findings don't duplicate linter output — focus on semantic issues the linter won't catch
9. Pipeline Continuation
If reviewing a plan file with status: review:
- After review is complete, suggest: "Run
/compound-learningsto document any lessons learned."
Error Handling
- Empty diff (nothing to review): Report "No changes detected" and suggest checking the branch or staging area.
- All personas fail (no output from any): Report "Review degraded — 0 of N personas returned results" with the scope summary. Do not present an empty findings table.
- Single persona fails: Report which persona failed. Present findings from successful personas. Offer to retry the failed persona.
- Persona returns malformed JSON: Drop the malformed findings. Record the drop in the Coverage section. Continue with valid findings.
- Persona times out (partial output): Include whatever findings were returned. Note the timeout in Coverage.
- Plan file missing or malformed: Report the error and suggest running the prior pipeline step.
- Tool not available: Use the fallback from the cross-environment compatibility table in copilot-instructions.md.
Guardrails
- Be specific: reference exact file paths and line numbers.
- Be constructive: suggest concrete fixes, not just problems.
- Prioritize: most important issues first.
- Deduplicate: merge overlapping findings from different personas.
- Separate pre-existing issues from newly introduced issues when the diff makes the distinction clear.
When not to use it
- →Reviewing for security issues only
- →Checking if Java code is idiomatic
- →Reviewing a plan document
Limitations
- →Does not perform single-domain reviews; delegates to specialists directly for those cases
- →Requires a plan file with YAML frontmatter for pipeline mode validation
- →Requires `agent` tool for parallel subagent delegation; otherwise, personas run sequentially
How it compares
This workflow automatically engages multiple specialized perspectives and consolidates their feedback, unlike a manual review that relies on a single reviewer's expertise.
Compared to similar skills
code-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-review (this skill) | 0 | 3mo | No flags | Advanced |
| reviewing-code | 21 | 8mo | No flags | Intermediate |
| pr-review | 6 | 2mo | Review | Intermediate |
| code-review-checklist | 3 | 1mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
code-review-checklist
vudovn
Code review guidelines covering code quality, security, and best practices.
fix-review
sickn33
Verify fix commits address audit findings without new bugs
django-verification
affaan-m
Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.
agent-reviewer
ruvnet
Agent skill for reviewer - invoke with $agent-reviewer