Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By dvwinckv0.2.0MITIn 1 marketplace
Deletes stale local git branches, worktrees and stashes after you approve each one on a card showing its merge proof. Anything with unique commits is backed up first. Needs python3 and git; gh is optional.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Clean up stale git branches, worktrees and stashes from a local board. Every candidate is a card that shows how sure the tool is that it is finished; you decide Delete, Keep or Later (pt-BR Apagar, Manter, Depois) with the keyboard; a separate apply step re-checks each approved item at the moment it deletes it. Nothing is deleted without your approval, and anything that exists in one place only is backed up first.
python3 (standard library only) and git; gh is optional (it proves merged pull requests). scan and apply never use the network except through gh, read-only and only when it is installed (scan to prove merged pull requests, apply to re-check the P2 items); restore uses none.scan --lang pt-BR, --lang on every command, or CAPYBARA_LANG); the documentation is in English (README.pt-BR.md is the Portuguese counterpart).origin is never touched./plugin marketplace add dvwinck/capybara-toolbox
/plugin install tidy-board@capybara-toolbox
Or copy the skill without the plugin system: ./install.sh tidy-board from a clone.
scan reads the repository (no fetch, no network, read-only) and writes an ar-board batch plus a scan.json sidecar into .tidy-board/<batch>/.capy_board.py) shows one card per item. A = Delete, R = Keep, M = Later (pt-BR Apagar, Manter, Depois). Items that are not provably merged need a second A to confirm.apply refuses to run unless the board was concluded, then re-verifies every approved item right before deleting it and writes applied.json.restore brings back what was deleted by mistake.Ask Claude "clean up my stale branches" or call /tidy-board:tidy-board; the skill drives these steps. Or run the tool yourself:
S=plugins/tidy-board/skills/tidy-board/scripts
python3 -I $S/tidy_board.py scan # writes .tidy-board/<batch>/
python3 -I $S/capy_board.py serve .tidy-board/<batch> --open
python3 -I $S/tidy_board.py apply .tidy-board/<batch> --dry-run
python3 -I $S/tidy_board.py apply .tidy-board/<batch>
| Level | Criterion | Treatment |
|---|---|---|
| P1 | The tip is an ancestor of the base (git merge-base --is-ancestor). | Safe. Covered by the group card. |
| P2 | gh reports a merged PR whose head sha equals the branch tip. | Safe. Covered by the group card. |
| P3 | Every patch of the branch is already in the base (cherry-pick, rebase), or the branch's whole diff equals one recent base commit's diff (a squash). The comparison looks at the last 500 base commits. | Probable. Second A and a backup ref. |
| P4 | Anything else: the commits exist nowhere else. Stashes are always P4. | Alert, second A and a backup ref. |
A false negative is safe (an item stays P4 and is protected). The dangerous error is a false positive, which is why P3 never joins a bulk action and always gets a backup. "Upstream is gone" is shown as a hint but never raises the level: a remote branch can be deleted without being merged. Without gh the highest level is P1.
The base is --base, else the branch origin/HEAD points to, else the first of main, master, base, trunk. A branch counts as merged if it is an ancestor of the local base or of origin/<base>.
The first card (G) says "delete the N items proved as merged" and lists them. It applies to every P1/P2 item without a decision of its own: a Keep or Later (pt-BR Manter, Depois) on an item always beats the group, and P3, P4 and stashes ignore it entirely. An item with no decision is kept.
The base branch, the current branch, any branch checked out in a worktree (the worktree is the card), and any worktree with tracked changes or untracked files (deleting it would lose work with no sha to recover). They are listed in the first card as Nao tocar, with the reason.
A clean worktree that holds files git ignores (a .env, node_modules/) is offered, but its card lists them, asks for a second A and keeps it out of the group card: removing the folder deletes them, they are in no commit and they get no backup.
apply re-checksPer item, at deletion time (the scan is only a photograph):
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub dvwinck/capybara-toolbox --plugin tidy-boardPlugins from other owners that cover similar ground