branch-hygiene

branch-hygiene is a skill for Claude Code from shrwnsan/vibekit-claude-plugins. It costs 68 tokens per session (1,128 once invoked), scanned C, original, no licence file.

A Git housekeeping tool for finding and cleaning merged, outdated, and abandoned branches and worktrees. A worktree is another working directory connected to the same Git repository.

In plain words
What is it for?
Tidying local and remote branches, detecting squash merges, finding remote-gone branches, and pruning stale worktrees.
Why use it?
It finds branches that ordinary Git checks can miss, including squash-merged branches, and identifies worktrees that are no longer useful.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the base plugin — 4 skills, 2 commands, 1 agent, 1 hook shipped together

Good fit Tidying local and remote branches, detecting squash merges, finding remote-gone branches, and pruning stale worktrees.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shrwnsan/vibekit-claude-plugins/branch-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shrwnsan/vibekit-claude-plugins --skill branch-hygiene
Clone the repo
git clone --depth 1 https://github.com/shrwnsan/vibekit-claude-plugins

Made for: Claude Code.

Or install base, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for branch-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene/github.svg)](https://agentmods.dev/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene)
Your own site
<a href="https://agentmods.dev/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene"><img src="https://agentmods.dev/badge/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for branch-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene"><img src="https://agentmods.dev/badge/skills/shrwnsan/vibekit-claude-plugins/branch-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,128 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.01128
Opus 5 $0.00034 $0.00564
Sonnet 5 $0.00014 $0.00226
Haiku 4.5 $0.00007 $0.00113

Measured 11d ago against content hash 261253fd523d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

branch-hygiene scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/classify-branches.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Use `trash`, never `rm -rf`, for orphaned directories.
plugins/base/skills/branch-hygiene/SKILL.md · 92 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 92 lines · 68 tokens per session scan C 261253fd523d

Subscribe to this mod's changes

branch-hygiene is a skill published in the GitHub repository shrwnsan/vibekit-claude-plugins (7 stars, last pushed yesterday), with no licence file. It adds 68 tokens to every session and 1,128 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

git-advanced

Use when performing complex git operations -- rebasing, cherry-picking, resolving merge conflicts, bisecting bugs, managing stashes, cleaning history, or working with monorepos. Goes beyond basic commit/push/pull.

Sagargupta16/claude-skills · 50 tokens

oss-contrib

Use when contributing to open source projects from forked repositories. Handles upstream sync, CONTRIBUTING.md compliance, code style matching, PR preparation, and project-specific patterns. Activates for fork management, PR template filling, and upstream workflow compliance.

Sagargupta16/claude-skills · 52 tokens

repo-polish

Use when setting up new repositories, auditing existing ones, or preparing repos for public visibility. Generates .gitignore, .env.example, README, and LICENSE files. Detects committed secrets and flags security issues.

Sagargupta16/claude-skills · 46 tokens

renovate-triage

Use when triaging open Renovate PRs across your own repos into merge / close / defer. Activates on "renovate triage", "review dep PRs", "monthly deps", or on the 1st of a month if deps are grouped monthly.

Sagargupta16/claude-skills · 62 tokens

reflect

Self-assessment of AI session quality. Scores 5 dimensions from session data and harness memory. Not an agent performance review — it's human self-reflection on how well they used AI assistance. Use when the user says "reflect", "how did I do", "session review", or at the end of a long session.

epicsagas/plugins · 67 tokens

release

This skill should be used when the user wants to create a new release — bump version, tag, push, create GitHub release, and optionally publish to npm. Use when user says "release", "bump version", "publish", "cut a release", or "release candidate".

NikiforovAll/claude-code-marketplace · 60 tokens