discard
Installation
SKILL.md
Discard
Finish the managed round trip by abandoning isolated work, leaving the recorded base unchanged, and removing the isolated branch and folder.
discard is a companion to isolate; install both skills from the same source. Consult the lifecycle contract when recovering from failure or changing package behavior; the steps below are the execution path.
Steps
-
Resolve the managed target.
Resolve
<repo-root>withgit rev-parse --show-toplevelfrom the current checkout. Prefer the user-provided branch; inside the isolated worktree, omit it and let the launcher resolve the current branch.This step is complete when the target has isolate metadata and is neither the base worktree nor a protected branch.
-
Run discard once.
PowerShell: