SkillAgentSearch skills...

clean

Clean up merged branches locally and on remote, keeping only main, dev, and gh-pages.

Install / Use

npx skills add alirezarezvani/claude-skills

Installs into whichever agent you are using.

About this skill
⚡

Claude Commands

Claude Code slash commands

Quality Score

77/100

Supported Platforms

Claude Code

Our assessment of clean

clean scores 77/100 on our quality scale, 955th of 1,947 Development & Engineering skills we index (top 50%).

Its Claude Commands is 1.5 KB long, lightly structured (1 heading) with 6 code examples: moderately detailed.

With 26,437 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
20/30
Structure
12/20
Description
12/15
Adoption
19/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 26 days ago, so clean is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

clean compared with similar skills

All 4 of these similar skills score higher than clean; compare them before choosing.

SkillScoreStarsUpdatedFormat
clean (this skill)by alirezarezvani7726.4k26d agoClaude Commands
claude-memby thedotmack10094.7ktodayCLAUDE.md
Agent-Reachby Panniantong10085.5k10d agoCLAUDE.md
Understand-Anythingby Egonex-AI10084.2k14d agoCLAUDE.md
headroomby headroomlabs-ai10073.8ktodayCLAUDE.md

Frequently asked questions

How do I install clean?
Run npx skills add alirezarezvani/claude-skills. The install tabs above show the steps for each supported agent.
Which AI agents does clean work with?
It is written for Claude Code, as a Claude Commands file. Other agents that read the same format can often use it too.
Is clean safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is clean still maintained?
The repository was last updated 26 days ago, so clean is actively maintained.

description: Clean up merged branches locally and on remote, keeping only main, dev, and gh-pages.

Clean up stale branches that have been merged or are no longer needed.

Steps

  1. List local branches to delete (excluding main, dev, gh-pages):
git branch | grep -v -E '^\*|main$|dev$|gh-pages$'

Report what will be deleted. If no branches found, say "No local branches to clean" and skip to step 3.

  1. Delete local branches that are fully merged:
git branch -d <branch-name>

If a branch is not fully merged, report it to the user and ask whether to force-delete. Do NOT force-delete without confirmation.

  1. List remote branches to delete (excluding main, dev, gh-pages, HEAD):
git branch -r | grep -v -E 'origin/main$|origin/dev$|origin/gh-pages$|origin/HEAD'

Report what will be deleted. If no branches found, say "No remote branches to clean" and skip to step 5.

  1. Confirm with the user before deleting remote branches. Show the full list and wait for approval. Then delete:
git push origin --delete <branch-names>
  1. Prune stale remote refs:
git remote prune origin
  1. Report final state:
git branch        # local
git branch -r     # remote

Present a summary:

| Item | Count | |------|-------| | Local branches deleted | N | | Remote branches deleted | N | | Remaining local | main, dev | | Remaining remote | origin/main, origin/dev, origin/gh-pages |

Related Skills

View on GitHub
GitHub Stars26.4k
CategoryDevelopment
Updated26d ago
Forks3.7k

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions