Agent skill

c-drive-cleaner

Windows C盘清理和磁盘空间管理。当用户说C盘满了、磁盘空间不足、清理临时文件/缓存/回收站/系统日志、查找大文件、分析磁盘占用时使用。仅适用于 Windows 环境。不用于:macOS/Linux 磁盘清理、卸载软件(引导用户走系统卸载)、清理用户个人文件(只报告位置,删除决定权在用户)。

staruhubgithub.com/staruhubGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add staruhub/ClaudeSkills --skill Geek-skills-c-drive-cleaner --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 2 KB
Bundled scripts: yes
Version: 1.1.0
Path: skills/Geek-skills-c-drive-cleaner/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 659
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# C盘清理大师 安全导向的 Windows 磁盘清理:**分析 → 模拟 → 执行 → 验证**,破坏性操作永远先预览。 ## 验收标准(清理任务完成前自查) - [ ] 实际删除前完成过一次模拟运行,并把预览结果给用户看过 - [ ] `--execute` 前用户明确确认过(清理不经过回收站,不可恢复) - [ ] 已提醒用户创建系统还原点和关闭浏览器(清缓存时) - [ ] 未触碰"禁删清单"中的任何目录 - [ ] 清理后重跑分析,回报**实际释放的空间数字**,不是"应该清理了" - [ ] 用户个人大文件(视频/压缩包等)只报告位置与大小,删除由用户自己决定 ## 禁删清单(碰到即停) - `C:\Windows\System32` — 核心系统文件 - `C:\Windows\WinSxS` — Windows 组件存储(要瘦身走 DISM,不许直接删) - `C:\Program Files` / `C:\ProgramData` — 已装程序及数据 - `C:\Windows\Prefetch` — 预读取文件,删了拖慢启动 - 休眠文件与虚拟内存 — 走系统设置调整,不手动删文件 ## 工作流程 ### 1. 分析占用 ```bash python scripts/analyze_disk.py C:\ 2 20 # 路径 深度 显示前N项 ``` ### 2. 查找大文件(只报告,不删) ```bash python scripts/find_large_files.py C:\ 100 50 # 路径 最小MB 最大结果数 python scripts/find_large_files.py C:\Users 200 100 .mp4,.avi,.mkv # 按类型过滤 ``` 常见大文件类型:视频 `.mp4,.mkv,.mov`;安装包 `.iso,.exe,.msi`;压缩包 `.zip,.rar,.7z`;备份 `.bak,.sql`。 ### 3. 清理(默认模拟模式) ```bash python scripts/clean_temp.py # 模拟:只预览 python scripts/clean_temp.py --execute # 实际执行:需二次确认 ``` 覆盖范围:`%TEMP%`、`C:\Windows\Temp`、浏览器缓存(Chrome/Edge/Firefox)、`.log/.etl/.old` 日志、回收站。 ### 4. 验证 重跑 `analyze_disk.py`,对比前后数字回报实际效果。 ## 已知陷阱 | 陷阱 | 具体表现 | 应对 | |------|---------|------| | 无权限静默漏扫 | 非管理员运行,扫描结果偏小误导判断 | 提示以管理员身份运行;脚本会跳过

What's inside
Steps it walks through
  1. 验收标准(清理任务完成前自查)
  2. 禁删清单(碰到即停)
  3. 工作流程
  4. 1. 分析占用
  5. 2. 查找大文件(只报告,不删)
  6. 3. 清理(默认模拟模式)
  7. 4. 验证
  8. 已知陷阱
  9. 权限与配套
  10. 脚本说明
Ships with 4 files
  • references/windows_cleanup_guide.md
  • scripts/analyze_disk.py
  • scripts/clean_temp.py
  • scripts/find_large_files.py
Commands it runs
python scripts/analyze_disk.py C:\ 2 20    # 路径 深度 显示前N项
python scripts/find_large_files.py C:\ 100 50            # 路径 最小MB 最大结果数
python scripts/find_large_files.py C:\Users 200 100 .mp4,.avi,.mkv   # 按类型过滤
python scripts/clean_temp.py             # 模拟:只预览
python scripts/clean_temp.py --execute   # 实际执行:需二次确认
More from ClaudeSkills
All skills →
About this skill
What does the c-drive-cleaner skill do?

Windows C盘清理和磁盘空间管理。当用户说C盘满了、磁盘空间不足、清理临时文件/缓存/回收站/系统日志、查找大文件、分析磁盘占用时使用。仅适用于 Windows 环境。不用于:macOS/Linux 磁盘清理、卸载软件(引导用户走系统卸载)、清理用户个人文件(只报告位置,删除决定权在用户)。

How do I install it?

Run `npx skills add staruhub/ClaudeSkills --skill Geek-skills-c-drive-cleaner --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From staruhub/ClaudeSkills, a repository with 659 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going