disk-cleaner

disk-cleaner is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 34 tokens per session (1,825 once invoked), scanned A, original, MIT.

A Mac disk-cleaning assistant built around the Mole cleanup tool. It checks the environment, previews removable files, and can run cleanup using different safety levels with reports and protected paths.

In plain words
What is it for?
Use it when a Mac is low on storage or when you need to inspect and remove caches, temporary files, and other cleanup candidates.
Why use it?
Caches and temporary files can consume storage, while deleting the wrong files can cause problems. It helps identify what can be removed and provides confirmation and reporting around cleanup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a Mac is low on storage or when you need to inspect and remove caches, temporary files, and other cleanup candidates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/disk-cleaner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sutchan/Agent-Skills-Hub --skill disk-cleaner
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for disk-cleaner

README.md
[![agentmods](https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/disk-cleaner/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/disk-cleaner)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/disk-cleaner"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/disk-cleaner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for disk-cleaner

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/disk-cleaner"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/disk-cleaner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.01825
Opus 5 $0.00017 $0.00912
Sonnet 5 $0.00007 $0.00365
Haiku 4.5 $0.00003 $0.00183

Measured 6d ago against content hash 37925330ef44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

disk-cleaner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/mole_cleaner.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/disk-cleaner/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

环境检查

python scripts/mole_cleaner.py --check

预览清理内容

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 格式输出

执行清理(三档选择)

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              # 默认全量清理

白名单配置

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/重要项目  # 添加自定义路径

查看磁盘状态

python scripts/mole_cleaner.py --status

显示成就页(测试)

python scripts/mole_cleaner.py --show-achievement

Workflow (Claude 交互流程)

1. 环境检测与安装

首先检查 Mole 是否已安装:

python scripts/mole_cleaner.py --check

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

2. 预览扫描

运行预览获取分析报告:

python scripts/mole_cleaner.py --preview

Read the full file on GitHub · 193 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 193 lines · 34 tokens per session scan A 37925330ef44

Subscribe to this mod's changes

disk-cleaner is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (2 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 1,825 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

session-handoff-resume

Skill to save ultra-compact project checkpoints and seamlessly resume work across accounts or new chat sessions with minimum token consumption / Skill untuk menyimpan checkpoint proyek yang super ringkas dan melanjutkan pekerjaan secara efisien saat ganti akun/sesi tanpa boros token.

roedyrustam/vibes-plug · 59 tokens

project-context-mapper

Gives the agent a photographic memory of massive repositories. Forces the creation and maintenance of a highly compressed CONTEXTMAP.md to prevent context exhaustion and hallucination.

roedyrustam/vibes-plug · 37 tokens

token-saver

Skill to implement token saving scheme, concise, and focused on essential changes / Skill untuk menerapkan skema penghematan token, ringkas, dan fokus pada perubahan esensial tanpa basa-basi.

roedyrustam/vibes-plug · 45 tokens

mcp-client-orchestrator

Expert guide for the AI Agent to dynamically orchestrate and consume external MCP (Model Context Protocol) servers, giving it real-time superpowers over databases, GitHub, Slack, and local files.

roedyrustam/vibes-plug · 46 tokens

proactive-background-watcher

Grants the AI the ability to act proactively using native cron/timer scheduling. The agent can monitor systems, poll APIs, or watch logs in the background and self-trigger without waiting for user prompts.

roedyrustam/vibes-plug · 46 tokens

邮箱助手

An email management assistant for connecting to Gmail, Outlook, QQ, 163, and other IMAP/SMTP mail services. It can retrieve, summarize, and help draft email replies.

laborany/laborany · 138 tokens