Worktree Setup

Use when starting an isolated task that needs a git worktree on a NEW branch — any project. Triggers — "set up a worktree for X", "start a worktree for this task", "isolate this work in a worktree", or before a subagent-driven / executing-plans run on a repo not already in a linked worktree. Reads a per-project config (in-repo .worktree.json or a registry under $CLAUDE_PLUGIN_DATA/projects) to decide single vs dual/multi-repo scope (identical branch names on coupled repos), cut from the right base branch, copy env files, and run the right install command. No-op when no config matches and you are not asked to init one.

punkaze d7c93a5 7 files · 26.6 KB Updated

File contents

punkaze/skills/tree/main/plugin/skills/worktree-setup commit d7c93a5adb

Frequently asked questions

npx skillmds@latest add punkaze/worktree-setup