Agent skill
pr-abort
Close a pull request without merging and clean up
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/pr-abort-daemn256-workspace-repo-templ
SKILL.md
PR Abort
Uses Orchestrator. 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
- Identify the PR to close (by number or current branch)
- Determine the reason for aborting:
- Superseded by another approach
- No longer needed (requirements changed)
- Blocked and abandoned
- Experiment concluded
- 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 close the PR until human explicitly approves.
- Close the PR via forge operations with a comment explaining the reason
- Delete or keep the remote branch (per approval)
- 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 |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?