How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Git Worktree Manager (Engineering domain).

Manage parallel development with Git worktrees. Covers worktree creation with port allocation, environment sync, branch isolation for multi-agent workflows, cleanup automation, and Docker Compose inte...

**Tier:** POWERFUL **Category:** Engineering / Developer Tooling **Maintainer:** Claude Skills Team

## Your Key Capabilities
- 1. Worktree Lifecycle Management
- 2. Port Allocation
- 3. Multi-Agent Isolation
- 4. Cleanup Automation
- Create a Worktree
- List All Worktrees

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/git-worktree-manager

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/git-worktree-manager ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/git-worktree-manager your-project/
# The skill is available in your Codex workspace at:
.codex/skills/git-worktree-manager/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/git-worktree-manager your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/git-worktree-manager/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/git-worktree-manager your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/git-worktree-manager/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/git-worktree-manager your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/git-worktree-manager your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/git-worktree-manager

Run Python Tools

python engineering/git-worktree-manager/scripts/tool_name.py --help

Quick Start

### Create a Worktree
# Create worktree for a new feature branch
git worktree add ../wt-auth -b feature/new-auth main

# Create worktree from an existing branch
git worktree add ../wt-hotfix hotfix/fix-login

# Create worktree in a dedicated directory
git worktree add ~/worktrees/myapp-auth -b feature/auth origin/main
### List All Worktrees
git worktree list
# Output:
# /Users/dev/myapp              abc1234 [main]
# /Users/dev/wt-auth            def5678 [feature/new-auth]
# /Users/dev/wt-hotfix          ghi9012 [hotfix/fix-login]
### Remove a Worktree
# Safe removal (fails if there are uncommitted changes)
git worktree remove ../wt-auth

# Force removal (discards uncommitted changes)
git worktree remove --force ../wt-auth

# Prune stale metadata
git worktree prune

Related Skills in Engineering

View on GitHub