agentsclimarketplace

Git worktree manager

Skill DROOdotFOO/agent-skills/skills/git-worktree-manager

Agent skills, autonomous agents, and MCP-companions for programming

Install
npx -y skills add DROOdotFOO/agent-skills --skill git-worktree-manager

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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.

SKILL.md

2.9 KB, as published. Nobody here has run it

git-worktree-manager

Parallel development using git worktrees with deterministic port allocation. Designed for multi-agent workflows where multiple branches run services concurrently without port collisions.

What You Get

  • Worktree lifecycle management (create, list, cleanup)
  • Deterministic port allocation with collision detection
  • Docker Compose patterns for per-worktree services
  • Decision matrix for when worktrees add value

Workflow

  1. Decide -- Check the decision matrix below. Worktrees add overhead; use them only when parallelism is required.
  2. Create -- git worktree add ../project-feature feature-branch
  3. Allocate ports -- Use deterministic formula from port-allocation.md
  4. Run sessions -- Each worktree gets isolated services on unique ports
  5. Cleanup -- git worktree remove ../project-feature and release ports

Decision matrix

SituationUse worktree?Why
Quick fix while feature branch is runningYesKeep feature services up, fix on main
Multiple agents working different featuresYesEach agent gets isolated environment
Long-running test suite on one branchYesContinue development without waiting
Simple feature branch, no running servicesNogit checkout is simpler
Reviewing a PR locallyMaybeOnly if your current branch has state
Shared database migrations in flightNoWorktrees share .git; migrations collide

Rules

  1. Never create worktrees inside the main working tree
  2. Use sibling directories: ../project-feature, not ./worktrees/feature
  3. Always allocate ports before starting services
  4. Clean up worktrees when the branch is merged
  5. Commit or stash before removing a worktree

Reading guide

Working onRead
Port formula, collision checks, Docker Composeport-allocation

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.