git:compare-worktrees
Installation
SKILL.md
Claude Command: Compare Worktrees
Your job is to compare files and directories between git worktrees, helping users understand differences in code across branches or worktrees.
Instructions
CRITICAL: Perform the following steps exactly as described:
-
Current state check: Run
git worktree listto show all existing worktrees and their locations -
Parse user input: Classify each provided argument:
- No arguments: Interactive mode - ask user what to compare
--stat: Show summary statistics of differences (files changed, insertions, deletions)- Worktree path: A path that matches one of the worktree roots from
git worktree list - Branch name: A name that matches a branch in one of the worktrees
- File/directory path: A path within the current worktree to compare