← 返回 Skills 市场
232
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install c-cleaner
功能描述
C 盘空间分析与清理技能。用于扫描 C 盘空间使用情况,识别垃圾文件和大文件,根据用户需求执行安全清理操作。使用场景:(1) 分析 C 盘空间占用,(2) 扫描可清理的垃圾文件,(3) 识别可迁移的大型应用,(4) 执行安全清理操作,(5) 生成空间优化建议
使用说明 (SKILL.md)
C 盘清理助手
本技能帮助分析和清理 C 盘空间,释放存储容量。
核心能力
1. 空间分析
- 扫描 C 盘总体使用情况
- 分析各大目录空间占用
- 识别占用空间最多的文件夹和文件
2. 垃圾扫描
- 临时文件(用户/系统)
- Windows 更新缓存
- 浏览器缓存
- pip/npm 包管理器缓存
- 应用缓存(飞书/剪映等)
3. 大文件识别
- 查找超过指定大小的文件
- 识别可删除的旧安装包
- 发现重复文件
4. 应用迁移建议
- 识别可迁移到其他盘的应用
- 提供迁移步骤指导
5. 安全清理
- 执行安全清理操作(需用户确认)
- 支持预览模式(--dry-run)
- 清理前自动备份关键数据
工作流程
步骤 1: 扫描分析
# 使用分析脚本
python scripts/scan_c_drive.py --full
生成空间使用报告,包括:
- C 盘总容量/已用/剩余
- 各大目录占用排行
- 可清理垃圾预估
步骤 2: 生成建议
参考 references/cleanup-guide.md 生成具体清理建议。
步骤 3: 用户确认
必须获得用户明确确认后才能执行清理:
- 显示将要清理的内容和大小
- 用户输入 "确认" / "yes" / "执行" 开始清理
步骤 4: 执行清理
# 预览模式(不实际删除)
python scripts/clean_c_drive.py --dry-run
# 执行清理(需确认)
python scripts/clean_c_drive.py --level safe
步骤 5: 生成报告
清理完成后输出:
- 实际释放空间
- 清理项目清单
- 后续优化建议
清理级别
| 级别 | 内容 | 风险 |
|---|---|---|
safe |
临时文件、更新缓存 | 无风险 |
standard |
+ 浏览器缓存、应用缓存 | 低风险 |
aggressive |
+ 旧驱动、旧安装包 | 中风险 |
参考文档
- 清理指南:
references/cleanup-guide.md- 详细清理项目说明 - 安全须知:
references/safety.md- 清理操作安全注意事项
脚本工具
scripts/scan_c_drive.py- C 盘空间扫描分析scripts/clean_c_drive.py- 执行清理操作scripts/find_large_files.py- 查找大文件
触发条件
当用户提到:
- "清理 C 盘"
- "C 盘空间不足"
- "分析 C 盘占用"
- "C 盘满了怎么办"
- "扫描 C 盘垃圾"
- "释放 C 盘空间"
安全机制
必须遵守的规则
-
禁止删除的系统文件:
C:\Windows\System32\*C:\Program Files\WindowsApps\*C:\Users\*\NTUSER.DAT
-
必须用户确认:
- 清理前显示详细清单
- 用户明确输入确认指令
- 支持中文(确认/是)和英文(yes/y)
-
预览模式:
- 默认先执行
--dry-run - 显示将要删除的内容
- 用户确认后再实际执行
- 默认先执行
-
备份机制:
- 清理前创建还原点(如可能)
- 记录清理日志
- 支持日志回溯
安全使用建议
The scripts implement the advertised C: scan and cleanup features, but there are a few red flags you should address before running this on a real system:
- Do not run the destructive commands without verifying results: always run with --dry-run first and review the output. The code supports dry-run.
- The SKILL.md promises a safety file (references/safety.md) and creation of a restore point before cleaning; those are missing/not implemented. Treat the tool as lacking an automatic restore-point feature.
- The cleaner writes logs to a hard-coded user path (C:\Users\18785\...), which is unusual. Inspect and edit the script to use a path based on the current user (USERPROFILE) or a configurable location before running.
- The included cleanup guide contains advanced commands (vssadmin delete shadows, docker system prune, wsl --unregister) which are potentially destructive if executed — do not run those commands unless you understand the consequences and have backups.
- If you obtained this skill from an unknown source, prefer running it in a sandboxed environment or reviewing/editing the code to remove or fix the hard-coded path and to implement or confirm backup/restore behavior. If you’re not comfortable editing code, do not install/run it on a production machine.
What would increase confidence: (1) the author providing the missing references/safety.md, (2) replacing the hard-coded log path with a user-based configurable path, and (3) an explicit implementation (or clearly documented omission) of restore-point/backup behavior.
功能分析
Type: OpenClaw Skill
Name: c-cleaner
Version: 1.0.0
The 'c-cleaner' skill bundle is a utility designed for Windows disk space analysis and cleanup. It includes scripts for scanning directory usage (scan_c_drive.py), identifying large files (find_large_files.py), and performing deletions of temporary or cache files (clean_c_drive.py). The skill incorporates several safety mechanisms, including a mandatory dry-run preview, explicit exclusion of critical system directories (e.g., System32), and a requirement for user confirmation before any actual deletion occurs. While clean_c_drive.py contains a hardcoded log path (C:\Users\18785\...), this appears to be a developer oversight rather than a malicious indicator, and no evidence of data exfiltration or unauthorized execution was found.
能力评估
Purpose & Capability
Name/description align with the shipped scripts: scan_c_drive.py, find_large_files.py, clean_c_drive.py implement disk scanning, large-file listing and targeted cleanup. No unrelated binaries, env vars, or external services are requested.
Instruction Scope
SKILL.md instructs running the included scripts and requires user confirmation and dry-run support (which the code implements). However SKILL.md references a 'references/safety.md' file that is not present in the bundle, and it claims a 'create restore point' backup mechanism ('如可能') that is not implemented in the code. These mismatches between instructions and actual behavior reduce trust and could mislead users about protections in place.
Install Mechanism
No install spec (instruction-only with contained scripts). No network downloads or package installs are performed by the skill itself, which lowers installation risk.
Credentials
The skill declares no required environment variables or credentials (appropriate). However, the cleanup script writes logs to a hard-coded path 'C:\Users\18785\.openclaw\workspace\temp\clean_log.txt' instead of using the active user_home; this fixed username is inconsistent and unusual and could indicate leftover dev/test paths or a misplaced artifact.
Persistence & Privilege
Skill is not always-enabled and does not request elevated platform privileges. It modifies local disk contents only as part of explicit cleanup operations and supports dry-run and interactive confirmation. No autonomous persistence beyond writing a local log file.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install c-cleaner - 安装完成后,直接呼叫该 Skill 的名称或使用
/c-cleaner触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布:推出 C 盘空间分析与清理助手技能
- 支持扫描 C 盘并分析各类空间占用情况,生成优化建议
- 可识别并清理临时文件、更新缓存、浏览器及应用缓存等垃圾
- 查找大文件、重复文件,建议应用迁移
- 提供多级别安全清理选项,执行前需用户确认
- 设有严格安全机制,包括风险提示和文件保护规则
元数据
常见问题
c-cleaner 是什么?
C 盘空间分析与清理技能。用于扫描 C 盘空间使用情况,识别垃圾文件和大文件,根据用户需求执行安全清理操作。使用场景:(1) 分析 C 盘空间占用,(2) 扫描可清理的垃圾文件,(3) 识别可迁移的大型应用,(4) 执行安全清理操作,(5) 生成空间优化建议. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 232 次。
如何安装 c-cleaner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install c-cleaner」即可一键安装,无需额外配置。
c-cleaner 是免费的吗?
是的,c-cleaner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
c-cleaner 支持哪些平台?
c-cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 c-cleaner?
由 test_heng(@jjflydudu)开发并维护,当前版本 v1.0.0。
推荐 Skills