
Diff
Shows all uncommitted git changes, staged, unstaged and untracked, in one view
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 Diff
This skill runs a local helper script that gathers the repository's uncommitted work: changes staged for commit, edits not yet staged, and new untracked files. The output is injected into the conversation so the agent can read the current state of the working tree.
The skill is invoked manually rather than automatically, and it accepts optional trailing arguments that are passed through to the prompt. It is limited by its allowed-tools setting to running the git-local-diff script from the user's Scripts folder, so the script must exist on that machine.
The package is a small single-file skill from a personal dotfiles repository, released under the MIT license.
When your agent uses it
Show all local changes (staged, unstaged, and untracked)
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-local-diff:*)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (227 bytes) on GitHub on 3 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/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/diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/diff" ~/.claude/skills/diff &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/diff inside it instead.
Copy the skill folder to ~/.agents/skills/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/diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/diff" ~/.agents/skills/diff &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/diff inside it instead.
Copy the skill folder to ~/.cursor/skills/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/diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/diff" ~/.cursor/skills/diff &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/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/diffOr copy the folder to ~/.gemini/skills/diff yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/diff:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/diff &&
cp -R "$tmp/built/ai-agents/ampcode/skills/diff" ~/.copilot/skills/diff &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/diff inside it instead.
Get the folder:
git clone --depth 1 https://github.com/richardgill/nix.gitThen copy nix/built/ai-agents/ampcode/skills/diff into your agent's skills folder as diff. Agents that support SKILL.md read one folder per skill.
What it does
- Staged changes view
- Collects the changes that are already staged for the next commit.
- Unstaged changes view
- Includes edits in tracked files that have not been staged yet.
- Untracked file capture
- Brings in new files that git does not yet track.
- Manual invocation only
- Runs when the user calls it explicitly rather than when the agent decides.
Good for
- Review everything I have changed before committing
- Summarize my uncommitted work for a status update
- Check whether I left any untracked files behind
Diff FAQ
What does the skill need to run?
It calls a script at ~/Scripts/git-local-diff, so that script must be present on the machine.
Does Diff change any files?
No. Its only permitted action is running the git-local-diff script to display local changes.
When does Diff trigger?
It is set to manual invocation only, so the agent does not load it on its own.
How do I install Diff in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/diff to use it in all your projects, or to .claude/skills/diff in one project.
Does 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 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 Diff?
The closest alternatives to Diff are Git commit, Conventional commit review, Autocommit, Fix merge conflicts and Intent drift.
Where this comes from
- Description: from the skill's own SKILL.md.
More from richardgill/nix

Updates NixOS flake.lock to newest input commits without changing the release
- Open source
- 39 GitHub stars
- Developer tools

Guides an agent through upgrading a NixOS flake to a new stable release
- Open source
- 39 GitHub stars
- Developer tools

Proposes short, durable additions to AGENTS.md and CLAUDE.md files after a lesson is
- Open source
- 39 GitHub stars
- Developer tools

Lets your agent drive a browser: open pages, read elements, fill forms and capture results
- Open source
- 39 GitHub stars
- Browser automation

Builds a JSON-driven guided code tour and opens it in your running Neovim
- Open source
- 39 GitHub stars
- Developer tools

Guides an agent through creating, editing, syncing and merging stacked GitHub pull
- Open source
- 39 GitHub stars
- Developer tools





