Windows c disk cleaner
Windows C/E disk cleanup and disk-space governance for requests such as C盘满了, C盘清理, Windows disk cleanup, C/E drive cleanup, large files, duplicate files, Downloads, installers, repair backups, or a deletion manifest. Audit, explain, and clean using a recovery-cost-first rule: recommend delete, keep, or move, then execute only after confirmation of exact paths.From its SKILL.md
npx -y skills add swei99386-alt/windows-c-disk-cleanerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.4 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it
Windows Disk Governor
Use this skill to make a decision, not to turn uncertainty into a burden for the user.
Core rule: recovery cost first
For every candidate, compare two costs:
deletion cost = real time/money/data loss needed to get it back
retention cost = occupied space + future management cost
Delete when deletion cost is low and the item is not a live dependency. “Cannot prove 100% certainty” is not a reason to label an ordinary installer high risk.
The agent owns the default recommendation. Ask the user only when the loss is genuinely irreversible or the scope changes materially.
Decision classes
Use one of these explicit conclusions. Do not use a vague 先审阅 when evidence supports a stronger conclusion.
| Class | Default conclusion | Evidence required |
|---|---|---|
delete_default | Recommend deletion | Public installer/downloader/APK, incomplete download, or disposable cache; not inside a live app installation or active update path |
dedupe_keep_one | Delete all but one | SHA-256 identical content; state which exact copy remains |
delete_verified_backup | Recommend deletion | Named backup/repair snapshot is a duplicate of an independently verified live location; live app/path is healthy |
move_or_archive | Keep one copy, move from C: | Personal data is recoverable but expensive to recreate, such as course material or historical project assets |
app_or_official | Use app/Windows cleanup flow | App data, Windows update data, Docker/WSL data, or an installed program |
keep | Keep | Unique personal data or active runtime dependency |
Default examples
- Delete by default: downloaded
.exe,.msi,.apk,.downloading,.part,.crdownload; duplicate installers; completed copies with identical SHA-256. - Keep one, delete the rest: identical ZIP/RAR/DOCX/PDF/photo/video files after hash verification.
- Delete a repair backup: e.g.
App.pre-repair-*only after verifying the normal app data directory exists, is distinct, and the app is currently healthy. Explain that the only lost capability is rollback to that old broken/previous state. - Keep or archive: source video, user-created documents, project source, chat attachments, unique course files.
- Never hand-delete: WSL
.vhdx, Docker data disks, Claude/Codex runtime stores, Windows core files, or app files underProgram Files. Use the app's uninstall/migration flow instead.
Required forensic checks
Before recommending deletion, inspect the exact path, size, type, last write, and relationship to a replacement or live consumer.
For a claimed duplicate or backup, verify the claim, not just the name:
- Hash files for identical-content claims.
- For a repair backup, compare its top-level structure and size to the active path; check the active app process/path where possible.
- For a moved Desktop/Documents folder, query the actual Windows known-folder path and junction target. A directory named “Desktop-某人” is not automatically the active Windows Desktop.
- For a migrated copy, compare relative file paths and sizes. Do not delete it solely because another folder has a similar name.
- Re-check immediately before execution; temporary Office files or a changed file set invalidate a prior “complete duplicate” conclusion.
- Mark the live Desktop, current project roots, and the chosen retained copy as
reference paths: compare against them, but never let an automatic deletion action modify them.
Workflow
- Snapshot free space on every fixed disk; inspect C: first when C: is under pressure.
- Use TreeSize as a heat map if available; confirm important paths locally. Run
scripts/audit_windows_disk.ps1 -EmitJsonfor a structured audit andscripts/find_duplicate_downloads.ps1 -EmitJsonfor downloads/duplicates. - Classify each large candidate with a default conclusion from the table above.
- Produce a short “明确建议删除清单” before asking for execution. Each row must include: exact path/scope, reclaim estimate, why it can be recovered, what remains, and deletion impact.
- Put only true judgment calls in a separate small section: unique data, unclear ownership, or unknown runtime use. Do not make the user arbitrate ordinary installers.
- Execute only after current-thread confirmation of the exact candidate list. Re-validate the exact paths just before deleting.
- Record before/after free space and report:
已删/没删/还能删/为什么跳过.
Tool roles
- Use TreeSize/WizTree-style analysis only to locate hotspots quickly.
- Use SHA-256 (or a duplicate finder such as Czkawka) to prove exact duplicates and protect the retained reference path.
- Let this skill make the recovery-cost decision and issue the deletion manifest; a scanner must not become a blind deleter.
- Use Windows Storage Sense only for system-drive temporary files, Recycle Bin rules, and cloud offloading. Do not configure it to age-delete Downloads: it cannot distinguish a disposable installer from a unique user file.
Execution boundaries
- A request such as “删了” applies only to the immediately listed, exact scope. If a new path appears, ask again.
- Prefer grouping public installers by one verified Downloads folder; never use a broad drive-wide extension deletion.
- A failed or interrupted delete can still have completed. After interruption, stop further actions and read back the exact target state before claiming success or failure.
- Do not close the user's apps, take over mouse/keyboard, uninstall software, or delete browser/user documents unless the user explicitly requested that scope.
- If a deletion is permanent, say so before execution. Do not claim it is recoverable from the Recycle Bin unless it actually is.
Hard boundaries
Never hand-delete or recommend hand-deleting:
C:\Windows\WinSxS,C:\Windows\System32, unknown system files,pagefile.sys, orswapfile.sys- application directories in
Program Files/Program Files (x86) - WSL virtual disks, Docker data virtual disks, AI-assistant runtime virtual disks, messaging app stores, or user-profile directories as a whole
Use official/app flows for C:\Windows\SoftwareDistribution, C:\Windows.old, $WINDOWS.~BT, WPS/WeChat cleanup, Docker uninstall, and WSL export/unregister.
Report language
Use plain Simplified Chinese. Lead with the answer:
建议删:...,可释放约 ...;删后 ...。建议留:...,因为 ...。建议搬走:...,因为 ...。
Avoid “高风险” as a substitute for analysis. Risk means irreversible loss or live-system breakage, not merely that the agent has not looked yet.
Scripts
- Audit:
scripts/audit_windows_disk.ps1 -EmitJson - Find duplicate downloads:
scripts/find_duplicate_downloads.ps1 -EmitJson - Strict cache cleanup:
scripts/cleanup_low_risk.ps1(execute only with the script's explicit execution switch) - Closing record:
scripts/write_closing_report.ps1 -EmitJson
Keep JSON field names stable for Codex/Claude Code reuse; all user-facing descriptions must be Chinese.
What ships with it: 30 files
121.8 KB alongside SKILL.md, 13 of them executable
agents/
- openai.yaml608 B
config/
- auto-clean-policy.json2.4 KB
docs/
- copyable-prompts.md2.2 KB
- example-output.md296 B
- real-cleanup-case.md1.7 KB
- superpowers/plans/2026-07-13-safe-execution-upgrade.md3.9 KB
- superpowers/plans/2026-07-23-public-and-agent-discovery.md5.2 KB
- superpowers/specs/2026-07-13-safe-execution-upgrade-design.md2.7 KB
- superpowers/specs/2026-07-23-public-and-agent-discovery-design.md2.1 KB
references/
- claude-code.md3.3 KB
- hotspots.md5.0 KB
scripts/
- audit_windows_disk.ps1runs17.8 KB
- cleanup_confirmed_safe.ps1runs10.3 KB
- cleanup_low_risk.ps1runs10.1 KB
- find_duplicate_downloads.ps1runs5.9 KB
- lib/PolicyHelpers.ps1runs2.4 KB
- read_treesize_input.ps1runs2.4 KB
- run_disk_governor.ps1runs2.5 KB
- run_from_treesize.ps1runs5.1 KB
- start_treesize_scan.ps1runs921 B
- write_closing_report.ps1runs13.3 KB
tests/
- Test-Repository.ps1runs5.6 KB
- CHANGELOG.md969 B
- CONTRIBUTING.md265 B
- install-online.ps1runs2.0 KB
- install.ps1runs3.3 KB
- LICENSE1.0 KB
- README_EN.md3.8 KB
- README.md4.3 KB
- SECURITY.md354 B