vm-cleanup

Reclaim disk space by removing caches, build artifacts, and temporary files.

8|1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/MSApps-Mobile/claude-plugins --skill vm-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vm-cleanup
Source: https://github.com/MSApps-Mobile/claude-plugins/tree/main/plugins/vm-disk-cleanup/skills/vm-cleanup
Command: npx skills add https://github.com/MSApps-Mobile/claude-plugins --skill vm-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reclaims disk space and mitigates disk-full errors in Claude environments (Cowork session VM and Claude Code sandboxes) by removing unnecessary caches, temporary files, and rebuild artifacts.

Core Features & Use Cases

  • Phase-driven cleanup: Emergency, medium, and heavy cleanup phases guide space recovery with safe, incremental actions.
  • Cross-environment applicability: Works for Cowork VM and Claude Code sessions, handling npm/pip caches and build artifacts to stabilize workflows.
  • Use Case: When a long session runs npm install or pip install and disk space runs low, run the cleanup to restore responsiveness without risking user data.

Quick Start

Run vm-cleanup to reclaim disk space in your Claude environment by executing the emergency, medium, and heavy cleanup phases as needed.

Frequently Asked Questions about vm-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I free disk space in a Claude VM when npm install or pip install fails?

To free disk space in a Claude VM, you can run a phased cleanup process that targets npm and pip caches, build artifacts, and temporary files. It applies safe, incremental deletion steps to recover space without risking user data.

What is the safest way to clear npm and pip caches in Claude Code sessions?

The safest way to clear npm and pip caches involves using explicit deletion targets rather than broad removals. This phased cleanup approach removes unnecessary temporary files and build artifacts while reporting before and after disk space metrics.

Does vm-cleanup work across both Cowork VM and Claude Code environments?

Yes, disk cleanup applies across both Cowork VM and Claude Code sessions. It remediates disk-full conditions by reclaiming space from caches and build artifacts to stabilize workflows in either environment.

What should I do if disk space recovery does not resolve the disk-full error?

If space recovery does not fully resolve the disk-full error, the cleanup process provides fallback recommendations to restart your environment. This ensures you can restore responsiveness when standard cache deletion is insufficient.

How does phased disk cleanup manage space recovery differently from manual deletion?

Phased disk cleanup manages space recovery through emergency, medium, and heavy steps, guiding safe incremental actions. Unlike manual deletion, it uses explicit targets for caches and artifacts, preventing accidental data loss while reporting before and after space.