git-worktree

Manage Git worktrees for parallel development with a Bash-based manager script.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jjeremycai/claudekit --skill git-worktree-jjeremycai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/jjeremycai/claudekit/tree/main/plugins/compound-engineering/skills/git-worktree
Command: npx skills add https://github.com/jjeremycai/claudekit --skill git-worktree-jjeremycai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, bash, and includes scripts (resource) components.

What problem does it solve?

This skill addresses the challenge of managing multiple Git worktrees for parallel development, isolated PR reviews, and experimental features, reducing context switches and manual setup.

Core Features & Use Cases

  • Create worktrees from a base branch with automatic environment file handling.
  • List all active worktrees with status and current selection.
  • Switch between worktrees quickly.
  • Copy environment files from the main repository into a worktree.
  • Safely clean up inactive worktrees with interactive prompts and .gitignore management.
  • Supports interactive confirmations to prevent accidental operations.

Quick Start

  • Create a new worktree: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh create feature-login
  • List worktrees: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh list
  • Switch to a worktree: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh switch feature-login
  • Copy env files: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh copy-env feature-login
  • Cleanup: bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktree/scripts/worktree-manager.sh cleanup

Frequently Asked Questions about git-worktree

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple Git worktrees for parallel development streams?

You can manage multiple Git worktrees by using a Bash-based manager script to create, list, switch, and clean up isolated working directories linked to a single base repository.

How do I copy environment files into a new Git worktree?

You can copy environment files into a Git worktree by running a dedicated copy-env command, which automatically syncs necessary environment configurations from the main repository.

What is the safest way to clean up inactive Git worktrees and handle .gitignore?

The safest way to clean up inactive Git worktrees is using an interactive cleanup command that provides confirmation prompts and handles .gitignore management to prevent accidental data loss.

Do I need Git and Bash to use a worktree management script?

Yes, you need standard Git tooling and a Bash environment to execute the worktree management script, as it relies on these dependencies to provide environment syncing and safe cleanup.

Can I switch between Git worktrees quickly without manual directory navigation?

Yes, you can switch between Git worktrees quickly by executing a switch command with the target worktree name, bypassing manual directory navigation for faster context switching.