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).

Run parallel Git worktrees without collisions: a port block per worktree, .env sync, health checks for stale or dirty trees, and safe cleanup of merged ones. Use when several branches or agents need running dev servers at once.

Plain `git worktree add/remove` is the easy part. The agent uses this skill for what git does not do: give every worktree its own port block so dev servers and Docker services do not collide, carry `.env` files across, spot worktrees that are stale, dirty or tracking deleted branches, and remove mer

## 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

Run inside any git repository:
python3 scripts/worktree_manager.py list                          # worktrees with clean/dirty and ahead/behind
python3 scripts/port_allocator.py status                          # current port blocks
python3 scripts/worktree_validator.py --stale-days 14 --json      # health report
python3 scripts/worktree_manager.py cleanup --stale-days 30 --dry-run

Related Skills in Engineering

View on GitHub