<< All versions

Skill v1.0.0

currentAutomated scan100/100
fcakyon/claude-codex-settings/clean-gone-branches
──Details
PublishedNovember 3, 2026 at 02:36 AM
Content Hashsha256:beb8320579a69c8c...
Git SHA7c0a330b8bad
──Files
Files (1 file, 974 B)
SKILL.md974 Bactive
SKILL.md · 30 lines · 974 B

name: clean-gone-branches description: 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". metadata: version: "1.0.0"


Clean Gone Branches

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

Process

  1. Update remote references
  • Run git fetch --prune.
  1. 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.
  1. Remove worktrees first
  • For each [gone] branch that still has a worktree, remove the worktree before deleting the branch.
  1. Delete the gone branches
  • Delete each local branch marked as [gone].
  1. Report the result
  • List removed worktrees and deleted branches.
  • If there are no [gone] branches, report that nothing needed cleanup.
All versions