/clanker-skills:differential-reviewfrom clanker-skills
Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, adjudicates candidate findings against the current contract, and generates comprehensive markdown reports. Automatically detects and prevents security regressions without promoting policy or partial evidence into defects.
Ships in clanker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Security-focused code review for PRs, commits, and diffs.
| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "Small PR, quick review" | Heartbleed was 2 lines | Classify by RISK, not size |
| "I know this codebase" | Familiarity breeds blind spots | Build explicit baseline context |
| "Git history takes too long" | History reveals regressions | Never skip Phase 1 |
| "Blast radius is obvious" | You'll miss transitive callers | Calculate quantitatively |
| "No tests = not my problem" | Missing tests reduce assurance but do not prove impact | Flag the assurance gap; do not elevate defect severity without impact evidence |
| "Just a refactor, no security impact" | Refactors can break invariants | Give it the highest applicable review priority until the changed invariant is scoped |
| "The skill always requires a file" | Output requirements come from the user and governing workflow | Write a report only when requested or authorized; otherwise preserve the full result in chat |
| "The reviewer already confirmed it" | Reviewer conclusions and structural matches are hypotheses | Run the finding-promotion gate and perform root adjudication |
| "The risk is real, so it blocks the decision" | Technical exposure and decision authority are separate contracts | Cite the decision bridge or keep the result informational |
| Codebase Size | Strategy | Approach |
|---|---|---|
| SMALL (<20 files) | DEEP | Read all deps, full git blame |
| MEDIUM (20-200) | FOCUSED | 1-hop deps, priority files |
| LARGE (200+) | SURGICAL | Critical paths only |
These levels prioritize review effort. They are not finding severity.
| Review Priority | Triggers |
|---|---|
| HIGH | Auth, crypto, external calls, value transfer, validation removal |
| MEDIUM | Business logic, state changes, new public APIs |
| LOW | Comments, tests, UI, logging |
Pre-Analysis → Phase 0: Triage → Phase 1: Code Analysis → Phase 2: Test Coverage
↓ ↓ ↓ ↓
Phase 3: Blast Radius → Phase 4: Deep Context → Phase 5: Adversarial
→ Phase 5.5: Finding Promotion Gate → Phase 6: Report
Starting a review?
├─ Need detailed phase-by-phase methodology?
│ └─ Read: methodology.md
│ (Pre-Analysis + Phases 0-4: triage, code analysis, test coverage, blast radius)
│
├─ Analyzing a HIGH-priority review change?
│ └─ Read: adversarial.md
│ (Phase 5: Attacker modeling, exploit scenarios, exploitability rating)
│
├─ Promoting a candidate finding into severity or a decision?
│ └─ Run: yagni-anti-ceremonial
│ Use fp-check when the claim is disputed, delegated/automated, or would
│ change payment, merge, deployment, production, or acceptance.
│
├─ Writing the final report?
│ └─ Read: reporting.md
│ (Phase 6: Report structure, templates, formatting guidelines)
│
├─ Looking for specific vulnerability patterns?
│ └─ Read: patterns.md
│ (Regressions, reentrancy, access control, overflow, etc.)
│
└─ Quick triage only?
└─ Use Quick Reference above, skip detailed docs
Before delivering:
verified results are not presented as bug verificationaudit-context-building skill:
yagni-anti-ceremonial skill:
fp-check skill:
issue-writer skill:
issue-writer --input DIFFERENTIAL_REVIEW_REPORT.md --format audit-reportInput: 5 file PR, 2 HIGH-priority review files
Strategy: Use Quick Reference
1. Classify risk level per file (2 HIGH, 3 LOW)
2. Focus on 2 HIGH files only
3. Git blame removed code
4. Generate minimal report
Time: ~30 minutes
Input: 80 files, 12 HIGH-priority review changes
Strategy: FOCUSED (see methodology.md)
1. Full workflow on HIGH-priority review files
2. Surface scan on MEDIUM
3. Skip LOW risk files
4. Complete report with all sections
Time: ~3-4 hours
Input: 450 files, auth system rewrite
Strategy: SURGICAL + audit-context-building
1. Baseline context with audit-context-building
2. Deep analysis on auth changes only
3. Blast radius analysis
4. Adversarial modeling
5. Comprehensive report
Time: ~6-8 hours
For these cases, use standard code review instead.
Immediate escalation triggers:
These patterns require adversarial analysis even in quick triage. They raise review priority, not defect severity; only the promotion gate assigns a finding disposition and permits severity.
Do:
Don't:
For first-time users: Start with methodology.md to understand the complete workflow.
For experienced users: Use this page's Quick Reference and Decision Tree to navigate directly to needed content.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
22 skills in this plugin
/adaptive-code-orchestratorAdaptively choose single-agent work, parallel reconnaissance, dependency waves, or independent review for reliable repository changes. Use for uncertain, cross-cutting, multi-file, long-running, or high-risk coding work where agent coordination may improve evidence or speed, or when the user asks how much agent coordination to use. When explicitly invoked for a small localized edit, stay single-agent and keep the workflow minimal.
/analyze-data-qualityAssess whether structured data, financial equations, state-machine accounting, query results, dashboards, or analytical evidence are trustworthy enough to use. Use to check data quality, reconcile conflicting sources or metric definitions, adjudicate financial-data findings, or decide whether evidence is safe to cite./ast-grep-callchain-auditnpx claudepluginhub canerkocak/clanker-skills --plugin clanker-skills