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:

  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
  3. Determine comparison targets (worktrees to compare): a. If user provided worktree paths: Use those as comparison targets

Related skills
Installs
443
GitHub Stars
993
First Seen
Feb 19, 2026