# Clean Gone Branches

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

- Skill: `dceoy/clean-gone-branches` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add dceoy/clean-gone-branches`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dceoy/clean-gone-branches/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: dceoy (https://skillmd.com/u/dceoy)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dceoy/clean-gone-branches

---


# 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.

