skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
fcakyon/claude-codex-settings46 installs

clean-gone-branches

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

How do I install this agent skill?

npx skills add https://github.com/fcakyon/claude-codex-settings --skill clean-gone-branches
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill automates the cleanup of local Git branches that have been removed from the remote repository. It uses standard Git commands to identify and delete 'gone' branches and their associated worktrees. A minor risk of indirect prompt injection exists because the skill processes branch names, which can be influenced by external contributors in a shared repository.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

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.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/fcakyon/claude-codex-settings/clean-gone-branches">View clean-gone-branches on skillZs</a>