maintaining-windows-health

maintaining-windows-health is a skill for Claude Code from CodeAlive-AI/ai-driven-development. It costs 191 tokens per session (3,861 once invoked), scanned A, original, MIT.

A Windows 11 maintenance playbook for diagnosing low disk space, slow performance, crashes, and high memory or pagefile use. It also covers setting up health alerts and safely removing selected files or applications.

In plain words
What is it for?
Use it when a Windows PC is nearly full or slow, after unexpected restarts or crashes, or when setting up disk and memory monitoring. It also covers clean app removal and troubleshooting stopped alerts.
Why use it?
It helps identify what is filling the disk or stressing the computer before cleanup. Its workflow scans first and deletes only items the user has selected.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the ai-driven-development plugin — 24 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/codealive-ai/ai-driven-development/maintaining-windows-health
Any agent
npx skills add CodeAlive-AI/ai-driven-development --skill maintaining-windows-health
Clone the repo
git clone --depth 1 https://github.com/CodeAlive-AI/ai-driven-development

Made for: Claude Code.

Or install ai-driven-development, the plugin that ships this one along with the rest of its 24 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maintaining-windows-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/maintaining-windows-health.svg)](https://agentmods.dev/skills/codealive-ai/ai-driven-development/maintaining-windows-health)
Your own site
<a href="https://agentmods.dev/skills/codealive-ai/ai-driven-development/maintaining-windows-health"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/maintaining-windows-health.svg" alt="Measured on agentmods" height="20"></a>
Per session 191 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00191 $0.03861
Opus 5 $0.00096 $0.01930
Sonnet 5 $0.00038 $0.00772
Haiku 4.5 $0.00019 $0.00386

Measured 6d ago against content hash b962662c33a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

maintaining-windows-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (assets/apply-cleanup-selection.py, assets/Audit-WinHealth.ps1, assets/Install-WinHealthCheck.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/maintaining-windows-health/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Maintaining Windows 11 Health

Recovery and prevention playbook for Windows 11 disk and memory crises. A Windows port of the maintaining-macos-health skill: same three layers (triage → tiered recovery → automation/alerting) and the same safety invariant — scan → JSON → user picks in a UI → apply deletes only what was picked — but with Windows-native tooling and Windows-specific "never touch" rules. The same playbook works for routine cleanup or first-time setup on a new machine.

Table of contents

When to use

Trigger on any of:

  • Disk free < 20 % or user complains about being out of space
  • BSOD / unexpected reboot / Kernel-Power 41 / WHEA error / a new crash dump in C:\Windows\Minidump
  • "PC is slow", commit pressure high (% Committed Bytes In Use > 85), pagefile growing
  • User wants to set up monitoring/alerting from scratch
  • Migration to a new Windows PC → restore the same alerter
  • General "clean my PC" / "audit storage" / "free space" requests

Skill layout

File Use for
references/triage.md First 5 minutes — which signal fired (disk / commit-memory / BSOD-crash / "feels slow"), read-only snapshot
references/cleanup-tiers.md Tiered cleanup playbook (10 tiers, low-risk → discuss-first), copy-paste-safe PowerShell blocks
references/never-touch.md Categories that must not be deleted even elevated (hard-protected prefixes synced with the validator + Windows-only dangers)
references/native-tools.md The safety floor: native Microsoft tooling, project-artifact purge marker→target map, the apply-script validator rules, third-party caveats
references/alerting.md Full alerter design: 3 CRITICAL-only triggers, hysteresis, calibration, Task Scheduler interactive session, BurntToast + ntfy, S0ix/battery
assets/win-health-check.ps1 Production PowerShell monitor (PS 5.1 compatible)
assets/win-health-check.config.ps1 Default thresholds
assets/Install-WinHealthCheck.ps1 Registers the scheduled task in the interactive user session; -Test / -Uninstall
assets/Audit-WinHealth.ps1 Read-only preflight inventory (drives, Component Store, shadow storage, profiles, drivers, CFA, KFM, BitLocker, reparse points, dumps)
assets/render-cleanup-plan.py Interactive HTML cleanup-plan UI. Renders categorised checkboxes from a JSON of scan findings, serves on 127.0.0.1:18347, opens the browser, waits for the user's selection, writes it to %TEMP%\cleanup-selection-<ts>.json. Used by Workflow A. Requires Python 3.
assets/apply-cleanup-selection.py The only sanctioned way to apply a cleanup selection. Reads selected_items from a selection JSON and executes each item's command via PowerShell. Windows-rewritten validator (NTFS canonicalization, deny/allow longest-prefix, provider/UNC/ADS/8.3/chaining refusal, two-tier wrappers) + operations log. Supports --dry-run.
assets/test_validate_command.py Adversarial unit tests for the validator — the safety-core gate. Runs on any OS.

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 147 lines · 191 tokens per session scan A b962662c33a4

Subscribe to this mod's changes

maintaining-windows-health is a skill published in the GitHub repository CodeAlive-AI/ai-driven-development (132 stars, last pushed 2d ago), licensed MIT. It adds 191 tokens to every session and 3,861 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.