show-difflisted
Install: claude install-skill petmakris/claude-annotate
# show-diff
Show the user their diffs in VS Code — resolved from a phrase, or picked from the list of
everything reviewable when the user named nothing.
**One project, one window, always.** Each repository's diff goes in the VS Code window
holding that repository — never two projects' diffs in one window. This is not a
preference to weigh; it is the rule. Run the script once per project, and **wait for each
run to finish before starting the next**: VS Code hands a URI to whichever window is in
front, so overlapping runs put a diff in the wrong window. When the user names three
repositories, that is three sequential runs and three windows.
Within one project, one diff per run. If the user names two ref pairs for the same repo,
do the first and offer the second.
The two tools this skill exists to drive:
- `wp diffable [workspace] [--json]` — every checkout under `~/projects/wp/`, what branch
it is on, what that branch is stacked on, and how many files each candidate base
differs by. This is where the resolution comes from. Never re-derive it with raw git.
- `skills/show_diff/show-diff.sh <checkout> <base-rev> <head-rev|--worktree> [title]` —
resolves the revs, fetching an `origin/<branch>` this clone has never seen, which is
what the base of a stacked branch usually is. Then it opens the project's window, waits
until that window is in front, and fires a URI the `petros-makris.petros-makris-vscode`
extension turns into a multi-file diff editor. Every file in one