Agent skill

pr-abort

Close a pull request without merging and clean up

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-abort

SKILL.md

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

markdown
## 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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results