Agent skill

PR Merge Branch Cleanup

by breaking-brake in breaking-brake/cc-wf-studio

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

— description from SKILL.md by breaking-brake
Custom licenceAuto-check passedDevelopment

Install PR Merge Branch Cleanup

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install breaking-brake/cc-wf-studio pr-to-main-cleanup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/breaking-brake/cc-wf-studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/pr-to-main-cleanup .claude/skills/pr-to-main-cleanup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-to-main-cleanup
GitHub stars
5.4k
Token cost
~232 tokens
SKILL.md length
85 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

  • Works in 2 steps: Gather context (parallel) → Execute cleanup
  • SKILL.md covers Workflow, Commands and Important Notes
  • Calls git

About this skill

PR Merge Branch Cleanup is a skill in breaking-brake/cc-wf-studio (5.4k stars). Its SKILL.md is about 232 tokens. Licence: Custom licence.

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Gather context (parallel)
  2. Execute cleanup

What it can do on your machine

Read from SKILL.md and the folder at commit a7bf24a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Merge Branch Cleanup loads about 232 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 85 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~232

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 85 words (~232 tokens).

“Delete merged feature branches after PR is merged to main.”

— opening of SKILL.md by breaking-brake, Custom licence
name
pr-to-main-cleanup

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/pr-to-main-cleanup of breaking-brake/cc-wf-studio.

Open the folder on GitHubat commit a7bf24a

Compare with similar skills

PR Merge Branch Cleanup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Merge Branch Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Merge Branch Cleanup this skillbreaking-brake/cc-wf-studio5.4k—~232Automated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Migrate Internal Package into GhostTryGhost/Ghost56k—~3.8kAutomated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Git Merge Conflict Resolvertailcallhq/forgecode7.6k1 repos~4.5kAutomated safety check: PassApache-2.0

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Git Merge Conflict Resolver

    tailcallhq/forgecode

    Resolves Git merge conflicts with a plan-first workflow that keeps both sides' intent, regenerates lock files and backs up deleted-but-modified files.

    7.6k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed
  • Git Branch Naming

    makeplane/plane

    Names a new Git branch with a type prefix, the lowercased work item ID and a short kebab-case description, so the ID can be extracted later from the branch name.

    61k GitHub stars~594 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from breaking-brake/cc-wf-studio

All 11 skills in this repo
  • CC Workflow Studio AI Editor

    breaking-brake/cc-wf-studio

    Creates and edits visual agent workflows in CC Workflow Studio through conversation, with the agent reading and writing the canvas over MCP.

    5.4k GitHub stars~561 tokensUpdated 4 days ago
    Auto-check passed
  • PR Review Analysis

    breaking-brake/cc-wf-studio

    Fetches review comments from a GitHub pull request, checks each one against the real code, rates it valid, invalid or partial, and can reply on GitHub.

    5.4k GitHub stars~626 tokensUpdated 4 days ago
    Auto-check passed
  • Workflow Schema Tuning

    breaking-brake/cc-wf-studio

    Guides edits to cc-wf-studio's workflow schema so AI agents generate better workflows, treating schema text as prompt engineering rather than validation.

    5.4k GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed
  • Changesets Pull Request to Main

    breaking-brake/cc-wf-studio

    Opens a pull request to main in a pnpm and Changesets monorepo, after working out which packages changed and making sure a changeset file exists.

    5.4k GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed
  • ccwf Workflow CLI

    breaking-brake/cc-wf-studio

    Teaches the agent to use the ccwf command line tool to validate, preview, render, export and run cc-wf-studio workflow JSON files without opening VS Code.

    5.4k GitHub stars~3.3k tokensUpdated 4 days ago
    Auto-check passed
  • Next Idea Ideation Loop

    breaking-brake/cc-wf-studio

    Runs one unattended ideation round for cc-wf-studio: orient on plans and issues, invent user-visible improvements, judge them against a value bar and file the winners as locked idea issues.

    5.4k GitHub stars~1k tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about PR Merge Branch Cleanup

How do I install PR Merge Branch Cleanup in Claude Code?

Run `npx skills add breaking-brake/cc-wf-studio --skill pr-to-main-cleanup -a claude-code`. Or copy the skill folder (.claude/skills/pr-to-main-cleanup in breaking-brake/cc-wf-studio) into .claude/skills/pr-to-main-cleanup in your project. Claude Code loads it when a task matches its description.

How do I install PR Merge Branch Cleanup in Codex?

Run `npx skills add breaking-brake/cc-wf-studio --skill pr-to-main-cleanup -a codex`. Or copy the skill folder (.claude/skills/pr-to-main-cleanup in breaking-brake/cc-wf-studio) into .agents/skills/pr-to-main-cleanup in your project. Codex loads it when a task matches its description.

Can I use PR Merge Branch Cleanup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add breaking-brake/cc-wf-studio --skill pr-to-main-cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-to-main-cleanup, .gemini/skills/pr-to-main-cleanup, .github/skills/pr-to-main-cleanup and .opencode/skills/pr-to-main-cleanup in your project.

What does PR Merge Branch Cleanup need to run?

Going by SKILL.md and its folder, PR Merge Branch Cleanup needs the command-line tools its instructions call (git).

Does PR Merge Branch Cleanup access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Merge Branch Cleanup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Merge Branch Cleanup use?

PR Merge Branch Cleanup has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does PR Merge Branch Cleanup use?

About 232 tokens (SKILL.md is roughly 928 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Merge Branch Cleanup?

Skills that share tags, products or a category with PR Merge Branch Cleanup: Finishing a Development Branch (obra/superpowers, 297k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Migrate Internal Package into Ghost (TryGhost/Ghost, 56k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Merge Branch Cleanup?

breaking-brake (a GitHub user) maintains it in breaking-brake/cc-wf-studio, which has 5,394 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 7, 2026.

Source: breaking-brake/cc-wf-studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.