diff-review

Review current git diff changes for bugs, security issues, and style inconsistencies.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/LayerDynamics/Lore --skill diff-review-layerdynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diff-review
Source: https://github.com/LayerDynamics/Lore/tree/main/lore/skills/diff-review
Command: npx skills add https://github.com/LayerDynamics/Lore --skill diff-review-layerdynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as a final gatekeeper before committing code, catching potential bugs, security vulnerabilities, and incomplete work directly within the diff.

Core Features & Use Cases

  • Pre-commit Sanity Check: Quickly scans staged and unstaged changes for common errors.
  • Comprehensive Diff Analysis: Performs a deeper review focusing on logic, security, completeness, and test coverage.
  • Targeted Review: Allows focusing the review on specific areas like "security" or "performance".

Quick Start

Use the diff-review skill to perform a quick pre-commit sanity check on current changes.

Frequently Asked Questions about diff-review

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

FAQPage Schema
How do I review git changes before committing to catch bugs and security issues?

You can review git changes before committing by analyzing the staged and unstaged diff content to identify bugs, security vulnerabilities, unfinished code, and style inconsistencies directly within your modifications.

What is the best way to run a quick pre-commit code review on my current git diff?

The best way to run a quick pre-commit code review is using a Quick Mode that performs a fast sanity check on your current staged and unstaged git changes to catch common errors before you commit.

Can I focus my git diff review on specific issues like security or performance?

Yes, you can focus your git diff review on specific areas like security or performance, allowing you to target the analysis toward specific concerns rather than reviewing the entire codebase.

How does a comprehensive diff analysis differ from a quick pre-commit check?

A comprehensive diff analysis performs a deeper review focusing on code logic, security, completeness, and test coverage, whereas a quick pre-commit check provides a fast sanity scan for common errors.

Does diff review analyze my entire codebase or just the current modifications?

Diff review focuses its analysis strictly on the diff content of your current modifications, including both staged and unstaged changes, rather than scanning the entire codebase.

Why should I review unstaged changes before finalizing a git commit?

Reviewing unstaged changes before a git commit helps identify unfinished code and style inconsistencies across all current modifications, acting as a final gatekeeper to prevent incomplete work from being committed.