← All skills
disk-space-cleanup
89 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
By colonelpanic8/dotfiles (GitHub) · coding · 221 stars · scanned at commit 928c8b5
Investigate and safely reclaim disk space on this machine, especially on NixOS systems with heavy Nix, Rust/Haskell, Docker, and Podman usage. Use when disk is low, builds fail with no-space errors, /nix/store appears unexpectedly large, or the user asks for easy cleanup wins without deleting important data.
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README. Expected for a coding skill.
Found in 19 places.
Show 16 more
- dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 76
uv cache clean - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 120
python /srv/dotfiles/dotfiles/agents/skills/disk-space-cleanup/scripts/rust_target_dirs.py list --min-size 500M --limit 30 - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 126
python /srv/dotfiles/dotfiles/agents/skills/disk-space-cleanup/scripts/rust_target_dirs.py list --min-size 1G --older-than 14 --output tsv - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 132
nix run nixpkgs#cargo-sweep -- sweep -d -r -t 30 <workspace-root> - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 141
python /srv/dotfiles/dotfiles/agents/skills/disk-space-cleanup/scripts/rust_target_dirs.py delete /abs/path/to/target - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 178
safe_ncdu /home/imalison - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 198
timeout 30s du -xh --max-depth=1 "$HOME/.cache" 2>/dev/null | sort -h - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 330
- `bc` isn't on PATH, and zsh mangles multi-field `printf` loops. Run survey loops under `bash -c` with integer `du -m`. - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 407
- zsh does not word-split `$var`, so `nix-env --delete-generations $del` got one argument and failed with `invalid generation number '1186 1187 ...'`. Run it un - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 416
nix path-info -Sh /nix/store/* 2>/dev/null | sort -h | tail -n 50 - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 425
nix path-info -Sh /nix/store/* 2>/dev/null | rg '(ghc|rustc|rust-std|cargo)' - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 432
/srv/dotfiles/dotfiles/lib/functions/find_store_path_gc_roots /nix/store/<store-path> - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 449
safe_ncdu /nix/store - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 456
nix-store --gc --print-dead > /tmp/nix-dead-paths.txt - dotfiles/agents/skills/disk-space-cleanup/SKILL.md, line 466
find ~/projects -type l -path '*/.direnv/flake-profile-*' | wc -l - dotfiles/agents/skills/disk-space-cleanup/scripts/rust_target_dirs.py, line 82
result = subprocess.run(
Downloads and installs other software
This is disclosed by the author in the skill's SKILL.md or README.
Found in 3 places.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'disk-space-cleanup' ] || [ -L ~/.agents/skills/'disk-space-cleanup' ]; then echo 'A skill folder named disk-space-cleanup already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/colonelpanic8/dotfiles' "$d" && git -C "$d" checkout --quiet '928c8b560f5a5fe1ecebdb8c6d5b954189ef9c4d' -- 'dotfiles/agents/skills/disk-space-cleanup' && mkdir -p ~/.agents/skills && cp -R "$d"/'dotfiles/agents/skills/disk-space-cleanup' ~/.agents/skills/'disk-space-cleanup' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'disk-space-cleanup' ~/.claude/skills/'disk-space-cleanup' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for colonelpanic8/dotfiles shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/colonelpanic8/dotfiles/)
Score history
| Date | Version | Score |
|---|
| 2026-11-09 | 928c8b5 | 89 |
| 2026-11-07 | 84889c1 | 82 |