workflow-cleanup-merged
Installation
SKILL.md
Workflow: Cleanup Merged Branch
Announce at start: "I'm using the workflow-cleanup-merged skill to clean up after the merged PR."
When to Invoke
- After the user has confirmed a PR is merged on GitHub.
- Invoked by
/swe-workbench:cleanup-merged(user-triggered, one-off cleanup). - Invoked by Mode C orchestration (
orchestration.md) at Step 7, after each merge round.
Never auto-trigger. Cleanup is user-initiated or orchestrator-initiated. Do not attach to a Stop hook.
What This Skill Does NOT Do
- Does not merge PRs — that is the user's action.
- Does not force-delete branches with uncommitted work — no
--force, ever. - Does not squash, rebase, or alter commit history.
- Does not bypass branch protection rules.
- Does not verify CI status — CI verification happens in Phase 3/4 before the PR is created.