fcakyon/claude-codex-settings/clean-gone-branches

Claude Code and agent skill by fcakyon/claude-codex-settings

Trust tier 2
  • community
LLM review pending
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-branches

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

  1. Prune remote references
  • Run git fetch --prune.
  1. Inspect branches and worktrees
  • Run git branch -vv to find branches marked [gone].
  • Run git worktree list to check whether any [gone] branch is checked out in a linked worktree (and check git status --short inside each candidate worktree so dirty work is never lost).
  1. Remove clean worktrees first
  • Skip any worktree with uncommitted changes unless the user explicitly asks to discard them.
  • Remove clean [gone] worktrees with git worktree remove <path> before deleting the branch.
  1. Delete gone branches
  • Delete merged [gone] branches with git branch -d <branch>. Confirm with the user before force-deleting unmerged branches (-D), noting squash-merged PRs when relevant.
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fcakyon/claude-codex-settings/clean-gone-branches/badge)](https://verified-skill.com/skills/fcakyon/claude-codex-settings/clean-gone-branches)

Something wrong with this skill or its page? Tell us.