Reclaim disk space by cleaning build artifacts, dependency caches, and benchmark repos. Auto-invokes before merges, releases, and after big branch switches — or whenever the user asks to clean up, free space, or trim the repo.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Reclaim disk space by cleaning build artifacts, dependency caches, and benchmark repos. Auto-invokes before merges, releases, and after big branch switches — or whenever the user asks to clean up, free space, or trim the repo.
cleanup
Reclaim disk space eaten by Rust build artifacts, node_modules, benchmark repos, and other transient files.
When to use
Auto-invoke proactively when:
About to merge a PR or switch to a long-lived branch (main, release/*)
About to run scripts/release.sh (pairs with the release skill)
After finishing a feature branch and before checking out a new one
The user hasn't cleaned up in a while and disk space matters
The user says "clean up", "free space", "trim", "slim down", "cargo clean", or "this repo is huge"
Do NOT auto-invoke when:
In the middle of an active compile/test cycle (you'd delete artifacts being used)
On a CI runner (their cleanup is different)
What you'll clean
Tier 1 — Always safe (rebuild in seconds)
Target
Typical size
Command
Debug build artifacts
~16 GB
cargo clean
Release build artifacts
~1.2 GB
(included in cargo clean)
cargo clean
Note: This wipes all build artifacts (debug + release). The next cargo build or cargo test will recompile from scratch (~2-5 min). Only run this when the user isn't mid-compile.
Tier 2 — Safe if you're not benchmarking
Target
Typical size
Command
Benchmark repos
~1.1 GB
rm -rf benchmarks/repos/
Benchmark results
~2.4 MB
rm -rf benchmarks/rust-results/
rm -rf benchmarks/repos/ benchmarks/rust-results/
These are cloned/generated on demand by the benchmark runner. Safe to delete anytime.
Tier 3 — Only if you're not working on the website