/diff
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/diff
Context preview
What this command does when you run it.
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
Command definition
diff.md/diff
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
Usage
/diff
No arguments. The viewer opens immediately.
How It Works
1. `/diff` launches a terminal-based diff viewer 2. Use **left/right arrows** to switch between two views:
- **Git diff**: all uncommitted changes in the working directory
- **Turn diffs**: changes Claude made in each individual turn
3. Use **up/down arrows** to browse files within the current view 4. Press Escape or `q` to close
Two Views
| View | What It Shows | Useful For | |---|---|---| | Git diff | All uncommitted changes (staged and unstaged) | Reviewing everything before a commit | | Turn diffs | Changes from each Claude turn, individually | Understanding what Claude changed and when |
When to Use It
- Before committing, to review all changes Claude has made
- To understand which turn introduced a specific change
- To verify Claude edited the right files before moving on
- When you want a quick visual check without leaving the session
Tips
- `/diff` shows the same information as `git diff` but in an interactive, navigable viewer
- Turn diffs are especially helpful after long sessions with many edits, where `git diff` alone does not tell you which step changed what
- Combine with `/rewind` if you spot a change you want to undo: use `/diff` to find the turn, then `/rewind` to roll back to it
Read more
/diff
Opens an interactive diff viewer showing uncommitted changes in your working directory and per-turn diffs from Claude's edits.
Usage
/diff
No arguments. The viewer opens immediately.
How It Works
1. `/diff` launches a terminal-based diff viewer 2. Use **left/right arrows** to switch between two views:
- **Git diff**: all uncommitted changes in the working directory
- **Turn diffs**: changes Claude made in each individual turn
3. Use **up/down arrows** to browse files within the current view 4. Press Escape or `q` to close
Two Views
| View | What It Shows | Useful For | |---|---|---| | Git diff | All uncommitted changes (staged and unstaged) | Reviewing everything before a commit | | Turn diffs | Changes from each Claude turn, individually | Understanding what Claude changed and when |
When to Use It
- Before committing, to review all changes Claude has made
- To understand which turn introduced a specific change
- To verify Claude edited the right files before moving on
- When you want a quick visual check without leaving the session
Tips
- `/diff` shows the same information as `git diff` but in an interactive, navigable viewer
- Turn diffs are especially helpful after long sessions with many edits, where `git diff` alone does not tell you which step changed what
- Combine with `/rewind` if you spot a change you want to undo: use `/diff` to find the turn, then `/rewind` to roll back to it
Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.
Repo: LukeRenton/explore-claude-code
Other commands on explore-claude-code.
BUILT-IN-COMMANDS
Commands baked into Claude Code that execute fixed logic directly. Type `/` at the prompt to see them all, or type `/` followed by any letters to filter.…
btw
Ask a quick side question about your current work without adding to the conversation history. The question and answer appear in a dismissible overlay and never…
compact
Compresses your conversation to reclaim context window space. Claude summarises the conversation so far, discards the original messages, and continues with the…

