Rapidly find and reclaim disk storage by identifying build artifacts, git garbage, temp files, and other space hogs. Use when disk is full or running low on space.
/plugin marketplace add plurigrid/asi/plugin install asi-skills@asi-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Rapid parallel investigation and cleanup of disk storage.
# Top-level overview
du -sh /path/*/ 2>/dev/null | sort -hr | head -20
# Drill into specific directory
du -sh /path/subdir/*/ 2>/dev/null | sort -hr | head -15
target/)cargo build)# Find all Rust target directories
find ~ -type d -name "target" -exec du -sh {} \; 2>/dev/null | sort -hr | head -20
# Clean specific project
rm -rf /path/to/project/target
# Or use cargo
cd /path/to/project && cargo clean
.git/objects/pack/tmp_pack_*# Check for git garbage
git count-objects -vH
# Look for "size-garbage" line
# Remove stale pack files
rm -f .git/objects/pack/tmp_pack_*
# Verify cleanup
git count-objects -vH
node_modules/ in JS projects# Find all node_modules
find ~ -type d -name "node_modules" -prune -exec du -sh {} \; 2>/dev/null | sort -hr
# Remove (can reinstall with npm install)
rm -rf /path/to/project/node_modules
.venv/, venv/, env/find ~ -type d \( -name ".venv" -o -name "venv" -o -name "env" \) -exec du -sh {} \; 2>/dev/null | sort -hr
.tmp/, .cache/, __pycache__/du on directories# Check hidden dirs specifically
du -sh /path/.* 2>/dev/null | sort -hr | head -10
~/.julia/artifacts/, ~/.julia/compiled/du -sh ~/.julia/*/ 2>/dev/null | sort -hr
docker system df
docker system prune -a # Remove all unused images/containers
brew cleanup --dry-run # Preview
brew cleanup # Actually clean
du -sh /path/*/ | sort -hr | head -20du -sh /path/.* | sort -hrgit count-objects -vH in any repotarget/, node_modules/, .tmp/, __pycache__/, build/.git/ (might have garbage, might be real history).git/objects/pack/*.pack (real packs)cargo build, npm install, pip install createsRun multiple du commands simultaneously for faster discovery:
# In parallel (use separate terminal or background)
du -sh ~/project1/*/ | sort -hr &
du -sh ~/project2/*/ | sort -hr &
wait