git-worktree-manager

Solid

Git Worktree Manager

AI & Automation 16,782 stars 2310 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Git Worktree Manager **Tier:** POWERFUL **Category:** Engineering **Domain:** Parallel Development & Branch Isolation ## Overview Use this skill to run parallel feature work safely with Git worktrees. It standardizes branch isolation, port allocation, environment sync, and cleanup so each worktree behaves like an independent local app without stepping on another branch. This skill is optimized for multi-agent workflows where each agent or terminal session owns one worktree. ## Core Capabilities - Create worktrees from new or existing branches with deterministic naming - Auto-allocate non-conflicting ports per worktree and persist assignments - Copy local environment files (`.env*`) from main repo to new worktree - Optionally install dependencies based on lockfile detection - Detect stale worktrees and uncommitted changes before cleanup - Identify merged branches and safely remove outdated worktrees ## When to Use - You need 2+ concurrent branches open locally - You want isolated dev servers for feature, hotfix, and PR validation - You are working with multiple agents that must not share a branch - Your current branch is blocked but you need to ship a quick fix now - You want repeatable cleanup instead of ad-hoc `rm -rf` operations ## Key Workflows ### 1. Create a Fully-Prepared Worktree 1. Pick a branch name and worktree name. 2. Run the manager script (creates branch if missing). 3. Review generated port map. 4. Start app using allocated ports. ```bash pyth...

Details

Author
alirezarezvani
Repository
alirezarezvani/claude-skills
Created
7 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

git-worktree-manager

Run parallel feature work safely with Git worktrees. Standardizes branch isolation, port allocation, environment sync, and cleanup so each worktree behaves like an independent local app. Optimized for multi-agent workflows where each agent or terminal session owns one worktree. Use when running multiple feature branches simultaneously, isolating experimental work, or coordinating multi-agent development across the same repo.

2 Updated 2 days ago
mdnaimul22
Code & Development Listed

git-worktree

This skill manages Git worktrees for isolated parallel development. It handles creating, listing, switching, and cleaning up worktrees with a simple interactive interface, following KISS principles.

1 Updated today
wan-huiyan
AI & Automation Listed

managing-worktrees

Git worktree management expertise for parallel development. Auto-invokes when worktrees, parallel development, multiple branches simultaneously, or isolated development environments are mentioned. Handles worktree creation, listing, and cleanup.

335 Updated today
aiskillstore
AI & Automation Listed

worktree-manager

This skill should be used when the user mentions "worktree", "wt", "new branch workspace", "parallel development", "feature branch setup", "work on multiple branches", "separate workspace for branch", "docker port conflict", "database isolation", "worktreeinclude", "env isolation", or wants to manage git worktrees for parallel feature development.

3 Updated 1 weeks ago
smicolon
Code & Development Listed

git-worktree-manager

Parallel development with git worktrees and deterministic port isolation. TRIGGER when: user wants to work on multiple branches simultaneously, run parallel agent sessions, manage worktree-based dev environments, or asks about port conflicts between concurrent services. DO NOT TRIGGER when: simple branch switching (use git checkout), or single-branch development with no parallelism needed.

1 Updated 1 weeks ago
DROOdotFOO