clean
Clean up merged branches locally and on remote, keeping only main, dev, and gh-pages.
Install / Use
npx skills add alirezarezvani/claude-skillsInstalls into whichever agent you are using.
Claude Commands
Claude Code slash commands
Quality Score
Category
Development & EngineeringSupported Platforms
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.
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 foundOur 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.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| clean (this skill)by alirezarezvani | 77 | 26.4k | 26d ago | Claude Commands |
| claude-memby thedotmack | 100 | 94.7k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 85.5k | 10d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 84.2k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.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.
Skill content
View source on GitHubdescription: 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
- 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.
- 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.
- 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.
- Confirm with the user before deleting remote branches. Show the full list and wait for approval. Then delete:
git push origin --delete <branch-names>
- Prune stale remote refs:
git remote prune origin
- 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
claude-mem
94.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
85.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
84.2kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
