PR to Main Cleanup

SkillDev tools

Lets your agent delete local and remote feature branches after their PR is merged into main.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the PR to Main Cleanup skill

About this capability

Clean up merged feature branches after PR to main is merged. Use when the user says "ブランチ削除", "cleanup", "マージ後の片付け", or wants to delete a merged branch.

What this skill tells your AI

The instructions your AI receives, as published by breaking-brake/cc-wf-studio in .claude/skills/pr-to-main-cleanup/SKILL.md and read by ahel’s review.

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

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

Signals

GitHub stars
5k
Forks
568
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
pr-to-main-cleanup
Source
github.com/breaking-brake/cc-wf-studio