git-worktree

Manage Git worktrees with create, list, switch, and cleanup commands.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Folly-Partners/claudesync --skill git-worktree-folly-partners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-worktree
Source: https://github.com/Folly-Partners/claudesync/tree/main/plugins/cache/every-marketplace/compound-engineering/2.23.1/skills/git-worktree
Command: npx skills add https://github.com/Folly-Partners/claudesync --skill git-worktree-folly-partners

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill provides a unified interface to manage Git worktrees, enabling isolated parallel development by creating, listing, switching, and cleaning up worktrees with simple, interactive prompts.

Core Features & Use Cases

  • Create new worktrees from a base branch with dedicated directories.
  • List all existing worktrees with current status and branch association.
  • Switch between worktrees to work on different features in isolation.
  • Clean up inactive worktrees to keep repositories tidy.
  • Automatic .gitignore management for the .worktrees directory.
  • Copy environment files from the main repository into new worktrees.

Quick Start

Use the git-worktree skill to create a new worktree, list available worktrees, switch to one, copy environment files, and clean up when done.

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 worktrees enable parallel development by creating isolated branch directories from a single repository. This skill automates worktree creation, listing, switching, and cleanup with interactive prompts, letting you work on multiple features concurrently without branch conflicts.

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

Yes. This skill copies environment files from your main repository into new worktrees automatically, ensuring each isolated workspace has the configuration it needs without manual setup.

How do I keep my repository clean when switching between worktrees?

The skill manages .gitignore automatically for the .worktrees directory and provides interactive cleanup functionality to remove inactive worktrees, keeping your repository organized as you work across multiple branches.

What's the best way to work on multiple features in Git without stashing branches?

Git worktrees let you check out multiple branches simultaneously in separate directories. This skill provides a simple manager interface to create, list, and switch between worktrees, eliminating the need to stash work when context-switching.

Do I need special setup to use Git worktrees with my existing workflow?

No. This skill requires only Git as a dependency and works with a single Bash script interface. It integrates directly with your repository, handling environment file copying and .gitignore updates automatically.