Wsl Disk Cleanup

Use when C: drive is full or low on Windows with WSL2. Reclaims space from bloated Ubuntu/Docker .vhdx files via fstrim + diskpart compact. Also cleans Notion/npm/Temp/Playwright caches and merged/old git worktrees with their node_modules. Triggers on "C: plein", "espace disque", "free disk space", "vhdx", "WSL takes too much space", "compact wsl".

10 starsTesting & QA

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add artguru-tech-team/claude-skills-public --skill wsl-disk-cleanup
Manual install
git clone --depth 1 https://github.com/artguru-tech-team/claude-skills-public.git /tmp/claude-skills-public
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills-public/wsl-disk-cleanup ~/.claude/skills/wsl-disk-cleanup

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# WSL Disk Cleanup Playbook

Validated 2026-05-02 on MELEKGHARBI-01: **2.97 GB → 143.11 GB free (+186 GB total)** in one session.

## When to use
- C: drive low / red bar in Explorer
- WSL Ubuntu / Docker `.vhdx` larger than 50 GB
- After heavy dev work with multiple worktrees + node_modules accumulating

## Mental model — the gotchas

1. **`.vhdx` files don't shrink automatically.** WSL allocates blocks but never returns them, even when you delete files inside Linux.
2. **`diskpart compact` alone does nothing on ext4.** Linux marks blocks as free but doesn't zero or trim them. Windows still sees the blocks as "used".
3. **You MUST `sudo fstrim -av` inside WSL first.** This tells the host's vhdx layer which blocks are sparse. Then compact actually works.
4. **`dd zerofill` is a foot-gun.** WSL Ubuntu shows ~1 TB free even when only 30 GB used (sparse vhdx). `dd` will try to write the full ~1 TB of zeros, crashing C: in the process. Always cap with `bs=1M count=N`. Prefer fstrim.
5. **`LxssManager` / `vmcompute` services lock the vhdx** even after `wsl --shutdown`. Stop them in admin before diskpart.
6. **Docker Desktop auto-restarts WSL.** Quit it from system tray before compacting.

## Order of operations

### Phase 1 — Diagnostic (read-only)
Read the full skill on GitHub

Details

Skill name
wsl-disk-cleanup
Path
wsl-disk-cleanup/SKILL.md
Repo updated
11 November 2026

FAQ

What does the Wsl Disk Cleanup skill do?

Use when C: drive is full or low on Windows with WSL2. Reclaims space from bloated Ubuntu/Docker .vhdx files via fstrim + diskpart compact. Also cleans Notion/npm/Temp/Playwright caches and merged/old git worktrees with their node_modules. Triggers on "C: plein", "espace disque", "free disk space", "vhdx", "WSL takes too much space", "compact wsl".

How do I install the Wsl Disk Cleanup skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add artguru-tech-team/claude-skills-public --skill wsl-disk-cleanup. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Wsl Disk Cleanup popular?

It lives in artguru-tech-team/claude-skills-public, which has 10 GitHub stars and 0 forks.

Related skills

Amplitude Measurement Plan

10

artguru-tech-team/claude-skills-public

Amplitude measurement plan for a B2B two-sided marketplace.

Other

Appels Offres

10

artguru-tech-team/claude-skills-public

Use when responding to French public procurement tenders (appels d'offres, marchés publics, MAPA, DCE). Triggers on AO analysis, mémoire technique drafting, DCE review, CRF pricing, security questionnaire, candidature preparation. Also use when evaluating Go/No-Go on a tender.

Software Development

Brand Builder

10

artguru-tech-team/claude-skills-public

Use when building a complete brand identity for a new or existing brand — brand strategy, voice document, moodboard, logo concepts, color palette, and full AI-ready brand kit. Triggers on "build my brand", "create brand identity", "brand guidelines", "brand kit", or when a project needs visual + copy foundations from scratch.

Frontend & Design

Quality Loop

9

sukirman1901/frontend-expert

Loop UI work until quality gates pass — judge/build, test, audit, fix, repeat. Use for “rapihin sampai bagus”, polish until audit passes, fix Critical/High design findings, or /polish. Do not use for one-shot “rapihin detail”, copy-only rewrites, or “rapikan kode”.

Testing & QA

Instagram Publish

10

artguru-tech-team/claude-skills-public

Use when publishing Instagram carousels from HTML files — covers export to PNG at 1080x1350px via Playwright and upload via Upload-Post API. Includes contrast check checklist before export.

Testing & QA

Testing

9

sukirman1901/frontend-expert

Test user-facing UI with TDD, component tests, a11y checks, and critical-path coverage. Use when writing or fixing UI tests, verifying loading/error/empty states, or when the user mentions test/TDD/coverage/regresi — including natural language, not only /test-ui.

Testing & QA

Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.