Benjamin Jesuiter

Mole Mac Cleanup

运维安全v1.1.0
作者:Benjamin Jesuiter更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-01-14mole-mac-cleanup@clawhub_bjesuiter/mole-mac-cleanup
故障排查配置生成

据 AlphaMoat 统计,截至 2026-09,Mole Mac Cleanup 累计下载 4,390 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 2,223 位,在「运维安全」分类(264 个)中排名第 125 位。

累计安装
296
累计下载
4,390
星标
4
全站排名
#2,223
全站前 44% · 「运维安全」前 48%
平台累计安装累计下载星标评论
ClawHub ↗1324,1002-
SkillHub ↗2964,3904—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

它把 CleanMyMac、AppCleaner、DaisyDisk、iStat Menus 的功能合一,提供深度清理(缓存、日志、浏览器残留、废纸篓)、智能卸载、磁盘用量洞察、实时系统监控和项目产物清理(node_modules、target、build 等)。命令支持 --dry-run 预览、再执行清理/优化,并提供安装包清理与 Touch ID 配置;文档建议先 dry-run 再执行。

资料发布于 2026-10-27

可以用来做什么

  • 预览并清理 macOS 缓存、日志与浏览器残留
  • 用智能卸载移除应用及其隐藏残留
  • 清理项目构建产物与下载的安装包

什么时候用

  • 需要释放 macOS 磁盘空间或清理开发产物时
  • 想重建缓存、重置服务或刷新 Finder/Dock 时
  • 评估清理范围、先做 dry-run 预览再执行时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先 dry-run 预览一下会清理哪些内容。
清理这个项目目录下的 node_modules 和 build。
运行系统优化并重建 Spotlight 索引。

月度数据趋势

累计下载4,390
2,8393,6724,5052026-03 · 累计下载 2,9542026-05 · 累计下载 3,3562026-06 · 累计下载 3,5102026-07 · 累计下载 3,7962026-08 · 累计下载 3,9592026-09 · 累计下载 4,39026-0326-09
星标4
2342026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,390—4
2026-083,959+4.3%4
2026-073,796+8.1%4
2026-063,510+4.6%2
2026-053,356—2
2026-032,954—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.8 KB · ClawHub v1.1.0
---
name: mole-mac-cleanup
description: Mac cleanup & optimization tool combining CleanMyMac, AppCleaner, DaisyDisk features. Deep cleaning, smart uninstaller, disk insights, and project artifact purge.
author: Benjamin Jesuiter <[email protected]>
metadata:
  clawdbot:
    emoji: "🧹"
    os: ["darwin"]
    requires:
      bins: ["mo"]
展开全部(共 140 行)
    install:
      - id: brew
        kind: brew
        formula: mole
        bins: ["mo"]
        label: Install Mole via Homebrew
---

# Mole - Mac Cleanup & Optimization Tool

**Repo:** https://github.com/tw93/Mole
**Command:** `mo` (not `mole`!)
**Install:** `brew install mole`

> **Note for humans:** `mo` without params opens an interactive TUI mode. Not useful for agents, but you might wanna try it manually! 😉

## What It Does

All-in-one toolkit combining CleanMyMac, AppCleaner, DaisyDisk, and iStat Menus:
- **Deep cleaning** — removes caches, logs, browser leftovers
- **Smart uninstaller** — removes apps + hidden remnants
- **Disk insights** — visualizes usage, manages large files
- **Live monitoring** — real-time system stats
- **Project artifact purge** — cleans `node_modules`, `target`, `build`, etc.

---

## Non-Interactive Commands (Clawd-friendly)

### Preview / Dry Run (ALWAYS USE FIRST)
```bash
mo clean --dry-run              # Preview cleanup plan
mo clean --dry-run --debug      # Detailed preview with risk levels & file info
mo optimize --dry-run           # Preview optimization actions
mo optimize --dry-run --debug   # Detailed optimization preview
```

### Execute Cleanup
```bash
mo clean                        # Run deep cleanup (caches, logs, browser data, trash)
mo clean --debug                # Cleanup with detailed logs
```

### System Optimization
```bash
mo optimize                     # Rebuild caches, reset services, refresh Finder/Dock
mo optimize --debug             # With detailed operation logs
```

**What `mo optimize` does:**
- Rebuild system databases and clear caches
- Reset network services
- Refresh Finder and Dock
- Clean diagnostic and crash logs
- Remove swap files and restart dynamic pager
- Rebuild launch services and Spotlight index

### Whitelist Management
```bash
mo clean --whitelist            # Manage protected cache paths
mo optimize --whitelist         # Manage protected optimization rules
```

### Project Artifact Purge
```bash
mo purge                        # Clean old build artifacts (node_modules, target, venv, etc.)
mo purge --paths                # Configure which directories to scan
```

Config file: `~/.config/mole/purge_paths`

### Installer Cleanup
```bash
mo installer                    # Find/remove .dmg, .pkg, .zip installers
```

Scans: Downloads, Desktop, Homebrew caches, iCloud, Mail attachments

### Setup & Maintenance
```bash
mo touchid                      # Configure Touch ID for sudo
mo completion                   # Set up shell tab completion
mo update                       # Update Mole itself
mo remove                       # Uninstall Mole from system
mo --version                    # Show installed version
mo --help                       # Show help
```

---

## Typical Workflow

1. **Check what would be cleaned:**
   ```bash
   mo clean --dry-run --debug
   ```

2. **If looks good, run cleanup:**
   ```bash
   mo clean
   ```

3. **Optimize system (after cleanup):**
   ```bash
   mo optimize --dry-run
   mo optimize
   ```

4. **Clean dev project artifacts:**
   ```bash
   mo purge
   ```

---

## What Gets Cleaned (`mo clean`)

- User app cache
- Browser cache (Chrome, Safari, Firefox)
- Developer tools (Xcode, Node.js, npm)
- System logs and temp files
- App-specific cache (Spotify, Dropbox, Slack)
- Trash

## Notes

- **Terminal:** Best with Ghostty, Alacritty, kitty, WezTerm. iTerm2 has issues.
- **Safety:** Use `--dry-run` first. Built with strict protections.
- **Debug:** Add `--debug` for detailed logs.

「运维安全」分类下的热门技能

Benjamin Jesuiter 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。