Loading...
Loading...
Reflects, updates GitHub Issue, closes PR if open, cleans up worktree/branch.
npx skill4agent add camacho/ai-skills bail| 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) |
.branch-context.mdai-workspace/MEMORY.mdgit stash
git checkout main
# Append learnings to MEMORY.md
git add ai-workspace/MEMORY.md
git commit -m "docs: consolidate learnings from abandoned <branch>"
git checkout <branch>
git stash pop# Find issue number from branch name or PR
gh issue comment <number> --body "Bailing: <reason>. Learnings captured in MEMORY.md."
gh issue edit <number> --add-label "deferred" --remove-label "triage"PR_NUM=$(gh pr list --head "<branch>" --json number -q '.[0].number')
if [ -n "$PR_NUM" ]; then
gh pr close "$PR_NUM"
figit worktree remove .worktrees/<name> 2>/dev/null
git branch -D <branch> 2>/dev/null
git push origin --delete <branch> 2>/dev/nullgit checkout main