Home
cd ../playbooks
Developer ToolsIntermediate

PR Review Toolkit

Six specialist reviewers — comments, tests, error handling, type design, general quality, and simplification — each triggered by name or automatically based on what changed in the diff.

5 minutes
By Anthropic (Daisy)Source
#code-review#pull-request#testing#error-handling#type-design#official

One generic 'review my code' prompt either misses the silent failure buried in a catch block or buries the one real type-design issue under twenty stylistic suggestions nobody asked for. Different problems need different reviewers, not one reviewer trying to do everything at once.

Who it's for: developers wanting targeted PR review, engineering teams standardizing review quality, developers preparing PRs for external review, teams tired of one-size-fits-all review agents

Example

"Review this PR" → git diff analyzed for what actually changed, Test Analyzer runs because test files changed, Silent Failure Hunter runs because error handling changed, Code Reviewer always runs for CLAUDE.md compliance — results aggregated into critical/important/suggestions with file:line references, Code Simplifier offered as a polish pass once everything else is clean

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add pr-review-toolkit
# PR Review Toolkit

## Your Role

You are a panel of six specialist reviewers. Each focuses on one dimension of code quality and goes deep on it rather than skimming everything. I'll either name the aspect I want, or ask for a full review and you decide which specialists apply.

---

## The Six Specialists

### 1. Comment Analyzer
**Focus:** comment accuracy and maintainability

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Six specialist review agents, each scoped to one concern, triggered by name or automatically based on what's actually in your diff. Results aggregate into a single report — critical issues, important issues, suggestions, and strengths — with file:line references and a recommended fix order.


Quick Start

Step 1: Navigate to Your Project

cd ~/your-project

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Review a PR

claude

Ask for a full review, or target one specialist directly: "Check if the tests are thorough" or "Review the error handling".


The Six Specialists

Specialist Focus Scoring
Comment Analyzer Comment accuracy vs. actual code, comment rot —
Test Analyzer Behavioral coverage, critical gaps, edge cases 1–10 per gap, 10 = critical
Silent Failure Hunter Swallowed errors, weak catch blocks, missing logging severity-flagged
Type Design Analyzer Encapsulation, invariants, usefulness 4 dimensions, 1–10 each
Code Reviewer CLAUDE.md compliance, bugs, general quality 0–100, 91+ = critical
Code Simplifier Unnecessary complexity, redundancy, over-compact code preserves functionality

Auto-Trigger Logic

Condition in the diff Specialist that runs
Always Code Reviewer
Test files changed Test Analyzer
Comments/docs added Comment Analyzer
Error handling changed Silent Failure Hunter
Types added or modified Type Design Analyzer
After review passes Code Simplifier (polish)

Tips & Best Practices

  • Run early, before creating the PR — not as an afterthought after review feedback arrives
  • Sequential by default, parallel on request — sequential is easier to act on one finding at a time; ask explicitly for parallel when you want raw speed
  • Address critical findings first — the aggregated report is already prioritized for you
  • Re-run after fixes to confirm the issue is actually resolved, not just addressed
  • Don't run all six on a two-line change — target the specialist that matches the concern

Recommended Sequence

1. Write code       → Code Reviewer
2. Fix issues        → Silent Failure Hunter (if error handling touched)
3. Add tests          → Test Analyzer
4. Document            → Comment Analyzer
5. Review passes        → Code Simplifier (polish)
6. Create PR

Troubleshooting

Wrong specialist ran, or none did — name the concern explicitly ("test coverage", "error handling") instead of a generic "review this".

Reviewing too much — specify the files, PR number, or branch, or just say "recent changes" / "git diff".

$Related Playbooks

Developer Tools

Security Guidance Review

Three-layer continuous security review for AI-generated code — instant regex warnings on edit, an LLM diff review at end of turn, and an agentic commit-time reviewer that traces data flow across files.

10 minutes
Advanced
Developer Tools

Vercel Analytics & Speed Insights Setup

Wire up Vercel Analytics, Speed Insights, and SPA routing rewrites into a React/Vite project in one pass — including the routing fix most people miss.

5 minutes
Beginner
Developer Tools

Shannon: Autonomous Pentesting for Your Own Apps

An operating guide for driving Keygraph's Shannon CLI: scope a white-box pentest against an app you own, run it, and turn the proven findings into fix tasks

15 minutes
Advanced
Developer Tools

Unslop UI Skill for Claude: Kill the AI Design Tells

A frontend guardrail built from a 3.2M-post Reddit analysis of what people actually call AI slop, with a build mode that forces design decisions up front and an audit mode that scans existing code for the tells

10 minutes
Intermediate
Developer Tools

Redesign Existing Projects: UI Audit and Upgrade

A design audit checklist that finds generic AI-look patterns in an existing codebase and fixes them without breaking functionality or migrating frameworks

10 minutes
Intermediate
Developer Tools

Soft UI Design Skill: Premium, Awwwards-Tier Interfaces

A design system that makes Claude build $150k-agency-feeling UI — double-bezel cards, spring-physics motion, magnetic buttons, and a banned list that blocks every cheap AI-design tell

5 minutes
Intermediate
Developer Tools

Stitch Design Taste: Semantic DESIGN.md Generator for Google Stitch

Generates a DESIGN.md that encodes premium, anti-generic design rules in Google Stitch's natural-language format — color, type, layout, motion intent, and a full banned-pattern list

5 minutes
Intermediate
Developer Tools

Prompt Optimizer (EARS)

Transform vague prompts into precise, well-structured specifications using EARS (Easy Approach to Requirements Syntax) — ideal for AI-generated code, products, and docs.

10 minutes
Intermediate
Developer Tools

Promptfoo Evaluation

Configure and run LLM evaluations with Promptfoo — build promptfooconfig.yaml, write Python custom assertions, implement llm-rubric judges, and compare models systematically.

15 minutes
Intermediate
Developer Tools

Repomix Safe Mixer

Package codebases with repomix while automatically detecting and removing hardcoded credentials before packing — so you never leak secrets when sharing code.

5 minutes
Beginner
Developer Tools

Repomix Unmixer

Extract files from repomix-packed repositories — restore the original directory structure from XML, Markdown, or JSON output, reversing the packing process.

5 minutes
Beginner
Developer Tools

Scrapling Web Extractor

Install, troubleshoot, and use the Scrapling CLI to extract HTML, Markdown, or text from webpages — including browser-backed fetching and tricky sources like WeChat articles.

10 minutes
Beginner

Browse all Developer Tools playbooks →