C Drive Cleaner logo

C Drive Cleaner

Community
staruhub
c-drive-cleaner

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

Overview

Publisherstaruhub
RepositoryClaudeSkills
Skill namec-drive-cleaner
Stars
728
Forks
131
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by staruhub on GitHub. Read the source before you install it.

Installation

Install the C Drive Cleaner AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/staruhub/ClaudeSkills/tree/main/skills/Geek-skills-c-drive-cleaner
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/staruhub/ClaudeSkills.git /tmp/ClaudeSkills
mkdir -p .claude/skills
cp -r /tmp/ClaudeSkills/skills/Geek-skills-c-drive-cleaner .claude/skills/c-drive-cleaner
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable C Drive Cleaner in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads C Drive Cleaner on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so C Drive Cleaner is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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,对比前后数字回报实际效果。

已知陷阱

陷阱具体表现应对
无权限静默漏扫非管理员运行,扫描结果偏小误导判断提示以管理员身份运行;脚本会跳过无权目录并计数
浏览器缓存清理失败浏览器进程占用文件先关闭所有浏览器窗口再清
清完没效果临时文件本来就不大,大头是个人文件或程序回到大文件报告和目录排行,引导用户决策(卸载/转移)
误以为可恢复脚本删除不经回收站执行前明确告知不可恢复,这也是模拟先行的原因
SSD 清到贴满追求 100% 利用率SSD 保留 15-20% 空间维持性能;低于 20% 时才建议清理

权限与配套

  • 部分系统文件需管理员权限(右键"以管理员身份运行")
  • 可配合系统自带工具:cleanmgr、存储感知、DISM 组件清理
  • 深入的垃圾文件位置、清理命令、安全实践:references/windows_cleanup_guide.md

脚本说明

脚本功能安全特性
scripts/analyze_disk.py目录占用排行 + 大文件列表只读;自动跳过无权目录
scripts/find_large_files.py按大小/类型查找文件只读;显示访问时间辅助判断
scripts/clean_temp.py清理临时文件/缓存/日志/回收站默认模拟;--execute 二次确认;跳过系统关键目录

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the C Drive Cleaner AI skill do?

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

Why use C Drive Cleaner on TypingMind?

Because you install it once and use it with any model. C Drive Cleaner is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install C Drive Cleaner in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/staruhub/ClaudeSkills/tree/main/skills/Geek-skills-c-drive-cleaner. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use C Drive Cleaner?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with C Drive Cleaner?

As many as you like. As long as a model supports skills, you can use C Drive Cleaner with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the C Drive Cleaner AI skill free?

Yes. It is published on GitHub by staruhub under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇