fcakyon/claude-codex-settings/clean-gone-branches
Claude Code and agent skill by fcakyon/claude-codex-settings
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
This skill should be used when user asks to "clean gone branches", "remove deleted local branches", "prune branches removed from remote", or explicitly invokes "clean-gone-branches".
Install
npx vskill@latest install fcakyon/claude-codex-settings/clean-gone-branchesSKILL.md
The same SKILL.md was published earlier as fcakyon/claude-codex-settings/clean-gone-branches.
Clean Gone Branches
Remove local git branches whose remote tracking branch has been deleted, cleaning attached worktrees safely first.
Process
- Prune remote references
- Run
git fetch --prune.
- Inspect branches and worktrees
- Run
git branch -vvto find branches marked[gone]. - Run
git worktree listto check whether any[gone]branch is checked out in a linked worktree (and checkgit status --shortinside each candidate worktree so dirty work is never lost).
- Remove clean worktrees first
- Skip any worktree with uncommitted changes unless the user explicitly asks to discard them.
- Remove clean
[gone]worktrees withgit worktree remove <path>before deleting the branch.
- Delete gone branches
- Delete merged
[gone]branches withgit branch -d <branch>. Confirm with the user before force-deleting unmerged branches (-D), noting squash-merged PRs when relevant.
- Report clearly
- List removed worktrees, deleted branches, and any dirty/unmerged branches kept for safety.
- If no
[gone]branches exist, report that the repo is already clean.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/github-dev/skills/clean-gone-branches/SKILL.md
Popularity
- Repository stars
- 1,196
- Repository forks
- 112
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fcakyon/claude-codex-settings/clean-gone-branches)