Creates isolated git worktrees on separate branches with config copied, dependencies installed, and health checks verified. Detects package manager and tech stack automatically.
Ships in worktree-create. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Stand up isolated git worktrees, each on its own branch, ready for immediate development and validation: gitignored configuration copied, dependencies installed, and health checks verified. Everything is detected from the repository; nothing about the tech stack is assumed.
See worktree setup for package manager detection, configuration files, and health checks.
Arguments are passed in the user invocation message. Interpret them structurally from the prompt:
/skill:worktree-create [--base ref] [--root path] [--setup auto|none] <branch...>
/skill:worktree-create feat/user-profiles feat/billing-portal/skill:worktree-create --base main --root .worktrees feat/api-v2/skill:worktree-create --setup none chore/refactor-docs<branch...>: One or more branch names to create and check out.
git check-ref-format --branch <branch>).--base <ref>: Base git reference to branch from.
main or master) for clean branches, or HEAD if the user requested carrying current commits.git rev-parse --verify <ref>.--root <path>: Directory path under which worktrees will be created.
worktrees/ relative to the repository root...).--setup <auto|none>: Setup behavior for newly created worktrees.
auto (default): Detects and copies gitignored config, installs dependencies, runs codegen/build if needed, and executes health checks.none: Checks out the worktree only without copying files or executing commands.[!IMPORTANT] Execute steps directly; do not declare task boards or write artifact files. Run discrete git commands sequentially; never nest commands inside
$(...)command substitutions or subshells.
--base <ref>.--root <path> is gitignored in the main repository. If not already ignored, add it to .gitignore and notify the user.--root for each branch:
feat/auth maps to safe directory <root>/feat-auth or <root>/feat/auth without escaping <root>).If --setup auto is active, detect environment requirements from the repository per worktree setup:
package-lock.json, pnpm-lock.yaml, Cargo.lock, uv.lock, poetry.lock, etc.)..env*, local config) verified with git check-ignore <file>. Never copy tracked files. If .worktreeinclude exists, use it as the source of truth..github/workflows/*), Makefile targets, or manifest scripts.base_port + index) if health checks start network daemons.For each <branch> in order:
git worktree add <safe-worktree-path> -b <branch> <base>
--setup auto:
<safe-worktree-path>.A failure in one worktree does not abort setup for subsequent branches; continue setup and report the failure.
Output a structured summary table:
Remind the user:
worktree-merge and close out using branch-closeout. Never remove worktrees via rm -rf; always use git worktree remove. In canonical-main-only repositories, maintainer worktree branches stay local.git check-ignore.rm -rf on a registered worktree.What SKILL.md sets; muted values are Claude Code's defaults
/worktree-create:worktree-createfrom worktree-create
npx claudepluginhub panstudio/pancode --plugin worktree-createOther plugins' skills for the same job