DB maintaining-windows-health
Hands-on playbook for Windows 11 disk cleanup, dev-machine optimization, and proactive health alerting. Use when the PC is full or slow, when a BSOD / Kernel-Power 41 / crash dump / commit-memory pressure happened, when the user asks to free disk space, audit storage, set up disk/memory alerts, or restore the same monitoring on a new PC. Built around native Microsoft-supported tooling (Storage Sense, cleanmgr, DISM, pnputil, vssadmin, wevtutil, powercfg) as the safety floor, a drift-protected HTML cleanup UI, and a Task Scheduler + BurntToast alerter. Covers dev machines with heavy AI/Docker/WSL workloads. Not for general Windows support, hardware diagnostics, GPU/driver troubleshooting, antivirus/malware removal, Windows Update repair, networking, or app-specific performance problems unrelated to disk or memory pressure.
Hands-on playbook for Windows 11 disk cleanup, dev-machine optimization, and proactive health alerting.
As a process B 66/100 · Nearly there — weak spots: result and completion, inputs and preconditions, running it twice
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 8
-
high Dangerous commands
cmd-persistenceassets/Install-WinHealthCheck.ps1:144Persistence mechanism (cron / launchd / scheduled task / autorun registry)Register-ScheduledTask -TaskName $TaskName -Action $action `
Medium and low: 7
-
medium Dangerous commands
cmd-execpolicy-bypassassets/Install-WinHealthCheck.ps1:86Runs PowerShell with execution policy bypassed& powershell.exe -NoProfile -ExecutionPolicy Bypass -File $ScriptDst
-
medium Dangerous commands
cmd-eval-dynamicassets/render-cleanup-plan.py:1262Dynamic code execution from decoded/untrusted inputos.system(f"open '{url}'") -
medium Exfiltration
intent-browser-credential-storereferences/cleanup-tiers.md:85Accesses a browser credential / cookie store (documentation of a security skill)# Cache-family subfolders only — NEVER IndexedDB / Local Storage / Cookies / "User Data\Default" wholesale.
security skill -
low Dangerous commands
cmd-execpolicy-bypassassets/Install-WinHealthCheck.ps1:126Runs PowerShell with execution policy bypassed (detector / deny-list definition; string literal in code, not executed)-Argument "-NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$ScriptDst`""
detectorcode literal -
low Dangerous commands
cmd-execpolicy-bypassreferences/alerting.md:120Runs PowerShell with execution policy bypassed (documentation of a security skill)& powershell.exe -NoProfile -ExecutionPolicy Bypass -File (Join-Path $env:LOCALAPPDATA 'win-health\win-…ps1')
security skill -
low Risky intent
intent-offensive-securityreferences/never-touch.md:137Offensive-security / dual-use content (legitimate for authorised testing; review intended use)3. **Controlled Folder Access (ransomware protection).** If on, deletes in Documents/Pictures/Desktop fail with Access Denied **from Defender, not from permissions**. Distinguish a CFA block from a re
A further 1 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 14. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 66/100
- 0Result and completion. Does not say what the result is
- 30Inputs and preconditions. Does not say what the process needs to start
- 30Running it twice. 32 mutating operations with no state check
- 60Tools and files. Uses tools (bash, web, python) that frontmatter does not declare
- 85Steps. 60 steps, 1 vague phrases
- 100When it triggers. States when to use and when not to
- 100Failures and branches. 1 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 3792 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +3Description length 833: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Description says when NOT to use the skill
- +4Structure: 13 headings
- +3Step-by-step instructions: 60 items
- +4Has examples (3 code blocks)
- +4Reference files are cited in the instructions (5 of 5)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 89.