Switch the current session to work in an existing git worktree
56
58%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/switch-worktree/SKILL.mdSwitch the current session to an existing worktree.
If $ARGUMENTS is empty, list available worktrees and ask the user to pick one:
git worktree listOtherwise, let NAME = $ARGUMENTS. The worktree path is <repo-root>/.worktrees/<NAME>.
Verify the worktree exists in git worktree list output. If not, stop with an error.
Let WORKTREE = the absolute path to the worktree.
cd WORKTREEThen verify the switch took effect:
pwdIf pwd does not show WORKTREE, stop with an error — the cwd did not persist.
Switched to worktree: WORKTREE
Branch: <current branch from git branch --show-current>e3e58fe
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.