Disk Cleaner logo

Disk Cleaner

Community
crazynomad
disk-cleaner

Mac 智能磁盘清理助手,基于 Mole (https://github.com/tw93/Mole) 的用户友好包装器

Overview

Publishercrazynomad
Repositoryskills
Skill namedisk-cleaner
Stars
27
Forks
8
Bundled files
5
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.

  • 5 bundled files

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

  • Open source

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

Installation

Install the Disk 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/crazynomad/skills/tree/master/disk-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/crazynomad/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/disk-cleaner .claude/skills/disk-cleaner
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Disk 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 Disk 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 Disk 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.

Disk Cleaner - Mac 智能磁盘清理助手

基于 Mole (https://github.com/tw93/Mole) 的用户友好包装器,负责「安装 + 执行 + 解释 + 把关 + 指路 + 统计 + 分享」。

Description

Disk Cleaner 是对 tw93 开发的 Mole 清理工具的增强封装。它提供了更友好的中文界面、分类报告、三档清理策略(Air/Pro/Max)、CSV 完整清单、白名单配置,以及清理完成后的精美成就页面(包含省钱计算和趣味统计)。

When to Use

Use this skill when users:

  • 说硬盘空间不够、磁盘满了、存储不足
  • 想清理 Mac 缓存或临时文件
  • 询问如何释放磁盘空间
  • 提到 Mole 工具

Features

  • 🔍 环境检测: 自动检测 Homebrew 和 Mole 安装状态
  • 📦 自动安装: 支持一键安装缺失依赖
  • 📊 分类报告: 按类别展示可清理项目,区分安全/谨慎
  • 🧭 三档策略: Air(最安全)/ Pro(推荐)/ Max(最大化)
  • 📋 CSV 清单: 生成完整文件清单,保存到桌面
  • ⚙️ 白名单配置: 预设模板 + 自定义路径保护
  • 🎉 成就页面: 清理后展示省钱计算、趣味统计、可分享
  • 🔒 安全保护: 显示已保护项目,支持确认机制

Usage

环境检查

bash
python scripts/mole_cleaner.py --check

预览清理内容

bash
python scripts/mole_cleaner.py --preview          # 终端文本报告
python scripts/mole_cleaner.py --preview --html   # HTML 报告(自动打开浏览器)
python scripts/mole_cleaner.py --preview --csv    # CSV 完整清单(保存到桌面)
python scripts/mole_cleaner.py --preview --json   # JSON 格式输出

执行清理(三档选择)

bash
python scripts/mole_cleaner.py --clean --tier air --confirm   # Air: 最安全
python scripts/mole_cleaner.py --clean --tier pro --confirm   # Pro: 推荐
python scripts/mole_cleaner.py --clean --tier max --confirm   # Max: 最大化
python scripts/mole_cleaner.py --clean --confirm              # 默认全量清理

白名单配置

bash
python scripts/mole_cleaner.py --whitelist --show                    # 查看当前白名单
python scripts/mole_cleaner.py --whitelist --preset office           # 添加白领办公预设
python scripts/mole_cleaner.py --whitelist --preset developer        # 添加开发者预设
python scripts/mole_cleaner.py --whitelist --add ~/Documents/重要项目  # 添加自定义路径

查看磁盘状态

bash
python scripts/mole_cleaner.py --status

显示成就页(测试)

bash
python scripts/mole_cleaner.py --show-achievement

Workflow (Claude 交互流程)

1. 环境检测与安装

首先检查 Mole 是否已安装:

bash
python scripts/mole_cleaner.py --check

如果未安装,引导用户安装或使用 --auto-install。

2. 预览扫描

运行预览获取分析报告:

bash
python scripts/mole_cleaner.py --preview

3. 向用户展示选项

根据预览结果,向用户展示清理方案:

请选择你想执行的方案:

1. 🌬️ Air - 最安全,只清浏览器和日志     → X.XX GB
2. ⚡ Pro - 推荐,平衡安全与空间          → X.XX GB
3. 🚀 Max - 最大化释放硬盘空间            → X.XX GB
4. 📋 先看完整清单 - 生成 CSV 详细列表
5. ⚙️ 配置白名单 - 保护特定路径

4. 处理用户选择

选择 1-3 (Air/Pro/Max):

bash
# 确认后执行
python scripts/mole_cleaner.py --clean --tier air --confirm   # 或 pro/max

选择 4 (CSV 清单):

bash
python scripts/mole_cleaner.py --preview --csv

告知用户文件已保存到桌面并自动打开。

选择 5 (白名单配置): 展示预设选项:

  • office: 白领办公 - 保护 .doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf 等
  • developer: 开发者 - 保护代码和配置文件
  • media: 媒体创作 - 保护视频、音频、图像项目
bash
python scripts/mole_cleaner.py --whitelist --preset office
# 或添加自定义路径
python scripts/mole_cleaner.py --whitelist --add ~/Documents/重要项目

5. 清理完成

清理完成后自动生成成就页面,包含:

  • 释放空间大小
  • 省钱计算(基于 SSD 价格)
  • 趣味等价物(相当于多少张照片/首歌曲)
  • 随机 tw93 夸夸
  • GitHub 链接方便 Star

Safety Features

  • 预览优先: 默认只预览,需要 --confirm 才执行清理
  • 分档策略: Air/Pro/Max 让用户根据风险偏好选择
  • 白名单保护: 支持预设模板和自定义路径
  • 保护清单: 显示 Mole 的 whitelist 保护项目
  • 日志记录: 所有操作保存日志到 ~/.config/mole-cleaner/logs/

Tier Definitions

档位清理范围风险等级
🌬️ Air浏览器缓存、系统日志低风险
⚡ ProAir + 用户应用缓存、包管理器缓存、废纸篓中等风险
🚀 Max所有可清理项目较高风险

Whitelist Presets

预设保护内容
office办公文档 (.doc, .docx, .xls, .xlsx, .ppt, .pptx, .pdf, .pages, .numbers, .key)
developer代码和配置 (.py, .js, .ts, .go, .rs, .java, .swift, .json, .yaml, .toml)
media媒体项目 (.psd, .ai, .sketch, .fig, .aep, .prproj, .fcpx, .mov, .mp4)

Dependencies

  • macOS
  • Homebrew
  • Mole (brew install tw93/tap/mole)
  • Python: pip install jinja2

Output Structure

~/.config/mole-cleaner/
├── logs/                    # 操作日志
├── reports/                 # HTML 报告
└── achievements/            # 成就页面

~/Desktop/
└── mole-clean-list-YYYYMMDD-HHMMSS.csv  # CSV 完整清单

Credits

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 Disk Cleaner AI skill do?

Mac 智能磁盘清理助手,基于 Mole (https://github.com/tw93/Mole) 的用户友好包装器

Why use Disk Cleaner on TypingMind?

Because you install it once and use it with any model. Disk 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 Disk Cleaner in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/crazynomad/skills/tree/master/disk-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 Disk 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 Disk Cleaner?

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

Is the Disk Cleaner AI skill free?

Yes. It is published on GitHub by crazynomad 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 👇