/optimize:storagefrom optimize
Frees up disk space on Windows by cleaning temp files, caches, WinSxS, and dev caches. Use when drives are full or you need to recover space.
Ships in optimize. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyzes what's using space on your drives and recovers it safely, without touching services, startup items, or system configuration.
Run scripts/02_benchmark.ps1 -Label "pre" as Administrator.
Run scripts/01_diagnose.ps1 as Administrator.
Focus on these fields from the output:
C_Free_GB — current free spaceCleanupPotential_MB — recoverable from known safe locationsTopCleanupItems — what's biggestDevCaches_MB — dev caches if presenttop_folders_c.json — largest folders on C: for contextPresent a table like:
CLEANUP CANDIDATES
%TEMP% X.X GB — safe to delete
C:\Windows\Temp X.X GB — safe to delete
WinSxS (DISM cleanup) ~X GB — safe (keeps rollback for current patch)
Windows Update cache X.X GB — safe to delete
C:\AMD / C:\NVIDIA X.X GB — driver installer leftovers
Chrome cache X.X GB — safe to delete
npm cache X.X GB — safe (recreates automatically)
pip cache X.X GB — safe (recreates automatically)
...
TOTAL POTENTIAL: ~X GB
Ask if there's anything they want to skip.
Stop services that lock files before cleaning:
Stop-Service wuauserv, BITS, WSearch, DiagTrack -Force
Clean in this order:
Safe, always clean:
%TEMP% (user temp)C:\Windows\TempC:\tmp (if exists)C:\Windows\SoftwareDistribution\DownloadC:\AMD, C:\NVIDIA, C:\Intel (driver leftovers, if they exist)%LOCALAPPDATA%\Microsoft\Windows\WER\ReportArchive + ReportQueuetaskkill /f /im chrome.exe etc.)%LOCALAPPDATA%\Spotify\Storage)Dev caches (only if dev tools are present on this machine):
npm cache clean --force or delete %APPDATA%\npm-cachepnpm store prunepip cache purge or delete %LOCALAPPDATA%\pip\Cache%USERPROFILE%\.cargo\registry\cache (src/ stays)%USERPROFILE%\.gradle\caches
Ask before cleaning dev caches — confirm the user has dev tools installed.DISM WinSxS cleanup (takes 10-30 min, significant space):
DISM /Online /Cleanup-Image /StartComponentCleanup
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
/ResetBase removes rollback for already-installed updates. Safe unless you
plan to uninstall recent Windows updates. Ask before running.
Disk Cleanup (cleanmgr):
Set StateFlags0099 = 2 for all categories, then run cleanmgr /sagerun:99.
⚠️ Monitor it — if CPU usage freezes at an exact value for 10+ minutes,
kill the cleanmgr process. The space it found is already counted.
Delivery Optimization cache:
Delete-DeliveryOptimizationCache -Force
Restart services after:
Start-Service wuauserv, BITS, WSearch
Start-Process explorer.exe
If after cleanup space is still tight, look at installed_software.json from the
diagnosis and top_folders_c.json for large items to discuss with the user:
docker system prune, wsl --unregisterNever uninstall anything without explicit user confirmation.
Run scripts/02_benchmark.ps1 -Label "post" — prints the delta automatically.
scripts/01_diagnose.ps1scripts/02_benchmark.ps1What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/driversAudit Windows drivers, hardware health, and BIOS/firmware status. Use when the user wants to check if their drivers are up to date, has Device Manager errors, suspects hardware issues, or wants to know if their RAM is running at rated speed. Trigger for: "check my drivers", "Device Manager errors", "RAM not running at full speed", "is my GPU driver outdated", "hardware issues", "yellow triangles in Device Manager", "XMP not working", "update drivers".
/memoryReduce Windows RAM usage at idle by auditing and cleaning up startup programs and unnecessary background services. Use when the user has high memory usage with nothing open, slow performance due to RAM pressure, or wants to know what's eating their RAM. Trigger for: "too much RAM used", "15GB used at idle", "RAM always full", "what's using my memory", "reduce background processes", "too many things running".
/npx claudepluginhub julianprincipe/windows-pc-optimizer --plugin optimizeOther plugins' skills for the same job