clean-targets
Installation
SKILL.md
clean-targets
Delete cargo target/ directories across every checkout of this repo — the
main checkout and all git worktrees — in one pass. Deleting target/ is
exactly what cargo clean does; the difference is this covers every checkout
at once and refuses to touch a target that a live build is writing to.
How to run
From anywhere inside any checkout of the repo:
bash "$(git rev-parse --show-toplevel)/.claude/skills/clean-targets/scripts/clean-targets.sh" --dry-run
Run with --dry-run first and show the user what would be deleted and what is
being kept (and why). If the plan looks as expected, run it again without the
flag to actually delete. Report the total freed at the end, plus current free
disk (df -h /).