differential-review

Performs security-focused differential code reviews on changesets using git history context and generates markdown reports.

Updated Feb 16, 2026
One-click install
npx skills add https://github.com/rbkayz/gitskills --skill differential-review-rbkayz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: differential-review
Source: https://github.com/rbkayz/gitskills/tree/main/skills/registry/trailofbits-differential-review
Command: npx skills add https://github.com/rbkayz/gitskills --skill differential-review-rbkayz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of performing security-focused differential reviews on code changes, ensuring that potential vulnerabilities and regressions are identified and addressed proactively.

Core Features & Use Cases

  • Security-Focused Analysis: Prioritizes security-critical areas like authentication, cryptography, and external calls.
  • Adaptive Depth: Adjusts the analysis depth based on codebase size (SMALL, MEDIUM, LARGE).
  • Contextual Understanding: Leverages git history to understand code evolution and identify regressions.
  • Risk Assessment: Classifies changes by risk level (HIGH, MEDIUM, LOW) to focus efforts.
  • Comprehensive Reporting: Generates detailed markdown reports with findings, evidence, and recommendations.
  • Use Case: Automatically review a pull request for a new feature, identifying potential security flaws before they are merged into the main codebase.

Quick Start

Initiate a security review for the current changes in the repository.

Frequently Asked Questions about differential-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate security code reviews on git changesets?

Automate security code reviews by running differential analysis on git changesets to identify vulnerabilities and prevent security regressions. The review calculates blast radius, checks test coverage, and generates comprehensive markdown reports with evidence and recommendations.

What is differential analysis in code review for vulnerability detection?

Differential analysis in code review is a security-focused method that examines code changes rather than the entire repository. It leverages git history for context, prioritizes security-critical areas like authentication and cryptography, and classifies changes by risk level to detect potential regressions.

Can I use this security review on large codebases?

Yes, you can use this security review on large codebases because it features adaptive depth. The analysis automatically adjusts its depth based on codebase size categories (SMALL, MEDIUM, LARGE) to ensure comprehensive vulnerability detection across varying scales.

How do I check test coverage and blast radius for a pull request?

Check test coverage and blast radius for a pull request by running a security-focused differential review on the changeset. The review process calculates the blast radius of modifications and evaluates existing test coverage to classify changes by risk level.

What's the best way to prevent security regressions before merging code?

The best way to prevent security regressions before merging code is to perform an automated differential review on the pull request. This process identifies potential vulnerabilities in security-critical areas like external calls and cryptography, generating a detailed report to address flaws proactively.