ClearSkill — Development skill for Claude Code
Claude Code skill for safe disk cleanup decisions.
How to install ClearSkill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open AIPMAndy/ClearSkill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What ClearSkill does
Claude Code skill for safe disk cleanup decisions.
Alternatives in Development
- System Cache Cleanup — Clean temporary files and caches to free disk space: $ARGUMENTS 23.4k ★
- Bm Stats — Show the basemind dashboard — resource footprint (disk + RAM) and activity (tool calls, per-tool histogram, es 94 ★
- Collect Insights — Use when you want to flush pending insights to Obsidian vault and epistemic tracking 60 ★
README
ClearSkill
ClearSkill 是一个 Claude Code Skill,用来把“磁盘占用分析”变成清晰的“清理决策”。它不只告诉你哪个目录大,还会说明:为什么占空间、删了会怎样、推荐怎么处理、风险有多高。
ClearSkill is a Claude Code skill that turns disk usage analysis into practical cleanup decisions. It explains what is safe to clean, what needs review, and what should not be touched directly.
中文版
它解决什么问题
电脑空间不够时,普通磁盘工具通常只会告诉你“哪里大”。真正难的是判断:
- 这是缓存,还是用户数据?
- 删了会不会丢聊天记录、登录状态、项目文件?
- 应该直接删、移到废纸篓,还是去 App 里清?
- 哪些东西看起来大,但其实别手动碰?
ClearSkill 会把扫描结果分成三类:
| 分类 | 含义 | 典型动作 |
|---|---|---|
Safe Clean / 可清理 |
可再生缓存、临时文件、安装包缓存、构建产物 | 可移到废纸篓;服务模式下可直接删除 |
Review First / 需确认 |
桌面、下载、聊天记录、浏览器 Profile、App 数据 | 先打开目录或到 App 内清理 |
Do Not Touch / 别乱动 |
App 本体、系统数据、数据库、风险未知的大目录 | 只给正规卸载或应用内处理建议 |
每个清理项都会给出:
- 为什么占空间
- 删了会怎样
- 推荐动作
- 风险等级
- 可释放估算
安装到 Claude Code
mkdir -p ~/.claude/skills
cp -R /path/to/ClearSkill ~/.claude/skills/clear-skill
安装后重启 Claude Code,让它重新加载技能列表。
使用方式
在 Claude Code 中直接说类似:
帮我分析一下电脑哪些东西占空间,哪些可以清理
或者手动运行扫描:
cd ~/.claude/skills/clear-skill
python3 scripts/scan.py > /tmp/clearskill_scan.json
**减少权限弹窗**:如果你不想反复点击 macOS 权限提示,使用快速模式:
python3 scripts/scan.py --skip-protected > /tmp/clearskill_scan.json
快速模式会跳过 `Containers` 和 `Group Containers` 目录(这些通常会触发"Paseo 想访问其他 App 数据"的弹窗)。这样扫描更快,不会弹窗,但会漏掉部分应用数据(如微信、飞书的缓存)。
Agent 根据扫描结果生成 `/tmp/clearskill_analysis.json` 后,可以生成静态报告:
python3 scripts/build_report.py /tmp/clearskill_analysis.json ~/Desktop/clearskill-report.html
如果需要网页按钮处理白名单内路径,可以启动本地服务:
python3 scripts/server.py /tmp/clearskill_analysis.json
如果不想自动打开浏览器(例如 Claude 会另外打开),可以加 `--no-browser` 参数:
python3 scripts/server.py /tmp/clearskill_analysis.json --no-browser
报告长什么样
报告首页按这个顺序组织:
- 当前可用空间和可清理估算
- 建议先做什么
- 三组决策卡片:
可清理、需确认、别乱动 - 占用排行
- 长期优化建议
界面刻意保持简单:优先显示推荐动作和风险,技术路径和命令折叠在详情里。
安全边界
ClearSkill 的扫描阶段是只读的。它只会读取大小和元数据,不会修改文件。
清理动作有额外护栏:
- 只允许处理
green[].trash_paths白名单内路径。 Review First
Related Skills
Windows Disk Cleanup
An Agent Skill for Windows 10/11 disk space survey, safe cross-drive migration and cleanup. Read-only first, p
macOS Disk Cleanup
給 Claude Code、Codex 等 agent 用的 macOS 磁碟清理 skill:診斷「系統資料」佔用、唯讀掃描腳本、以及 10 個會造成誤判或資料損失的陷阱
Disk Cleanup.Es
Limpieza de disco — Prompt para agentes (Español)
Disk Cleanup.Pt BR
Limpeza de disco — Prompt para agentes (Português do Brasil)
Mac Disk Cleanup
Claude Code / Codex skill: safely free up disk space on a Mac, never deletes without your OK
Claude Pc Cleanup
Claude Code skill: scan a macOS machine for reclaimable disk space and clean it up safely, tier by tier, with
Related Agents
Wiki Linter
Dispatched by wiki-lint for large wikis (>50 pages) or heavy cleanup. Runs lint, categorizes findings, applies
Fec Refactor Cleaner
Front-end Dead Code & Technical Debt Cleanup Subagent: Identifies unused components, exports, styles, routes,
C Reviewer
Expert C code reviewer specializing in C11/C17 idioms, memory safety (malloc/free discipline, no double-free),