worktree
Installation
SKILL.md
Procedure
Parse $ARGUMENTS to determine the subcommand and arguments.
new <branch-name> [base-branch]
- Extract branch name from arguments. If a second argument is provided, use it as the base branch (default:
main). - Sanitize the branch name to a kebab-case slug by replacing
/with-and lowercasing. - Run the following using Bash:
bash scripts/claude-wt.sh new <branch-name> [base-branch] - Report the worktree path and suggest:
- Open a new terminal
cd ../worktrees/crm-<slug> && claude