🌿
AutomationPython

Clean Gone Branches

by fcakyon

Clean Gone Branches is an Automation skill for Claude Code, published by fcakyon in claude-codex-settings.

1.1K stars102 forkson fcakyon/claude-codex-settingsAdded 2026/08/20Repository updated 2026/08/20
ai-agentsai-toolsclaude-aiclaude-codeclaude-code-pluginclaude-skillsclaudecodeclaudecode-configcodexcodex-clicommit-messagecursordokployfrontend-designgemini-cligithubhetznerkimi-k3pluginpull-requests
Install in seconds
Install Clean Gone Branches
Copy Clean Gone Branches into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/github-dev/skills/clean-gone-branches ~/.claude/skills/clean-gone-branches

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/fcakyon/claude-codex-settings.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
plugins/github-dev/skills/clean-gone-branches/SKILL.md in fcakyon/claude-codex-settings
Installs to
~/.claude/skills/clean-gone-branches
Collection
One of 25 skills cataloged from this repository
Category
Automation1523 skills

What Clean Gone Branches does

Clean Gone Branches removes local Git branches that were deleted from the remote. Use it after fetching when you want to prune gone branches and clear any related worktrees first.

Clean Gone Branches is cataloged under Automation on DirSkills. Clean Gone Branches comes from a repository tagged ai-agents, ai-tools, claude-ai, claude-code and claude-code-plugin.

Documentation

README

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.

Frequently asked about Clean Gone Branches

  • What else does fcakyon publish alongside Clean Gone Branches?

    Clean Gone Branches is one of 25 skills that DirSkills catalogs from fcakyon/claude-codex-settings, the repository it ships in. Its siblings there include ADHD Output Style, Agent Browser and Azure Tools Setup. Each one is a separate skill with its own page in this directory, installs the same way Clean Gone Branches does, and is maintained by fcakyon in that same repository. The rest of the collection is listed on the fcakyon/claude-codex-settings page.

  • How does Clean Gone Branches compare to other Automation skills?

    Clean Gone Branches ranks #775 by stars among the 1523 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Clean Gone Branches against them. Open each page to compare what they document and how they install.

More from fcakyon/claude-codex-settings

Clean Gone Branches is one of 25 skills cataloged on DirSkills from fcakyon/claude-codex-settings.

See all 25 skills
🧠
2w ago

ADHD Output Style

ADHD Output Style formats AI responses for readers with limited working memory, using numbered steps, concrete progress cues, and terse structure. Use it when a user asks for ADHD output, fewer output tokens, short numbered steps, or limited working memory formatting.
AI Engineering
1.1K102
🌐
2w ago

Agent Browser

Agent Browser is a fast browser automation CLI that uses Chrome/Chromium via CDP and accessibility-tree snapshots so agents can navigate, click, fill, extract, screenshot, and manage tabs with compact element refs. Use it when a user asks to interact with a website, fill a form, scrape data, log in, or automate browser tasks.
Automation
1.1K102
☁️
2w ago

Azure Tools Setup

Azure Tools Setup guides users through configuring Azure MCP integration, fixing common authentication and CLI issues. Use it when Azure authentication fails, Azure CLI is missing, or Azure MCP errors appear.
DevOps
1.1K102
☁️
2w ago

Azure Usage

Azure Usage provides best practices for querying and managing Azure resources (storage accounts, Key Vault secrets, Cosmos DB, AKS clusters) using Azure MCP tools. Use it when interacting with any Azure service via MCP.
DevOps
1.1K102
☁️
2w ago

Cloudflare Deploy

Cloudflare Deploy guides development on the Cloudflare platform, covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), networking, security, and infrastructure-as-code. Use it to find the right Cloudflare product and get current guidance from official docs.
DevOps
1.1K102
🔍
2w ago

Codex Advisor

Codex Advisor gets a focused second opinion from GPT through the Codex CLI, without handing work over. Use it when you need a cross-model review, a plan check before committing, or another view after repeated failures.
Quality
1.1K102