The project's README from github.com/Nongfsq/win11-storage-governance-kit. As one markdown file: README.md.
中文文档 | 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.
Windows 11 machines often accumulate tens or hundreds of gigabytes under:
%TEMP%, C:\Windows\Temp, update caches, and delivery optimization data.AppData\Local and AppData\Roaming.C:\Windows\Installer, WinSxS, WindowsApps, and other system-managed stores.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.
C:\Windows\Installer, C:\Windows\WinSxS, C:\Program Files\WindowsApps, the whole user profile, the whole AppData, or the whole ProgramData..
├── 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
Skill name:
win11-storage-governance
Use it when the user asks about:
AppData, C:\Windows\Installer, WinSxS, or WindowsApps.The skill is intentionally concise. Detailed logic lives in:
skills/win11-storage-governance/references/safety-model.mdskills/win11-storage-governance/references/runbook.mdskills/win11-storage-governance/references/device-profile-template.mdFrom 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
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.
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
This project is conservative by design. It will not recommend manual deletion of Windows servicing stores or installer caches. In particular:
C:\Windows\Installer.C:\Windows\WinSxS.C:\Program Files\WindowsApps.AppData, user profile, or ProgramData.For high-risk areas, use official tools, vendor uninstallers, repair utilities, quarantine workflows, and rollback plans.
MIT License.