pr-abort

Close a pull request without merging and clean up

SKILL.md

GitHub

PR Abort

The Orchestrator drives this workflow. Close a pull request without merging, clean up the branch, and communicate the reason.

Prerequisites: PR exists and is open, decision made not to merge.


Process

  1. Identify the PR to close (by number or current branch)
  2. Determine the reason for aborting:
    • Superseded by another approach
    • No longer needed (requirements changed)
    • Blocked and abandoned
    • Experiment concluded
  3. Present close plan for approval

Output

## Context Anchors

- **PR:** #<pr-number> - <title>
- **Issue:** #<issue-number>

## Abort Plan

- PR: #<number>
- Reason: <reason for closing>
- Branch cleanup: <delete | keep> remote branch
- Issue action: <close | reopen with new approach | return to backlog>

## Next Step

Awaiting approval to close PR.

**Approval Required:** Yes

⛔ CHECKPOINT

STOP. Do not proceed until human approves the close plan.

  1. Close the PR via forge operations with a comment explaining the reason
  2. Delete or keep the remote branch (per approval)
  3. Update issue status as appropriate (per approval)

Error Handling

Error Recovery
PR not found Verify PR number
PR already closed No action needed
PR already merged Cannot abort a merged PR