alirezarezvani avatar

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

Installs 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
1intellectronica avatarhere-be-gitintellectronica/agent-skillsInitialise a git repository with optional agent commit instructions and .gitignore. Use when users say "here be git", "init git", "initialise git", or otherwise531skills.sh installs
2parcadei avatargit-commitsparcadei/continuous-claude-v3Git Commit Rules523skills.sh installs
3aj-geddes avatargit-hooks-setupaj-geddes/useful-ai-promptsImplement Git hooks using Husky, pre-commit, and custom scripts. Enforce code quality, linting, and testing before commits and pushes.450skills.sh installs
4tartinerlabs avatarcommittartinerlabs/skillsUse when committing changes, staging files, saving work, or making a git commit. Creates clean commits in the repository's own convention (conventional commits,413skills.sh installs
5tldraw avatarwrite-issuetldraw/tldrawReference standards for writing and maintaining GitHub issues in the tldraw repository. Use as supporting guidance when another skill or workflow needs issue ti410skills.sh installs
6galaxy-dawn avatarcode-review-excellencegalaxy-dawn/claude-scholarThis skill should be used when the user asks to review a diff or pull request, write review comments, audit code quality, establish review standards, or improve375skills.sh installs