Creates or removes a git worktree using the project scripts and shared config. Use when the user asks to create a worktree, add a worktree, remove a worktree, delete a worktree, or work on a parallel branch in a separate directory.
95
93%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Run from the repo root:
yarn worktree:create <path> <branch> or yarn worktree:create <path> <branch> --from main for a new branch. Use yarn worktree:create --cd <path> <branch> to spawn a shell in the new worktree after create.yarn worktree:create without arguments so the script runs in interactive mode; the user can enter path and branch in the terminal.Do not run raw git worktree add or manual copy/setup steps; the script runs the commands from .cursor/worktrees.json as the single source of truth.
After the script succeeds, remind the user to run yarn setup or yarn setup:expo and git submodule update --init --recursive in the new worktree as needed.
yarn worktree:remove <path>.yarn worktree:remove (interactive; lists worktrees and prompts to choose).Full worktree docs: Development Process – Git worktrees.
bee9b14
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.