git-worktree

Manage Git worktrees for isolated parallel development.

24.1k|2.0k|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/EveryInc/compound-engineering-plugin --skill git-worktree-everyinc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/EveryInc/compound-engineering-plugin/tree/main/plugins/compound-engineering/skills/git-worktree
Command: npx skills add https://github.com/EveryInc/compound-engineering-plugin --skill git-worktree-everyinc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Simplifies Git worktree management with a unified script, including environment-file copying and safe cleanup.

Core Features & Use Cases

  • Create, list, switch, and cleanup worktrees
  • Auto-copy env files and manage .gitignore
  • Interactive confirmations and error handling

Quick Start

Create a worktree from main and copy envs automatically.

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?

Git worktree management lets you maintain isolated branch checkouts simultaneously without switching contexts. This Skill provides a unified script interface to create, list, switch between, and clean up worktrees, streamlining parallel feature work and code reviews while automating environment file copying and .gitignore updates.

Can I automatically copy environment files when creating a new worktree?

Yes. The worktree manager automatically copies environment files to new worktrees during creation, eliminating manual setup steps. This ensures each isolated workspace has the configuration it needs without duplicating effort across branches.

What's the safest way to clean up completed worktrees?

The Skill includes interactive confirmation prompts during cleanup operations, preventing accidental deletion. It handles both worktree removal and associated .gitignore management in one unified action, reducing the risk of orphaned branches or configuration inconsistencies.

Do I need a specific script to manage all worktree operations?

Yes. This Skill enforces a single manager script workflow—worktree-manager.sh—for all operations including create, list, switch, and cleanup actions. This unified approach ensures consistent behavior and centralized error handling across your worktree lifecycle.

How does worktree management fit into a code review workflow?

Worktrees enable isolated checkouts of review branches without disrupting your main workspace, allowing you to test and inspect pull requests independently. Combined with automatic environment setup, this streamlines review cycles and reduces context-switching overhead.