From optimize
Full Windows PC optimization: diagnoses the system, interviews the user about their use case, builds a custom plan, and executes it with approval. Use for broad optimization requests like "my PC is slow", "optimize my Windows", "my SSD is full and RAM is high", or when the user wants a complete tune-up. For targeted fixes, sub-commands exist: /optimize:storage, /optimize:memory, /optimize:startup, /optimize:drivers.
How this skill is triggered — by the user, by Claude, or both
Slash command
/optimize:optimizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Runs the complete diagnostic and optimization workflow. Covers disk, RAM, startup,
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.ps1npx claudepluginhub julianprincipe/windows-pc-optimizer --plugin optimizeWindows 11 disk cleanup and health playbook using native tooling (Storage Sense, DISM, cleanmgr) with a drift-protected HTML UI and Task Scheduler alerting. For full/slow PCs, BSODs, or commit-memory pressure.
Diagnoses and fixes Windows workstation issues: slow boot, failing drives, BSOD crashes, startup bloat, and event log forensics.
Runs Windows 11 diagnostics via PowerShell for crashes, freezes, disk/memory/hardware issues, events, stability, and performance bottlenecks.