Skip to content
Agent Orchestration
Skill

/pr-to-main-cleanup

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

From plugin
cc-wf-studio
5.4k10 skills2 MCP

Claude Code

$ npx -y skills add breaking-brake/cc-wf-studio --skill pr-to-main-cleanup --agent claude-code

SKILL.md

pr-to-main-cleanup.SKILL.md
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

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
@breaking-brake
Ships withcc-wf-studio

You think visually. AI thinks in .md. CC Workflow Studio speaks both. Design workflows on a canvas. Export as Markdown your AI agent already understands. No more prompt-guessing. Why CC Workflow Studio? - Speaker Deck Link

5.4k10 skills2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.4k
Star history of breaking-brake/cc-wf-studio on GitHub, a chart by star-history.com

Other skills on cc-wf-studio.

jira-driven-planning

jira-driven-planning

Jiraチケットの要件とConfluenceの関連ドキュメントを基に、Frontend/Backend/Infrastructureに分割した実装計画を策定するプランニングスキル。Jiraチケット情報とConfluence検索結果が前段で取得済みであることを前…

next-idea

next-idea

Run one unattended IDEATION iteration of the autonomous value-creation loop — invent improvements a user of cc-wf-studio would…

next-qa-idea

next-qa-idea

Run one unattended IDEATION iteration of the quality-assurance loop — find the highest-value untested behavior in the codebase,…

next-qa

next-qa

Run one unattended iteration of the QUALITY-ASSURANCE loop — steward any in-flight QA PR, then build ONE queued `qa` issue (test…

next-task

next-task

Run one unattended IMPLEMENTATION iteration of the autonomous value-creation loop — steward any in-flight PR, fix interrupts (red…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

clawdis11d393k
@steipete@steipeteInstall Skill
computer-use

computer-use

Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and…

orca11d111k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip10d109k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about pr-to-main-cleanup.

Which coding agents can use pr-to-main-cleanup?
pr-to-main-cleanup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.