
Git Worktree Manager
This manages git worktrees so you can work on multiple branches simultaneously without the usual context switching hassle. Instead of stashing changes or cloning repos multiple times, you spin up separate working directories from the same git repository. Useful when you're jumping between a feature branch and a hotfix, or need to compare implementations side by side. The skill handles the worktree commands and keeps track of what's where. It's one of those git features that sounds niche until you try it, then you wonder why you ever dealt with constant branch switching.
- skills.sh installs
- 594
- GitHub stars
- 29.5K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add alirezarezvani/claude-skills --skill git-worktree-manager --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Details
- Repository
- github.com/alirezarezvani/claude-skills
- Categories
- Git & Pull Requests, AI & Agent Building, Automation & Workflows, CLI & Terminal
- First seen
- Jun 3, 2026
More from alirezarezvani/claude-skills
All 267- Free Tool Strategy592
- Popup Cro592
- Scenario War Room590
- Helm Chart Builder585
- Cs Onboard584
- Culture Architect584
- Org Health Diagnostic583
- Meeting Analyzer582
- Self Eval582
- Spec To Repo578
- Intl Expansion575
- Strategic Alignment573
- Office Hours572
- Full Page Screenshot571
- Statistical Analyst566
- Code Tour562
- Team Communications562
- Internal Narrative558
- Tc Tracker544
- Ai Seo538
- Release Manager528
- Kubernetes Operator523
- Command Guide512
- Caveman509