create-worktree
Installation
SKILL.md
Create Worktree with Environment Setup
When this command is invoked with /create-worktree <branch-name> [base-branch] [path=<folder>], execute the following steps:
Step 1: Parse Arguments
Extract the branch name, optional base branch, and optional path override from the command arguments.
Derive the worktree folder name:
- If an explicit
path=<folder>argument was provided, use that. - Otherwise, use the last segment of the branch name (the part after the final
/).autoresearch/multisector-mar22→multisector-mar22feature/auth→authfeature-auth→feature-auth(no slash, use as-is)
The worktree will be created at ../{folder}. The git branch is still created as {branch-name} (preserving the full hierarchical name).