Dev & Engineering

Worktree Manager Skill

Create, list, and remove git worktrees with a single command, automatically provisioning isolated ports, databases, and config for parallel development.

59/ 100
Recommended

Generally reliable with disclosed limitations; trial as directed and keep a rollback path.

See how it was scored ↓
Works as-is in
Claude Code
Stars
★ 1.5k
Last updated
8mo ago
git-worktreeparallel-developmentbranch-managementslash-commands
+2port-isolationdeveloper-environment

What does this skill do, and when should you use it?

This is an Agent Skill bundled at .claude/skills/worktree-manager-skill inside disler/claude-code-hooks-multi-agent-observability, providing complete git worktree lifecycle management. It wraps worktree creation, listing, and removal into three slash commands, automatically handling port uniqueness, environment configuration, and operation validation so you never manage raw git worktree commands by hand. The skill explicitly depends on Claude Code's slash-command mechanism (SlashCommand is declared in its frontmatter), so porting it to other agent platforms requires adaptation. It fits developers who already use Claude Code and regularly juggle multiple parallel development environments.

The skill manages three worktree operations: /create_worktree <branch-name> [port-offset] spins up a new parallel development environment; /list_worktrees shows all worktrees and their status; /remove_worktree <branch-name> deletes a worktree. Creation automatically provisions isolated ports, databases, and configuration while guaranteeing port uniqueness; removal cleans up automatically. It executes via the Bash, Read, Write, Edit, Glob, and Grep tools, and its documentation explicitly forbids manual git commands, manual port configuration, or direct directory deletion — everything must go through the slash commands to get validation and error handling.

Good fit
  • A developer running several feature branches in parallel who needs each branch to have its own isolated ports and database
  • An engineer debugging bugs across multiple branches at once, using /list_worktrees to see all existing worktrees and their status
  • After merging or abandoning a feature, removing the corresponding worktree and its configuration with a single /remove_worktree call
  • A new team member wanting to try multi-environment parallel development without memorizing git worktree flags and port setup
  • Anyone needing a temporary environment on a branch for verification or a demo, avoiding port conflicts and missed config steps

How do you install this skill?

Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem
Install first
  • git

This skill is one of 4 skills bundled in the disler/claude-code-hooks-multi-agent-observability repository. Per the repo's general instructions, copy the .claude directory to your project root: cp -R .claude /path/to/your/project/. The skill lives at .claude/skills/worktree-manager-skill/. The repo does not document a minimal install for this skill alone; copying just the skills subdirectory into your project's .claude/skills/ is the plausible minimal approach but is not explicitly confirmed by the source.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/disler/claude-code-hooks-multi-agent-observability.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.claude/skills/worktree-manager-skill" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • create a worktree for feature-x with port offset 1
  • list all worktrees
  • remove the feature-x worktree

Trigger it with natural language in Claude Code: "create a worktree for feature-x with port offset 1" maps to /create_worktree feature-x 1; "list all worktrees" maps to /list_worktrees; "remove the feature-x worktree" maps to /remove_worktree feature-x. The skill ships with OPERATIONS.md, EXAMPLES.md, TROUBLESHOOTING.md, and REFERENCE.md for detailed steps and troubleshooting. Do not ask Claude to run raw git worktree commands — the skill explicitly lists that as an out-of-scope use.

What are this skill's strengths and limitations?

Pros
  • Wraps the full create/list/remove worktree lifecycle into three commands with a keyword decision tree, making intent matching unambiguous
  • Automatically handles port uniqueness, isolated ports/databases/config on creation, and proper cleanup on removal
  • Ships with operations, examples, troubleshooting, and reference docs
  • Clearly defines in-scope vs out-of-scope usage, avoiding conflicts with manual git workflows
Limitations
  • Depends on Claude Code-specific slash commands and the SlashCommand tool; not directly usable on other agent platforms
  • Repository license is listed as unknown, so commercial use needs independent verification
  • The skill is one of 4 bundled in a repo whose README focuses on an observability system; the skill's standalone maturity and test coverage are not documented in the source
  • The exact implementation of database/config isolation during worktree creation is not detailed in the documentation

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Worktree Manager Skill this page 59 · Recommended ★ 1.5k 8mo ago —
Git Worktree Parallel Environment Skill 57 · Use with care ★ 1.5k 8mo ago —
Branch Merge Assistant ✓ Microsoft · Official 49 · Use with care ★ 194k 11d ago MIT
do — Feature Development Orchestrator 47 · Use with care ★ 2.8k 5mo ago AGPL-3.0
CODEOWNERS PR Splitter ✓ NVIDIA · Official 57 · Use with care ★ 3.6k 11d ago Apache-2.0

How did FollowSkills review this skill?

FollowSkills review · FSRS-1.0
Recommended
59/ 100 5-point scale 3.0 / 5
1Utility11 / 20 · 2.8/5

Full-lifecycle git worktree management (create/remove/list), explicitly excludes scenarios where it shouldn't trigger (e.g. user wants raw git commands).

2Reliability12 / 20 · 3.0/5
3Safety19 / 25 · 3.8/5
4Evidence5 / 15 · 1.7/5
5Usability7 / 10 · 3.5/5
6Maintenance5 / 10 · 2.5/5
1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 17, 2026 Review evidence[1]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

This review was completed under FSRS 1.0. Dimension scores are not converted; it is queued for re-review under FSRS 2.0.

See the full review method →

FAQ

How is this different from just running git worktree add?
Automation: the skill assigns unique ports, generates isolated databases and config files, and performs full cleanup on removal — all of which you'd handle manually with raw git. The docs explicitly advise against bypassing it with manual git worktree commands.
Does it only work inside Claude Code?
Yes. The frontmatter declares the SlashCommand tool and all core operations are triggered via Claude Code slash commands like /create_worktree; no standalone script entry point is provided, so other platforms require rework.
Do I need to install the whole observability system to use it?
The source only documents the general install of copying the entire .claude directory; it does not state whether this skill can run independently of the repo's hooks and observability server. Copying just the skills subdirectory is reasonable but not explicitly confirmed.
Is the port-offset argument required?
No. The syntax is /create_worktree <branch-name> [port-offset] — the offset is optional, and the skill guarantees port uniqueness even when it's omitted.

More skills from this repository

All from disler/claude-code-hooks-multi-agent-observability

Related skills