Agent skill

C Drive Cleaner

by staruhub in staruhub/ClaudeSkills

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

MITAuto-check passed

Install C Drive Cleaner

skills CLI
$ npx skills add staruhub/ClaudeSkills --skill c-drive-cleaner -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install staruhub/ClaudeSkills c-drive-cleaner --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/staruhub/ClaudeSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/Geek-skills-c-drive-cleaner .claude/skills/c-drive-cleaner && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
c-drive-cleaner
GitHub stars
728
Token cost
~518 tokens
SKILL.md length
95 words
Files
5 (incl. scripts, references)
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 4 steps: 分析占用 → 查找大文件(只报告,不删) → 清理(默认模拟模式) → …
  • SKILL.md covers 验收标准(清理任务完成前自查), 禁删清单(碰到即停), 工作流程 and 已知陷阱, plus 2 more sections
  • Runs Python scripts from its folder; calls python

What it does

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

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/windows_cleanup_guide.md`, `scripts/analyze_disk.py` and `scripts/clean_temp.py`).

It works with Linux and macOS. The repository describes itself as: 13 curated Agent Skills for research, product decisions, decks, publishing, audits, and more — portable across skills-compatible agents. The licence is MIT.

Example prompts

  • “Use the c-drive-cleaner skill to window C盘清理和磁盘空间管理。当用户说C盘满了、磁盘空间不足、清理临时文件/缓存/回收站/系统日志、查找大文件、分析磁盘占用时使用。仅适用于 Windows 环境。不用于:macOS/Linux…”
  • “/c-drive-cleaner”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 分析占用
  2. 查找大文件(只报告,不删)
  3. 清理(默认模拟模式)
  4. 验证

What it can do on your machine

Read from SKILL.md and the folder at commit 66e02d2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

C Drive Cleaner loads about 518 tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 41 tokens; SKILL.md has 95 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~518
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from staruhub/ClaudeSkills at commit 66e02d2, republished under its MIT licence (© staruhub). 95 words, ~518 tokens.

Download SKILL.mdSave it as .claude/skills/c-drive-cleaner/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
c-drive-cleaner
description
Windows C盘清理和磁盘空间管理。当用户说C盘满了、磁盘空间不足、清理临时文件/缓存/回收站/系统日志、查找大文件、分析磁盘占用时使用。仅适用于 Windows 环境。不用于:macOS/Linux 磁盘清理、卸载软件(引导用户走系统卸载)、清理用户个人文件(只报告位置,删除决定权在用户)。
version
1.1.0

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 二次确认;跳过系统关键目录

© staruhub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in skills/Geek-skills-c-drive-cleaner of staruhub/ClaudeSkills.

  • SKILL.md
  • references/windows_cleanup_guide.md
  • scripts/analyze_disk.py
  • scripts/clean_temp.py
  • scripts/find_large_files.py

Open the folder on GitHubat commit 66e02d2

Compare with similar skills

C Drive Cleaner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

C Drive Cleaner compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
C Drive Cleaner this skillstaruhub/ClaudeSkills728—~518Automated safety check: PassMIT
Engine Whats Newflutter/flutter180k—~978Automated safety check: PassBSD-3-Clause
Openclaw Live Updateropenclaw/openclaw392k—~3.7kAutomated safety check: PassMIT
Apple Container Test RunnerRustPython/RustPython22k—~467Automated safety check: PassMIT
Native Feel Cross Platform Desktopyetone/native-feel-skill1.9k1 repos~1.5kAutomated safety check: PassMIT
TreeSheets Agent Socketaardappel/treesheets3.2k—~5.7kAutomated safety check: NotesZlib

Similar skills

  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    180k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Apple Container Test Runner

    RustPython/RustPython

    Runs RustPython tests inside a Linux container built with Apple's container CLI, so macOS users can compare Linux results with their local ones.

    22k GitHub stars~467 tokensUpdated today
    Testing & QAAuto-check passed
  • Native Feel Cross Platform Desktop

    yetone/native-feel-skill

    A skill your agent uses when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a…

    1.9k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed
  • TreeSheets Agent Socket

    aardappel/treesheets

    Runs Lobster scripts against the document open in a running TreeSheets instance through its local agent socket, and returns the results or errors.

    3.2k GitHub stars~5.7k tokensUpdated today
    Productivity & AutomationAuto-check: notes
  • Open Computer Use

    iFurySt/open-codex-computer-use

    Platform-neutral guidance for using Open Computer Use, the open-source Computer Use MCP server and CLI for macOS, Linux, and Windows.

    2.4k GitHub stars~1.5k tokensUpdated today
    Productivity & AutomationAuto-check passed

More from staruhub/ClaudeSkills

All 20 skills in this repo
  • Deep Research

    staruhub/ClaudeSkills

    A skill your agent uses when the user wants an evidence-based research memo, literature review, market/policy/technical landscape, or a multi-source decision brief with citations, trade-offs, and a…

    728 GitHub stars~2.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Wechat Article Writer

    staruhub/ClaudeSkills

    专业微信公众号文章助手,支持四个独立且可组合模式:article 写正文;image-prompts 从文章生成版本化、provider-neutral 的图片提示词 manifest 与稳定占位符,但不调用生图;layout 把文章和 manifest 确定性转换为微信安全的内联 HTML;full-pipeline…

    728 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • A Share Analyst

    staruhub/ClaudeSkills

    A股分析研究助手,提供行情数据获取与技术面/基本面分析框架(仅供研究参考,不构成投资建议)。适用于:(1) 获取A股行情和历史数据,(2) 技术面分析(K线形态、MACD、KDJ、RSI、布林带等),(3) 基本面分析(财务指标、估值分析),(4) 板块热点追踪,(5) 选股策略筛选与量化因子分析,(6)…

    728 GitHub stars~871 tokensUpdated 1 mo ago
    Auto-check passed
  • Gaokao Expert

    staruhub/ClaudeSkills

    资深高考命题专家助手,提供专业的命题指导和评审服务。适用于创作高考试题、评审试题质量、分析试卷结构、了解命题趋势等场景。结合文档工具提取解压文件,使用网络搜索了解当年最新命题趋势,使用分析工具评估题目质量和试卷结构。涵盖"一核四层四翼"评价体系、题型规范、评分标准、命题流程等多个维度。不用于:大学/考研/中考命题(体系不同,仅可借鉴)、日常作业题编写、直接替考生解题。

    728 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • LLM Wiki

    staruhub/ClaudeSkills

    Build and maintain a structured LLM-generated wiki for any codebase.

    728 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Mineru PDF Parser

    staruhub/ClaudeSkills

    用 MinerU 将复杂PDF文档转换为LLM友好的Markdown/JSON格式。适用于:(1) PDF转Markdown/JSON,(2) 提取PDF中的文本、表格、公式、图像,(3) 解析学术论文、技术文档、商业报告,(4) 为RAG应用准备文档数据,(5) 批量处理PDF。触发关键词:"PDF解析"、"PDF转Markdown"、"提取PDF表格/公式"、"MinerU"、"parse…

    728 GitHub stars~671 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about C Drive Cleaner

What does C Drive Cleaner do?

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

How do I install C Drive Cleaner in Claude Code?

Run `npx skills add staruhub/ClaudeSkills --skill c-drive-cleaner -a claude-code`. Or copy the skill folder (skills/Geek-skills-c-drive-cleaner in staruhub/ClaudeSkills) into .claude/skills/c-drive-cleaner in your project. Claude Code loads it when a task matches its description.

How do I install C Drive Cleaner in Codex?

Run `npx skills add staruhub/ClaudeSkills --skill c-drive-cleaner -a codex`. Or copy the skill folder (skills/Geek-skills-c-drive-cleaner in staruhub/ClaudeSkills) into .agents/skills/c-drive-cleaner in your project. Codex loads it when a task matches its description.

Can I use C Drive Cleaner in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add staruhub/ClaudeSkills --skill c-drive-cleaner -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/c-drive-cleaner, .gemini/skills/c-drive-cleaner, .github/skills/c-drive-cleaner and .opencode/skills/c-drive-cleaner in your project.

What does C Drive Cleaner need to run?

Going by SKILL.md and its folder, C Drive Cleaner needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does C Drive Cleaner access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is C Drive Cleaner safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does C Drive Cleaner use?

C Drive Cleaner is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does C Drive Cleaner use?

About 518 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to C Drive Cleaner?

Skills that share tags, products or a category with C Drive Cleaner: Engine Whats New (flutter/flutter, 180k stars), Openclaw Live Updater (openclaw/openclaw, 392k stars), Apple Container Test Runner (RustPython/RustPython, 22k stars) and Native Feel Cross Platform Desktop (yetone/native-feel-skill, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains C Drive Cleaner?

staruhub (a GitHub user) maintains it in staruhub/ClaudeSkills, which has 728 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on August 13, 2026.

Source: staruhub/ClaudeSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.