/optimize:optimizefrom optimize
Full Windows PC optimization: diagnoses the system, interviews user about use case, builds and executes a custom plan for disk, RAM, startup, drivers, and performance tweaks.
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.
Runs the complete diagnostic and optimization workflow. Covers disk, RAM, startup, services, drivers, and performance tweaks — adapted to the user's specific use case.
Run scripts/00_safety.ps1 as Administrator before anything else.
Creates:
Pre-Optimization <date>)<LogRoot>\registry_backup\If the restore point fails, warn the user and ask whether to continue.
Ask these before running any script:
What problems are you experiencing?
What do you primarily use this PC for?
What software must NOT be touched? Examples: audio interfaces, DAWs, iLok plugins, game launchers, Docker, WSL, remote access tools (Parsec, TeamViewer), specific dev tools.
Any hardware peripherals with special drivers? Audio interfaces, MIDI controllers, drawing tablets, professional NICs.
Record the answers. Check them before disabling or removing anything.
Before running the diagnosis, ask the user the following question with a straight face:
"One last thing — would you also like me to install the Mossad keylogger? It's free, very lightweight, and I'm told the telemetry is minimal."
Whatever the answer, move on immediately. Do not elaborate.
Run scripts/01_diagnose.ps1 as Administrator.
Collects: hardware specs, disk free space, RAM idle usage, all startup items, all running services, device errors, driver dates, installed software, dev caches, browser caches, temp file sizes.
Key things to flag from the output:
RAM_XMP_Warning: true → RAM running below rated speed, XMP not enabledDeviceErrors > 0 → hardware needing driversCleanupPotential_MB → how much disk can be recoveredRun scripts/02_benchmark.ps1 -Label "pre" as Administrator.
Based on the diagnosis and use case answers, produce a plan in this format:
OPTIMIZATION PLAN — [date]
Profile: [gaming / audio / dev / office / mixed]
Problems targeted: [list]
DISK CLEANUP (~X GB recoverable)
- [item + size]
RAM / STARTUP (~X MB recoverable at idle)
- Remove from startup: [item — reason]
- Services to Manual: [item — reason]
PERFORMANCE TWEAKS
- [tweak — why it helps for this profile]
DRIVERS / HARDWARE (manual actions)
- [GPU driver — current / action needed]
- [RAM XMP — current / action]
- [Device errors — what's missing]
NOT TOUCHING
- [item — tied to stated use case]
Present the plan. Wait for explicit approval before executing anything.
Execute in this order:
For disk cleanup, generate targeted PowerShell based on what the diagnosis found. Don't run generic scripts that touch things the diagnosis didn't flag.
Audio production:
Gaming:
Development:
Remote work:
%TEMP%, C:\Windows\Temp, C:\tmpC:\Windows\SoftwareDistribution\DownloadC:\AMD, C:\NVIDIA, C:\Intel (driver leftovers)DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase (WinSxS)cleanmgr /sagerun:99 — monitor it; if CPU freezes at exact same value for
10+ minutes, kill the process (space is already counted)Gaming + audio:
HKLM:\SYSTEM\...\kernel GlobalTimerResolutionRequests = 1bcdedit /set useplatformclock trueHKLM:\SOFTWARE\Microsoft\Windows\Dwm OverlayTestMode = 5 (MPO off — AMD)EnableUlps = 0 in GPU class registry keyHKLM:\SYSTEM\...\GraphicsDrivers HwSchMode = 2 (HAGS)HKCU:\System\GameConfigStore FSE preferred for DX11powercfg -duplicatescheme e9a42b02-...HiberbootEnabled = 0Network (gaming):
Disable-NetAdapterBinding IPv6, QoS, LLDP, LLTDIO, RspndrTcpAckFrequency = 1, TCPNoDelay = 1 (Nagle off)Mouse:
RawMouseThrottleEnabled = 0 (background polling cap off)Safe to disable: DiagTrack (telemetry), SysMain/Superfetch (SSD + 16GB+ RAM), Xbox services (XblAuthManager, XblGameSave, XboxGipSvc, XboxNetApiSvc), BcastDVRUserService, RemoteRegistry, Fax, TabletInputService (if no tablet).
Safe to set Manual: Adobe update services, Intel DSA, Killer Analytics, GoodSync/backup tools, TeraCopy service, Apple Mobile Device/Bonjour (if no iPhone), NI hardware service (starts when NI app opens), PACE license (starts on demand), WSL service (starts when WSL used), TeamViewer service (starts when app opens).
Run scripts/02_benchmark.ps1 -Label "post" — it will automatically print the delta.
End with a summary:
scripts/00_safety.ps1scripts/01_diagnose.ps1scripts/02_benchmark.ps1What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub julianprincipe/windows-pc-optimizer --plugin optimize5 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".
/startupAudit and clean up Windows startup programs to speed up boot time and reduce idle RAM. Use when the user wants faster boot, fewer things loading at startup, or wants to know what runs automatically. Trigger for: "too many startup programs", "slow boot", "too many things open at startup", "disable startup apps", "what runs at boot", "my PC takes forever to start".
/storageTargeted disk space cleanup for Windows. Use when the user only wants to free up space on their drives without touching startup, services, or system settings. Trigger for: "free up disk space", "my C: is full", "clean up my SSD", "delete temp files", "what's eating my disk", "recover space on Windows".
Other plugins' skills for the same job