code-review-phase-0-gather-the-diff

Retrieve unified diffs from git repositories for code review.

7|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mkusaka/ccskills --skill code-review-phase-0-gather-the-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review-phase-0-gather-the-diff
Source: https://github.com/mkusaka/ccskills/tree/main/skills/code-review-phase-0-gather-the-diff
Command: npx skills add https://github.com/mkusaka/ccskills --skill code-review-phase-0-gather-the-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the initial step of code reviews by gathering the unified diff for review, streamlining the process of preparing for code analysis.

Core Features & Use Cases

  • Diff Gathering: Automatically runs git diff to collect the unified diff for the current branch or specified PR.
  • Handling Uncommitted Changes: Includes uncommitted changes in the diff if present, ensuring all changes are reviewed.
  • Custom Review Targets: Allows review of specific PR numbers, branch names, or file paths as specified.
  • Use Case: For a developer starting a code review, this Skill can be used to quickly gather the diff for the latest changes or a specific pull request.

Quick Start

Use the code-review-phase-0-gather-the-diff skill to get the diff for the current branch.

Frequently Asked Questions about code-review-phase-0-gather-the-diff

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

FAQPage Schema
How do I gather a unified diff for code review from a git repository?

You can gather a unified diff for code review by automating the retrieval of version control changes. This skill executes git diff commands to collect the unified diff for the current branch or a specified pull request.

Can I include uncommitted changes when gathering a git diff for review?

Yes, you can include uncommitted changes when gathering a git diff for review. The skill automatically detects and incorporates uncommitted modifications, ensuring that all local changes are present in the unified diff output.

How do I get the diff for a specific pull request or branch?

You can get the diff for a specific pull request or branch by specifying your custom review targets. The skill allows you to pass specific PR numbers, branch names, or file paths to collect the exact unified diff needed.

Do I need a local git repository to automate diff gathering?

Yes, you need a local git repository to automate diff gathering. This skill requires access to a git repository and the ability to execute git commands in your software development environment to retrieve the unified diff.

What is the best way to automate the initial step of a code review process?

The best way to automate the initial step of a code review process is to use a diff gathering tool. This skill automatically runs git diff to assemble the unified diff, streamlining the preparation phase for subsequent code analysis.

Does diff gathering work with specific file paths in version control?

Yes, diff gathering works with specific file paths in version control. You can specify custom review targets including individual file paths, allowing you to narrow the unified diff output to only the relevant modified files.