differential-review
What it does
This tool helps review code with a security focus. It analyzes code changes to find potential security flaws, especially in critical areas like authentication and encryption.
When to use it
- βWhen you need a security-focused review for a set of code changes.
- βIf the changes involve sensitive areas like authentication, encryption, or value transfer.
- βWhen you need concrete evidence and a detailed report on the findings.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/differential-review/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview this code for security vulnerabilities, focusing on authentication and data validation.β
5 new skills a week. 1 minute to read.
How it works
The tool analyzes code changes, checks the history for context, and identifies security risks. It prioritizes high-risk areas and generates a detailed report with evidence.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Differential Security Review
Security-focused code review for PRs, commits, and diffs.
When to Use
- You need a security-focused review of a PR, commit range, or diff rather than a general code review.
- The changes touch auth, crypto, external calls, value transfer, permissions, or other high-risk logic.
- You need findings backed by code evidence, attack scenarios, and an explicit report artifact.
Core Principles
- Risk-First: Focus on auth, crypto, value transfer, external calls
- Evidence-Based: Every finding backed by git history, line numbers, attack scenarios
- Adaptive: Scale to codebase size (SMALL/MEDIUM/LARGE)
- Honest: Explicitly state coverage limits and confidence level
- Output-Driven: Always generate comprehensive markdown report file
Rationalizations (Do Not Skip)
| 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 = elevated risk rating | Flag in report, elevate severity |
| "Just a refactor, no security impact" | Refactors break invariants | Analyze as HIGH until proven LOW |
| "I'll explain verbally" | No artifact = findings lost | Always write report |
Quick Reference
Codebase Size Strategy
| 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 |
Risk Level Triggers
| Risk Level | Triggers |
|---|---|
| HIGH | Auth, crypto, external calls, value transfer, validation removal |
| MEDIUM | Business logic, state changes, new public APIs |
| LOW | Comments, tests, UI, logging |
Workflow Overview
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 6: Report
Decision Tree
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 HIGH RISK change?
β ββ Read: adversarial.md
β (Phase 5: Attacker modeling, exploit scenarios, exploitability rating)
β
ββ 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
Quality Checklist
Before delivering:
- All changed files analyzed
- Git blame on removed security code
- Blast radius calculated for HIGH risk
- Attack scenarios are concrete (not generic)
- Findings reference specific line numbers + commits
- Report file generated
- User notified with summary
Integration
audit-context-building skill:
- Pre-Analysis: Build baseline context
- Phase 4: Deep context on HIGH RISK changes
issue-writer skill:
- Transform findings into formal audit reports
- Command:
issue-writer --input DIFFERENTIAL_REVIEW_REPORT.md --format audit-report
Example Usage
Quick Triage (Small PR)
Input: 5 file PR, 2 HIGH RISK 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
Standard Review (Medium Codebase)
Input: 80 files, 12 HIGH RISK changes
Strategy: FOCUSED (see methodology.md)
1. Full workflow on HIGH RISK files
2. Surface scan on MEDIUM
3. Skip LOW risk files
4. Complete report with all sections
Time: ~3-4 hours
Deep Audit (Large, Critical Change)
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
β¦
FAQ
What are 'Rationalizations'?
These are common justifications for skipping security review steps that are actually dangerous. The tool explains why these justifications are wrong and what to do instead.
How does the tool decide what's most important to review?
It classifies changes by risk level (High, Medium, Low) and focuses more on High-Risk ones, like authentication and encryption. It also considers the project size to adapt the analysis depth.
What does 'Blast Radius' mean?
It's the potential impact of a security flaw. A flaw with a 'high blast radius' can affect many parts of the system, making it more critical.
Details
Original description by the author
Security-focused code review for PRs, commits, and diffs.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4457
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.