
PR diff
Show a pull request diff plus local changes by running a git helper script
PR diff is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 39
- Last commit
- License
- MIT
- Listing updated
Similar skills
About PR diff
This skill gives the agent a quick way to look at the current pull request diff together with any uncommitted local changes. When invoked, it runs a user-provided shell script at ~/Scripts/git-pr-diff and places the output into the conversation as context.
The skill is a thin wrapper. It contains no scripts of its own, only a SKILL.md that executes the helper and then appends whatever arguments the user typed. Those arguments can serve as a follow-up instruction, such as asking for a review or a summary of the diff.
It is configured to be invoked manually rather than chosen by the model, and its tool permission is limited to calls of the git-pr-diff script. The script must already exist on your machine at that path, since it is not included in the skill folder.
When your agent uses it
Show PR diff and local changes
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Bash(~/Scripts/git-pr-diff:*)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (192 bytes) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/pr-diff to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pr-diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pr-diff" ~/.claude/skills/pr-diff &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/pr-diff inside it instead.
Copy the skill folder to ~/.agents/skills/pr-diff to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pr-diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pr-diff" ~/.agents/skills/pr-diff &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/pr-diff inside it instead.
Copy the skill folder to ~/.cursor/skills/pr-diff to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pr-diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pr-diff" ~/.cursor/skills/pr-diff &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/pr-diff inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/ampcode/skills/pr-diffOr copy the folder to ~/.gemini/skills/pr-diff yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pr-diff:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pr-diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pr-diff" ~/.copilot/skills/pr-diff &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/pr-diff inside it instead.
Get the folder:
git clone --depth 1 https://github.com/richardgill/nix.gitThen copy nix/built/ai-agents/ampcode/skills/pr-diff into your agent's skills folder as pr-diff. Agents that support SKILL.md read one folder per skill.
What it does
- PR diff injection
- Runs the git-pr-diff script and inserts its output into the agent's context.
- Local changes included
- Shows the pull request diff together with local changes in the working tree.
- Argument passthrough
- Appends user-supplied arguments after the diff so they can act as a follow-up instruction.
- Restricted tool access
- Allows only Bash calls to the ~/Scripts/git-pr-diff script.
- Manual invocation only
- Model invocation is disabled, so the skill runs only when the user calls it.
Good for
- Ask the agent to review the current pull request and my uncommitted edits
- Summarize what changed on this branch before opening a PR
- Draft a PR description from the diff
- Check local changes against the PR diff for leftover debug code
PR diff FAQ
What does PR diff need installed?
A script at ~/Scripts/git-pr-diff. The skill does not include it, so you must provide it yourself.
Will the agent trigger PR diff automatically?
No. Model invocation is disabled, so you invoke it explicitly.
Which commands can PR diff run?
Its allowed tools are limited to Bash calls to ~/Scripts/git-pr-diff.
Can I add instructions after the diff?
Yes. Any arguments you pass are appended after the diff output.
How do I install PR diff in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/pr-diff to use it in all your projects, or to .claude/skills/pr-diff in one project.
Does PR diff run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use PR diff?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to PR diff?
The closest alternatives to PR diff are Code review, Make PR easy to review, PR review, PR and Simplify.
Where this comes from
- Description: from the skill's own SKILL.md.
More from richardgill/nix

Lets your agent manage Todoist tasks through the todoist command-line tool
- Open source
- 39 GitHub stars
- Productivity

Creates git worktrees in tmux sessions and starts an AI agent on a prompt
- Open source
- 39 GitHub stars
- Developer tools

Plans a clean-room rewrite of existing behavior, from requirements through phased
- Open source
- 39 GitHub stars
- Developer tools

Delegates work to supervised Pi agents running in tmux sessions and worktrees
- Open source
- 39 GitHub stars
- Developer tools

Lets your agent run web searches, fetch page content and quick answers via Kagi CLI
- Open source
- 39 GitHub stars
- Web search and scraping

Lets an agent handle Gmail tasks through the gws command-line tool
- Open source
- 39 GitHub stars
- Communication





