diff

Identify blockers and warnings in Git diffs before committing.

2|Updated Sep 12, 2016
One-click install
npx skills add https://github.com/paulnsorensen/dotfiles --skill diff-paulnsorensen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diff
Source: https://github.com/paulnsorensen/dotfiles/tree/main/claude/skills/diff
Command: npx skills add https://github.com/paulnsorensen/dotfiles --skill diff-paulnsorensen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quick smoke test. Catch the obvious, skip the nitpicks.

Core Features & Use Cases

  • Diff-driven review protocol: fetch the current diff, scan for red flags (blockers, warnings), and summarize findings for immediate action.
  • Tool orchestration: suggests suitable analysis tools (rg for text patterns, sg for structure) and reports results clearly.
  • Pre-commit readiness: helps reviewers decide whether a change set is ready to commit or needs fixes.

Quick Start

Run a quick diff check on the staged changes to surface obvious issues before committing.

Frequently Asked Questions about diff

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

FAQPage Schema
How do I scan a git diff for blockers before committing?

To scan a git diff for blockers before committing, run a diff-driven review protocol that fetches staged and unstaged changes, flags warnings, and summarizes findings for immediate action.

What is pre-commit diff analysis and why is it useful?

Pre-commit diff analysis is a quick smoke test that catches obvious blockers in your code changes before they enter version control, helping reviewers skip nitpicks and focus on critical issues.

How do I review staged and unstaged changes for code review readiness?

You can review staged and unstaged changes for code review readiness by applying structured diff analysis, using text pattern tools like rg and structure tools like sg to surface red flags.

Can I use ripgrep and AST tools to check git diffs for security issues?

Yes, you can use ripgrep (rg) for text patterns and structural search (sg) to orchestrate analysis tools and report potential security blockers found within your git diffs clearly.

Does this diff review approach work for both staged and unstaged changes?

Yes, this diff review approach applies to diff-driven verification across both staged and unstaged changes, helping you decide whether a change set is ready to commit or needs fixes.

What's the best way to identify red flags in a code review without nitpicking?

The best way to identify red flags without nitpicking is implementing a curated set of tooling commands and policies that surface only blockers and warnings, skipping minor stylistic issues.