Diff

Automate Git workflow operations with GitHub CLI integration and security checks.

7|1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Diff
Source: https://github.com/julianobarbosa/claude-code-skills/tree/main/skills/Git-skill
Command: npx skills add https://github.com/julianobarbosa/claude-code-skills --skill diff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance on using git diff for unstaged, staged, and commit comparisons, including extended diff views.

Core Features & Use Cases

  • Diff types: Unstaged, staged, all changes, and between commits/branches.
  • Output formats: Patch, stat, and name-only views.
  • Debug workflows: Quickly identify changes before committing.

Quick Start

Compare working directory with HEAD to review changes prior to commit.

Frequently Asked Questions about Diff

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

FAQPage Schema
How do I view unstaged changes in Git before staging them?

Use `git diff` to compare your working directory against the index. This shows all modifications to tracked files that haven't been staged yet, helping you review changes before committing.

What's the difference between git diff and git diff --staged?

git diff shows unstaged changes in your working directory. git diff --staged displays only changes you've already added to the index, letting you verify what will be included in your next commit.

How do I compare changes between two commits or branches?

Run `git diff <commit1> <commit2>` or `git diff <branch1> <branch2>` to see all differences between specific points in your repository history, useful for reviewing work before merging.

Can I view diff output in different formats like patch or statistics?

Yes. Use `git diff --patch` for traditional patch format, `git diff --stat` for a summary of files changed with line counts, or `git diff --name-only` to list only modified filenames.

Why should I check diffs before committing?

Reviewing diffs catches unintended changes, debug code, or incomplete work before they're committed. It ensures your commits are clean, traceable, and contain only the intended modifications.

Do I need any setup or dependencies to use git diff?

No. git diff is a built-in Git command available on any system with Git installed. It requires no additional tools or configuration to view changes in your repository.