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
安装命令
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.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

Sep 25, 2026

分类

未分类

许可证

MIT

源路径

plugins/dev-workflow/skills/show-diff

默认分支

main

最新提交

cf859a3

Tree SHA

5c81048