mac-software-storage-cleanup-cn

mac-software-storage-cleanup-cn is a skill for Claude Code, Codex from YangsonHung/awesome-agent-skills. It costs 34 tokens per session (707 once invoked), scanned A, original, MIT.

A macOS guide for auditing software and disk usage, then suggesting or performing carefully limited cleanup. It separates low-risk caches and simulator files from application data that may be important.

In plain words
What is it for?
Use it to list installed applications, measure software and cache sizes, identify large directories, review cleanup priorities, and remove approved low-risk files.
Why use it?
It helps find what is consuming storage without deleting potentially useful business data by mistake. Cleanup actions require confirmation where the risk is higher.

Skill for Claude CodeCodex

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

Good fit Use it to list installed applications, measure software and cache sizes, identify large directories, review cleanup priorities, and remove approved low-risk files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn
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 YangsonHung/awesome-agent-skills --skill mac-software-storage-cleanup-cn
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-agent-skills

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 mac-software-storage-cleanup-cn

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn/github.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn/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 mac-software-storage-cleanup-cn

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/mac-software-storage-cleanup-cn.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 707 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.00707
Opus 5.5 $0.00014 $0.00283
Sonnet 5.5 $0.00007 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured 1mo ago against content hash 189d4f17b340, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mac-software-storage-cleanup-cn 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 1mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/cleanup_priority1.sh, scripts/list_priority2_candidates.sh, scripts/report_sizes.sh), 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/zh-cn/mac-software-storage-cleanup-cn/SKILL.md · 70 lines

What it actually says

Mac Software Storage Cleanup

Overview

审计 macOS 软件安装与磁盘占用,输出可执行的分级清理建议,并在用户确认后执行低风险清理。流程会区分应用清单、缓存、模拟器数据和中风险应用数据,避免在没有确认的情况下删除业务数据。

何时使用

当用户有以下需求时使用本技能:

  • 检查 /Applications、~/Applications、Homebrew Formula、Homebrew Cask 安装了哪些软件
  • 统计软件和常见缓存目录的空间占用,并按大小排序
  • 清理 ~/Library/Caches、~/Library/Developer/CoreSimulator 等低风险目录
  • 给出磁盘空间治理建议,并区分低风险与中风险清理项

不要使用

以下场景不应使用本技能:

  • 用户想卸载某个具体应用,而不是做磁盘治理盘点
  • 用户要求直接删除业务数据目录,但没有明确确认
  • 任务环境不是 macOS,或目标路径不适用当前系统

使用说明

  1. 先执行 scripts/report_sizes.sh,盘点软件来源与主要占用目录。
  2. 基于报告区分清理优先级:
    • 优先级 1:缓存和模拟器数据,默认低风险。
    • 优先级 2:应用业务数据目录,仅列出候选,不直接删除。
    • 优先级 3:收益较低的小型缓存或日志。
  3. 输出结论时,必须展示目录类别、数量、总占用和 Top N 大户。
  4. 如需扫描优先级 2 候选,执行 scripts/list_priority2_candidates.sh [目标目录] [TopN]。
  5. 只有在用户明确确认后,才执行 scripts/cleanup_priority1.sh 或等价清理动作。
  6. 清理完成后,重新核算并输出“清理前 -> 清理后 -> 释放空间”的对比结果。

标准流程

盘点安装来源与空间占用
  -> 识别高价值可清理目录
  -> 给出分级建议
  -> 等待用户确认
  -> 执行低风险清理
  -> 复核释放结果

执行命令

bash scripts/report_sizes.sh
bash scripts/list_priority2_candidates.sh ~/Library/Application\\ Support 20
bash scripts/cleanup_priority1.sh

输出要求

  • 明确展示每类路径的数量和总占用
  • 列出 Top N 大户,便于用户快速决策
  • 任何清理动作都必须包含清理前后对比
  • 没有用户确认时,不主动删除优先级 2 目录

边界

  • 不使用破坏性 git 命令
  • 不删除用户未确认的应用业务数据
  • 若脚本失败,改用更稳妥的只读排查或最小范围清理方式
Files

What ships with it

3 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. 1mo ago First seen · 70 lines · 34 tokens per session scan A 189d4f17b340

Subscribe to this mod's changes

mac-software-storage-cleanup-cn is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 707 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

scenario-zbrush-expert

Use when an agent drives Maxon ZBrush 2026 for any task (sculpt in ZBrush, DynaMesh, ZRemesher, UVs, export, polypaint, posing, 3D print, clean up an AI mesh in ZBrush), when writing ZBrush Python (zbrush.commands) or ZScript, when the ZBrush bridge is not answering, a palette path or set() does nothing, a scripted…

scenario-labs/skills · 124 tokens

customer-journey-map

Construye un mapa de recorrido del cliente para un producto, servicio o experiencia. Úsalo cuando se te pida mapear un recorrido del cliente, crear un viaje del usuario, documentar puntos de contacto y puntos de fricción, o diseñar un mapa de experiencia. Produce un mapa de recorrido completo con etapas, puntos de…

mohitagw15856/pm-claude-skills · 86 tokens

feature-prioritisation

Aplica marcos de priorización (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) para clasificar características e items del backlog. Úsalo cuando se te pida priorizar características, clasificar un backlog, decidir qué construir a continuación, o evaluar compensaciones entre ideas competidoras. Produce una lista de…

mohitagw15856/pm-claude-skills · 103 tokens

design-handoff-brief

Transform feature briefs into structured design briefs that give designers the context they need before opening Figma. Use when asked to write a design brief, create a design handoff, brief a designer on a new feature, or translate a PRD into design requirements. Produces a brief with user goal, emotional context…

mohitagw15856/pm-claude-skills · 83 tokens

outcome-tracker

Record the testable predictions inside a decision, then score them against reality later — so frameworks earn trust from outcomes, not vibes. Use when committing to a prioritisation, forecast, or plan (to log what it predicts), when asked to review what actually happened, or to compute how well-calibrated past RICE…

mohitagw15856/pm-claude-skills · 100 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so an agent can answer on your team's behalf. Team-scope sibling to second-brain — personal notes go there, not here. Modes — capture, compile (wiki pages + INDEX.md), query (trust-weighted, saved to outputs/)…

coreyhaines31/makerskills · 230 tokens