Branch Hygiene

Composite skill — one-pass cleanup of stale local branches, dead worktrees, merged branches, and abandoned remote PR branches. Chains `git fetch --prune` → `clean_gone` (kill [gone] branches) → worktree prune + offer-to-remove dead worktrees → list-and-delete branches merged to main and release → delete remote PR branches whose PRs merged >7 days ago. Use instead of running `clean_gone` alone — that only catches half the rot. Daily-friction composite; fires on "clean up branches", "branch hygiene", "stale worktrees", and on session start when local branch count > 30.

LucasSantana-Dev Updated 1 repo stars

File contents

LucasSantana-Dev/forgekit/tree/main/packages/catalog/catalog/skills/branch-hygiene commit 809ae948f1

Frequently asked questions

npx skillmds@latest add lucassantana-dev/branch-hygiene