with one click
wt
Switch to and from worktree
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Switch to and from worktree
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Name your session
Interview the user relentlessly about a plan or design until reaching shared understanding
Relentlessly self critique your past reasoning, in order to catch any issues and reach high certainty that the right approach was taken.
| name | wt |
| description | Switch to and from worktree |
When this skill is invoked the user want to switch the current session to a worktree, or switch back from a worktree.
Check the current working dir (without any tool calls), if it contains .claude/worktrees then you are in a worktree.
If the user supplied args to the skill, this might be instructions on branch names, etc. If unrelated to branch names or worktrees, then the args are instructions of work to be carried out once the worktree switch is done.
<repo>/.claude/worktrees/<branch-name>EnterWorktree to enter the worktreeExitWorktree with action: "keep" to leave the worktree (since the worktree was created manually, not by EnterWorktree, remove will be rejected)git worktree remove