win11-storage-governance-kit README

The project's README from github.com/Nongfsq/win11-storage-governance-kit. As one markdown file: README.md.

Windows 11 Storage Governance Kit

中文文档 | English

A Codex Skills kit for fixing Windows 11 system-drive bloat.

This project turns a practical Windows 11 C-drive cleanup workflow into a reusable agent skill and reference runbook. The core idea is not simply to delete files. It is to govern the system drive: classify what is safe to clean, move large regenerable caches away from C:, configure package managers and developer tools to use stable non-system locations, and keep Windows-managed directories under official maintenance paths.

What Problem It Solves

Windows 11 machines often accumulate tens or hundreds of gigabytes under:

Most cleanup guides treat these as isolated junk folders. That is not enough. The same bloat returns unless the machine has a storage policy.

This kit provides that policy.

Core Principles

Repository Layout

.
├── docs/
│   ├── windows-11-c-drive-governance.md
│   ├── compatibility.md
│   ├── trigger-tuning.md
│   └── ...
├── examples/
│   ├── dry-runs.md
│   ├── usage-benchmark.md
│   └── replay-log-template.md
├── scripts/
│   ├── install.ps1
│   └── validate-pack.py
├── skills/
│   └── win11-storage-governance/
│       ├── SKILL.md
│       ├── agents/openai.yaml
│       └── references/
├── README.md
├── README.zh-CN.md
├── skill-pack.json
└── VERSION

The Skill

Skill name:

win11-storage-governance

Use it when the user asks about:

The skill is intentionally concise. Detailed logic lives in:

Install the Codex Skill

From the repository root:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1

Install to a custom skills root:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1 -DestinationRoot "C:\Users\<User>\.codex\skills"

Overwrite an existing installed copy:

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Force

Example Prompt

Use $win11-storage-governance to create a safe Windows 11 C-drive cleanup and storage migration plan for a developer workstation. Do not inspect the local machine.

For a local audit, be explicit:

Use $win11-storage-governance to inspect this Windows 11 machine and report what is safe to clean. Do not delete anything.

Validation

Validate the pack:

python .\scripts\validate-pack.py .

Validate the skill with Codex's system skill validator when available:

python C:\Users\<User>\.codex\skills\.system\skill-creator\scripts\quick_validate.py .\skills\win11-storage-governance

If your Python environment does not have PyYAML, run the validator through your preferred isolated tool runner, for example:

uvx --with pyyaml python C:\Users\<User>\.codex\skills\.system\skill-creator\scripts\quick_validate.py .\skills\win11-storage-governance

Safety Notice

This project is conservative by design. It will not recommend manual deletion of Windows servicing stores or installer caches. In particular:

For high-risk areas, use official tools, vendor uninstallers, repair utilities, quarantine workflows, and rollback plans.

License

MIT License.

win11-storage-governance-kit (Nongfsq/win11-storage-governance-kit)

Searching Database…

这是什么?一个 Codex Skills 工具包,把一套实用的 Windows 11 C 盘清理工作流变成可复用的 agent 技能和参考手册,用于治理存储空间(而不只是删文件)。
这是我要运行的应用,还是我的 coding agent 遵循的技能?它是一个 Codex Skill:一套打包好的指令和参考文档(安全模型、操作手册、设备画像模板),由 Codex 加载并遵循,不是你自己启动的程序。
它只能配合 Codex 用,还是任意 coding agent 都行?它是专门作为 Codex Skill 构建的,而且这个包可以用 Codex 自带的系统技能校验器检查;如果你的 Python 缺少 PyYAML,就改用隔离的工具运行器来跑校验器。
它会替我删除 WinSxS 或 Windows Installer 缓存吗?不会,它拒绝这么做:它不会建议手动删除 C:\Windows\Installer 或 C:\Windows\WinSxS,不会移动 C:\Program Files\WindowsApps,也不会对整个 AppData、用户配置文件或 ProgramData 做 junction。
它会自动扫描我的文件和设置吗?不会。默认情况下,该技能只做基于模板的规划,不会检查你的本地文件夹、注册表、环境变量、日志或软件包清单,除非你明确要求。
它具体能帮你把哪些东西挪出 C 盘?它覆盖 winget、Scoop、npm、pip、NuGet、Rust、Playwright、Puppeteer、Hugging Face 和 Torch 的缓存,还有 NVIDIA/DirectX 着色器缓存、游戏启动器、AI 模型和开发者 SDK。
这个工具包的清理核心理念是什么?先观察再删除,按风险给文件夹分类,对 WinSxS 和 Windows Update 这类系统管理的存储优先使用官方工具,对会再生的缓存选择迁移,而不是只删一次。
我能用它管理一大批 Windows 11 机器吗?可以,它的设计目标就是借助仓库里自带的设备画像模板,为一台设备或一批同类设备制定安全的清理计划。
技能包是怎么校验的?仓库自带一个包校验器,在装有 PyYAML 的 Python(或隔离工具运行器)可用时,也可以对照 Codex 自带的系统技能校验器来检查。
Creator
Nongfsq
Size
<0.1 MB
Stars
192
Updated
CommitOct 09
Age
4mo
Commits · 90 Days