diff-review

Review git diffs for bugs, security issues, and style problems.

42|2|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/robbyt/claude-skills --skill diff-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diff-review
Source: https://github.com/robbyt/claude-skills/tree/main/plugins/gemini/skills/diff-review
Command: npx skills add https://github.com/robbyt/claude-skills --skill diff-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Get Gemini's feedback on code diffs to surface bugs, security concerns, and style issues without changing the code.

Core Features & Use Cases

  • Diff analysis: Review staged or unstaged changes for defects.
  • Security & quality: Identify potential vulnerabilities and logic errors.
  • Non-invasive: Feedback only, no changes to your repo.

Quick Start

Save the diff and run Gemini to review it: git diff --cached > gemini-review.diff; gemini "Review the code changes at gemini-review.diff for issues. Do not make any changes. Respond with feedback only." --allowed-tools read_file,codebase_investigator,glob,search_file_content,list_directory,write_todos -o text 2>&1; rm gemini-review.diff

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 for bugs and security issues before committing?

Code review of git diffs identifies bugs, security vulnerabilities, and style problems without modifying your repository. Run git diff to capture staged or unstaged changes, then pass them to analysis that delivers detailed feedback on defects, logic errors, and potential gaps in error handling.

Can I get automated feedback on code changes without making modifications?

Yes. Diff review provides feedback-only analysis of your code changes. The process runs non-interactively, surfaces issues across bugs, security, and style concerns, and leaves your repository untouched so you can decide which changes to apply.

What kinds of issues does code diff review catch?

Diff review identifies bugs, security vulnerabilities, logic errors, style inconsistencies, and error-handling gaps in your staged or unstaged git changes. It surfaces problems across the full scope of your diff without executing or modifying code.

When should I use diff review in my development workflow?

Use diff review as a second opinion before committing changes or as a final quality check on staged work. It's most valuable when you want automated verification of code quality, security posture, and potential defects before your changes enter version control.

Does diff review work with any git repository?

Yes. Diff review works with any git repository by analyzing the output of git diff commands on staged or unstaged changes. There are no platform, language, or repository-specific constraints on the diffs it can analyze.

Related Skills