Clean up merged feature branches after PR to main is merged. Use when the user says "ブランチ削除", "cleanup", "マージ後の片付け", or wants to delete a merged branch.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add breaking-brake/cc-wf-studio --skill pr-to-main-cleanup --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pr To Main Cleanup?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/breaking-brake-pr-to-main-cleanup)More formats (shields.io, HTML) on the badges page.
---
name: pr-to-main-cleanup
description: Clean up merged feature branches after PR to main is merged. Use when the user says "ブランチ削除", "cleanup", "マージ後の片付け", or wants to delete a merged branch.
---
# PR to Main Cleanup
Delete merged feature branches after PR is merged to main.
## Workflow
1. **Gather context** (parallel):
- `git branch` to identify current branch
- `git log --oneline -1` to confirm current state
2. **Execute cleanup**:
- Switch to main branch
- Pull latest changes from origin
- Delete local feature branch
- Delete remote feature branch
## Commands
```bash
git checkout main && git pull origin main && git branch -D <branch-name> && git push origin --delete <branch-name>
```
## Important Notes
- PRs to main are always squash-merged, so use `-D` (force delete) since git cannot detect squash merges as "merged"
- Always pull latest main before deleting to sync merge status
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...