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:

  1. Current state check: Run git worktree list to show all existing worktrees and their locations

  2. 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
Related skills
Installs
3
First Seen
Feb 13, 2026