← 返回 Skills 市场
peizhou

cleanMyMacSkill

作者 waiwai · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
51
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install clean-my-mac
功能描述
macOS / Windows / Linux read-only storage analysis helper. Scans disk usage, finds large files/directories, divides items into 🟢Safe to Clean / 🟡Needs Revi...
使用说明 (SKILL.md)

cleanMyMacSkill

Read-only storage analyzer for macOS, Windows, and Linux. Produces an interactive, Apple-style web-based dashboard with safe one-click cleanup integrations.

Core Directives

  • Read-Only Scanner. The scanning phase only uses safe operations (e.g., df, du, stat, ls). Direct modifications or deletions are strictly prohibited during scanning.
  • Interactive Deletions. In server mode, users can click "Move to Trash" or "Hard Delete" on the web page. The backend validates paths against strict session tokens and home boundaries.
  • Accurate Estimates. Explicitly mark any reclaimable space values as estimates.
  • Retain Command Snippets. Keep absolute paths and terminal command snippets exactly as they are (do not translate paths).

Execution Pipeline

Step 1: Run Storage Scan

Execute the multi-threaded scan script to collect filesystem size metadata:

python3 scripts/scan.py > /tmp/storage_scan.json

The script detects the OS automatically and concurrently queries cache targets, user folders, and developer structures using standard ThreadPoolExecutor. Denied folders are marked as denied.

Step 2: Interpret & Segment

Read /tmp/storage_scan.json. Load references at references/macos.md, references/windows.md, or references/linux.md depending on the OS platform. Perform the following checks:

  1. Identify Top 5 Space Consumers: Mark their types (User files, databases, developer caches, VM files, etc.).
  2. Track App Sandbox Folders: Correlate UUID folders in containers back to their parent bundle-id names.
  3. Partition into Clean Tiers:
    • 🟢 Safe to Clean: Caches, logs, package registers. Offer one-click trashing or direct deletions.
    • 🟡 Needs Review: Personal documents, downloads, active database container folders. Enable opening in the file manager or trashing verified safe subfolders.
    • 🔴 Caution: Software application packages. Guide users to uninstall manually via official settings.

Step 3: Compile and Serve Report

Inject the interpreted classification JSON into the template. Use the server script for interactive dashboard functionality:

python3 scripts/server.py /tmp/storage_analysis.json

Alternatively, compile a static HTML file:

python3 scripts/build_report.py /tmp/storage_analysis.json ~/Desktop/cleanmymac-report.html

Step 4: Dialogue Summary

Once generated, output a concise summary in the chat:

  • Total space scanned and free space remaining.
  • Estimated reclaimable capacity.
  • Top 2-3 cleanup priorities and potential risks.

Platform Prerequisites

  • Runs on Python 3 Standard Library (no pip dependencies).
  • Compatible with macOS, Linux (Freedesktop compliant trashing), and Windows.
安全使用建议
Install only if you want a tool that can help clean disk space. Use the static report or trash mode for safer review, and click permanent delete only after checking every listed path because that operation is intentionally destructive.
能力评估
Purpose & Capability
The artifacts consistently describe storage scanning plus optional cleanup; the scanner itself is read-only, while server mode can move allowlisted items to trash or permanently delete green-category cleanup paths.
Instruction Scope
Some documentation uses broad 'read-only' wording and broad storage-related triggers, but the skill also discloses web-based trash/delete actions and the code requires user clicks plus browser confirmation before mutations.
Install Mechanism
No external dependencies or package installs are declared; the scripts use Python standard library files shipped with the skill.
Credentials
Broad home-directory and cache metadata scanning is proportionate to disk cleanup, and the local server is bound to localhost with token and path-boundary checks.
Persistence & Privilege
There is no startup persistence or credential access; server mode runs until stopped, stores only UI preferences in localStorage, and performs file operations only through the local session.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clean-my-mac
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clean-my-mac 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added a .gitignore file to the project. - No changes to functionality or documentation contents.
v1.0.0
- Initial release of cleanMyMacSkill, a cross-platform, read-only storage analyzer for macOS, Windows, and Linux. - Scans disk usage and categorizes files/directories into Safe to Clean, Needs Review, or Caution tiers. - Generates interactive Apple-style HTML dashboards for reviewing storage and performing one-click cleanup (Move to Trash/Delete) via a local server. - Accurately summarizes storage analysis results and cleanup priorities with clear risk indicators. - Uses only Python 3 standard library; no third-party dependencies required. - Triggers when users ask about disk space, cleaning, or storage analysis.
元数据
Slug clean-my-mac
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

cleanMyMacSkill 是什么?

macOS / Windows / Linux read-only storage analysis helper. Scans disk usage, finds large files/directories, divides items into 🟢Safe to Clean / 🟡Needs Revi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。

如何安装 cleanMyMacSkill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clean-my-mac」即可一键安装,无需额外配置。

cleanMyMacSkill 是免费的吗?

是的,cleanMyMacSkill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cleanMyMacSkill 支持哪些平台?

cleanMyMacSkill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cleanMyMacSkill?

由 waiwai(@peizhou)开发并维护,当前版本 v1.0.1。

💬 留言讨论