Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
fcakyon avatar

Clean Gone Branches

  • 26 installs
  • 946 repo stars
  • Updated August 2, 2026
  • fcakyon/claude-codex-settings

Helps with ai & agent building tasks.

About

clean-gone-branches is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • clean-gone-branches
  • AI & Agent Building
  • AI-coding skill

Clean Gone Branches by the numbers

  • 26 all-time installs (skills.sh)
  • Ranked #9,643 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fcakyon/claude-codex-settings --skill clean-gone-branches

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs26
repo stars946
Last updatedAugust 2, 2026
Repositoryfcakyon/claude-codex-settings

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

Clean Gone Branches

Remove local git branches that have been deleted from the remote.

Process

1. Update remote references

  • Run git fetch --prune.

2. Inspect local state

  • Run git branch -vv to find branches marked as [gone].
  • Run git worktree list to see whether any of those branches still have worktrees.

3. Remove worktrees first

  • For each [gone] branch that still has a worktree, remove the worktree before deleting the branch.

4. Delete the gone branches

  • Delete each local branch marked as [gone].

5. Report the result

  • List removed worktrees and deleted branches.
  • If there are no [gone] branches, report that nothing needed cleanup.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.