bail

Installation
SKILL.md

Bail-out protocol: always reflect FIRST, then clean up. All commands use absolute paths and git -C.

Inputs

  • WORKTREE: absolute path to current worktree (or primary if no worktree)
  • Optional reason string (if not provided, ask for one)

Steps

  1. Detect current step by examining what exists:

    What exists Estimated step
    Just an issue, no branch Step 0 (Capture)
    .branch-context.md, no worktree Step 1 (Orient)
    Worktree exists, no code changes Step 2 (Isolate)
    Plan file on branch Step 3-4 (Design/Review)
    Code changes committed Step 5-7 (Build/Verify/Archive)
    PR open on GitHub Step 8 (Ship)
Related skills
Installs
566
First Seen
Mar 30, 2026