vm-cleanup
Installation
SKILL.md
VM / Session Disk Cleanup
Recover from or prevent disk-full situations in Claude's working environment.
Context
Both Cowork session VMs and Claude Code sandboxes have limited disk space. Long sessions with package installs, builds, and cached data can fill the disk completely. When full, ALL Bash commands fail with ENOSPC errors because the shell can't create temp files — a deadlock where you can't even diagnose the problem.
Cleanup Strategy
Run cleanups in phases — smallest operations first so they succeed even when disk is critically low.
Phase 1: Emergency (needs almost zero free space)
Run these first when disk is completely full or nearly full: