Skip to content
Back to skills

Worktree Manager

ASecurity

Manage git worktrees for parallel development with conflict prevention and wave-aware execution strategy. Use when creating feature branches, starting parallel work sessions, merging worktree PRs, or coordinating multiple Claude sessions.

  • 10 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
developmentgodockergit

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add smith-horn/product-builder-starter --skill worktree-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Worktree Manager?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Worktree Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smith-horn-worktree-manager/badge)](https://www.skillsdirectory.com/skills/smith-horn-worktree-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Worktree Manager"
version: 2.0.0
description: "Manage git worktrees for parallel development with conflict prevention and wave-aware execution strategy. Use when creating feature branches, starting parallel work sessions, merging worktree PRs, or coordinating multiple Claude sessions."
category: development
tags:
  - git
  - worktree
  - parallel-development
  - branching
  - workflow
author: Smith Horn
triggers:
  keywords:
    - create worktree
    - parallel development
    - worktree strategy
    - single worktree
    - multiple worktrees
  explicit:
    - /worktree
composes:
  - wave-planner
  - hive-workers-skill
  - linear
---

# Worktree Manager

Manage git worktrees for parallel development with conflict prevention and wave-aware execution strategy.

## Execution

When triggered, **immediately**:

1. Read `agent-prompt.md` from this skill's directory (`./agent-prompt.md`)
2. Spawn a single Task with `subagent_type: "general-purpose"` passing the agent-prompt content as the prompt
3. Include in the prompt: the user's request, current working directory, and any arguments passed
4. Wait for the agent to complete
5. Present the agent's summary to the user

Do NOT execute the worktree workflow in this session. The subagent handles everything including strategy selection (AskUserQuestion), worktree creation, and Docker setup.

## Changelog

### v2.0.0
- Refactor: Thin dispatcher pattern — full logic extracted to agent-prompt.md
- Skill runs in isolated subagent context, reducing post-compaction restoration from ~360 lines to ~50 lines

See agent-prompt.md for prior changelog entries.

Files in this skill

  • SKILL.md1.6 KB
  • agent-prompt.md8.2 KB
  • conflict-prevention.md5.8 KB
  • scripts/generate-launch-script.sh3.8 KB
  • scripts/worktree-cleanup.sh4.5 KB
  • scripts/worktree-create.sh3.3 KB
  • scripts/worktree-status.sh2.9 KB
  • scripts/worktree-sync.sh3.5 KB
  • strategies.md9.6 KB
  • troubleshooting.md6.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.