Skip to content
Back to skills

Clean Gone Branches

ASecurity

Remove local git branches whose configured upstream is marked [gone], including associated worktrees.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 8, 2026
ai-agentsgogit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 8, 2026

npx -y skills add dceoy/ai-coding-agent-skills --skill clean-gone-branches --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clean Gone Branches?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clean Gone Branches
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dceoy-clean-gone-branches/badge)](https://www.skillsdirectory.com/skills/dceoy-clean-gone-branches)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clean-gone-branches
description: Remove local git branches whose configured upstream is marked [gone], including associated worktrees.
---

# Clean Gone Branches

Run the bundled `scripts/clean.sh` from this skill in the current repository.

Only branches explicitly marked `[gone]` may be deleted. Never delete the current branch or the repository's main worktree.

Report removed and skipped branches or worktrees. If none are `[gone]`, report that no cleanup was needed.

Files in this skill

  • SKILL.md484 B
  • scripts/clean.sh1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.