# Diff

> Diff is an open-source agent skill for developer tools. Shows all uncommitted git changes, staged, unstaged and untracked, in one view. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/richardgill/nix/tree/main/built/ai-agents/ampcode/skills/diff
- **Repository:** https://github.com/richardgill/nix
- **GitHub stars:** 39
- **License:** MIT
- **Skill name:** diff
- **Collection:** https://github.com/richardgill/nix
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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)

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/diff)
- [Asks for: Bash(~/Scripts/git-local-diff:*)](https://github.com/richardgill/nix/blob/HEAD/built/ai-agents/ampcode/skills/diff/SKILL.md)
- [License: MIT](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/diff)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/diff` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/diff` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/diff` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/ampcode/skills/diff
```

Or copy the folder to `~/.gemini/skills/diff` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/diff`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/richardgill/nix.git
```

Then 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.

## 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.

## Alternatives

- [Git commit](https://ai-powered.com/skills/git-commit): Git commit is an open-source agent skill for developer tools.
- [Conventional commit review](https://ai-powered.com/skills/conventional-commit-review): Conventional commit review is an open-source agent skill for developer tools.
- [Autocommit](https://ai-powered.com/skills/autocommit): Autocommit is an open-source agent skill for developer tools.
- [Fix merge conflicts](https://ai-powered.com/skills/fix-merge-conflicts): Fix merge conflicts is an open-source agent skill for developer tools.
- [Intent drift](https://ai-powered.com/skills/intent-drift): Intent drift is an open-source agent skill for developer tools.
- [Sync CLI skill](https://ai-powered.com/skills/sync-cli-skill): Sync CLI skill is an open-source agent skill for developer tools.
- [Conventional commit](https://ai-powered.com/skills/conventional-commit-k1-c): Conventional commit is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-diffpal): Review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/diff-richardgill
