๐Ÿงน
AutomationTypeScript

PR to Main Cleanup

by breaking-brake

PR to Main Cleanup is an Automation skill for Claude Code, published by breaking-brake in cc-wf-studio.

5.4K stars571 forkson breaking-brake/cc-wf-studioAdded 2026/08/16Repository updated 2026/08/09
agent-skillsclaude-codemcp-toolsslash-commandssub-agentsvscode-extensionworkflow-automation
Install in seconds
Install PR to Main Cleanup
Copy PR to Main Cleanup into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/breaking-brake/cc-wf-studio/tree/main/.claude/skills/pr-to-main-cleanup ~/.claude/skills/pr-to-main-cleanup

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/breaking-brake/cc-wf-studio.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/pr-to-main-cleanup/SKILL.md in breaking-brake/cc-wf-studio
Installs to
~/.claude/skills/pr-to-main-cleanup
Collection
One of 11 skills cataloged from this repository
Category
Automation โ€” 1523 skills

What PR to Main Cleanup does

PR to Main Cleanup deletes merged feature branches after a pull request to main is merged. Use it when you want to clean up local and remote branches after merging a PR, especially with squash-merged PRs.

PR to Main Cleanup is cataloged under Automation on DirSkills. PR to Main Cleanup comes from a repository tagged agent-skills, claude-code, mcp-tools, slash-commands and sub-agents.

Documentation

README

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

Frequently asked about PR to Main Cleanup

  • What else does breaking-brake publish alongside PR to Main Cleanup?

    PR to Main Cleanup is one of 11 skills that DirSkills catalogs from breaking-brake/cc-wf-studio, the repository it ships in. Its siblings there include CC Workflow AI Editor, CCWF CLI and Jira Driven Planning. Each one is a separate skill with its own page in this directory, installs the same way PR to Main Cleanup does, and is maintained by breaking-brake in that same repository. The rest of the collection is listed on the breaking-brake/cc-wf-studio page.

  • How does PR to Main Cleanup compare to other Automation skills?

    PR to Main Cleanup ranks #250 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of PR to Main Cleanup against them. Open each page to compare what they document and how they install.

More from breaking-brake/cc-wf-studio

PR to Main Cleanup is one of 11 skills cataloged on DirSkills from breaking-brake/cc-wf-studio.

See all 11 skills โ†’
๐Ÿง 
2w ago

CC Workflow AI Editor

CC Workflow AI Editor creates and edits visual AI agent workflows through interactive conversation using MCP tools. Use it to create new workflows, modify existing ones, or edit the workflow canvas in CC Workflow Studio via the built-in MCP server.
AI Engineering
5.4K571
โš™๏ธ
2w ago

CCWF CLI

CCWF CLI renders, validates, previews, exports, and runs cc-wf-studio workflow JSON files from the terminal. Use it when viewing, visualizing, checking, executing, or converting workflows under .vscode/workflows/.
Automation
5.4K571
๐Ÿ—‚๏ธ
2w ago

Jira Driven Planning

Jira Driven Planning turns Jira ticket requirements and related Confluence docs into a structured implementation plan split into Frontend, Backend, and Infrastructure tasks. Use it when you need to break down a ticket into a reviewable plan before coding.
AI Engineering
5.4K571
๐Ÿ’ก
2w ago

Next Idea

Next Idea runs one unattended ideation iteration of an autonomous value-creation loop: it orients from the repo plan, invents user-visible improvements, judges them against a value bar, and files winners as locked idea issues. Use when the user asks for proposals without implementation.
Automation
5.4K571
๐Ÿงช
2w ago

Next QA

Next QA runs one unattended iteration of the quality-assurance loop: stewards in-flight QA PRs and builds one queued qa issue on a branch off auto-qa, opening a PR that squash-merges on green CI. Adds tests and tooling only; never edits product source. Use for 'QAใ‚ฟใ‚นใ‚ฏ', 'next qa', or quality-track progress.
Quality
5.4K571
๐Ÿ”
2w ago

Next QA Idea

Next QA Idea scans a codebase for the highest-value untested behavior, judges it against a QA value bar, and files one locked `qa` issue specifying the test to write. Use it when the user asks for QA ideation or to refill the QA backlog without implementation.
Quality
5.4K571