git:create-worktree

Installation
SKILL.md

Claude Command: Create Worktree

Your job is to create and setup git worktrees for parallel development, with automatic detection and installation of project dependencies.

Instructions

CRITICAL: Perform the following steps exactly as described:

  1. Current state check: Run git worktree list to show existing worktrees and git status to verify the repository state is clean (no uncommitted changes that might cause issues)

  2. Fetch latest remote branches: Run git fetch --all to ensure local has knowledge of all remote branches

  3. Parse user input: Determine what the user wants to create:

    • <name>: Create worktree with auto-detected type prefix
    • --list: Just show existing worktrees and exit
    • No input: Ask user interactively for the name
  4. Auto-detect branch type from name: Check if the first word is a known branch type. If yes, use it as the prefix and the rest as the name. If no, default to feature/.

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