← 返回
未分类 中文

cleanMyMacSkill

macOS / Windows / Linux read-only storage analysis helper. Scans disk usage, finds large files/directories, divides items into 🟢Safe to Clean / 🟡Needs Revi...
macOS / Windows / Linux read-only storage analysis helper. Scans disk usage, finds large files/directories, divides items into 🟢Safe to Clean / 🟡Needs Revi...
peizhou peizhou 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 135
下载
💾 0
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-06-04 13:50

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,845
data-analysis

scholarplotskill

peizhou
ScholarPlot AI 学术图形生成器,通过 MCP 连接生成并编辑符合 SCI 标准的图形,包括折线图、柱状图、热图、神经网络图等。
★ 0 📥 173
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,510