workflow-worktree-session
Installation
SKILL.md
Workflow: Worktree Session
Announce at start: "I'm using the workflow-worktree-session skill to move the session into the worktree."
Decision tree
Read the user's prompt and pick exactly one mode:
Mode A — Switch into an existing worktree
Triggers: user named or pointed at a worktree that already exists
("open the feat-login worktree", "switch to test-enter", "move into .worktrees/auth", "cd into the worktree I made").
-
Discover the path. Resolve rimba using the detection helper in
workflow-developmentPhase 1 ($RIMBA). If non-empty, run$RIMBA list --jsonto list worktrees. Otherwise usegit worktree list --porcelain:git worktree list --porcelain \ | awk '/^worktree /{path=substr($0,10); branch=""} /^branch /{branch=substr($0,8)} /^$/{print path, (branch ? branch : "(detached)")}'