show-diff

v2026.09.25

Open a tmux split running diffview.nvim so the user can review the agent's recent changes. Use proactively after non-trivial edits, or when the user asks to "show the diff", "open a diff viewer", or similar.

GitHub
Install command
npx skhub add seabbs/show-diff
Markdown
SKILL.md

Show Diff

Open a new tmux pane that displays current changes via diffview.nvim, so the user can review in a side-by-side viewer instead of scrolling terminal output.

When to use

  • After making more than a handful of edits, surface them for review
  • User asks to see the diff, open a diff viewer, or review the changes
  • Before asking the user to approve committing a larger change

Skip when edits are tiny, when not inside tmux, or when the user has already reviewed the changes in this turn.

How to run

bash ~/code/seabbs/dotfiles/scripts/show-diff.sh $ARGUMENTS

The script opens a right-hand split running nvim +DiffviewOpen <range> rooted at the repo top-level.

Choosing the rev-range

Shortcuts the script understands:

ArgumentExpands toUse when…
(none)working tree vs HEADchanges are uncommitted
lastHEAD~1..HEADreviewing just the last commit
last N or NHEAD~N..HEADreviewing the last N commits
prorigin/<base>...HEAD (base from gh pr view)on a branch with an open PR
any other valuepassed through verbatimexplicit rev range, e.g. main...HEAD

If the agent has both committed and uncommitted work on a feature branch with an open PR, pr is the fastest choice.

Requirements

  • Running inside tmux (script errors out otherwise)
  • Inside a git repository
  • diffview.nvim available in neovim (already configured in the user's dotfiles)

After opening

Tell the user the pane is up and what range it shows. Do not try to drive the nvim instance from the agent side.

Discovery
Tags

No tags published for this skill.

Version
Latest version metadata

Version

v2026.09.25

Published

Sep 25, 2026

Category

Uncategorized

License

MIT

Source path

plugins/dev-workflow/skills/show-diff

Default branch

main

Latest commit

cf859a3

Tree SHA

5c81048