isolate
Installation
SKILL.md
Isolate
Begin a managed worktree round trip: create one branch and sibling worktree with a recorded route back to its base.
Consult the package contract when recovering from failure or changing package behavior; the steps below are the execution path.
Steps
-
Resolve the task,
<repo-root>,<branch>, and<base>.- Resolve
<repo-root>withgit rev-parse --show-toplevelfrom the current checkout. - Name
<branch>astype/short-kebab-description, for examplefeat/power-management. - Use the user-selected
<base>, otherwise the current branch, otherwisemain. - Rewrite the request as a compact handoff prompt containing only task intent and explicit constraints. Omit
$isolateso the next session continues the task.
This step is complete when all four values are explicit and the handoff prompt continues the task instead of invoking isolation again.
The base worktree may be dirty: isolation starts the new branch at the base branch's committed
HEADand leaves local base changes in place. - Resolve