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
累計下載
4390
星標
4
全站排名
#2,223
全站前 44% · 「運維安全」前 48%
平台累計安裝累計下載星標評論
ClawHub ↗13241002-
SkillHub ↗29643904—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它把 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 索引。

月度資料趨勢

累計下載4390
2839367245052026-03 · 累計下載 29542026-05 · 累計下載 33562026-06 · 累計下載 35102026-07 · 累計下載 37962026-08 · 累計下載 39592026-09 · 累計下載 439026-0326-09
星標4
2342026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094390—4
2026-083959+4.3%4
2026-073796+8.1%4
2026-063510+4.6%2
2026-053356—2
2026-032954—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),按月更新。口徑說明見資料方法。