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 $0.00017 $0.00353
Sonnet 5 $0.00007 $0.00141
Haiku 4.5 $0.00003 $0.00071

Measured 11d ago against content hash 189d4f17b340, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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 1mo ago), licensed MIT. It adds 34 tokens to every session and 707 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-08-30.

Related

Other skills, from other repositories

domain

When you want to brainstorm and check available .com domains for a new project — brand naming, aftermarket pricing (HugeDomains / Afternic / Sedo / Dan), USPTO trademark screening, and social handle availability. Built on Laura Roeder's "work backwards from availability, not from a name you fell in love with"…

coreyhaines31/makerskills · 232 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so Claude can answer questions on your team's behalf. Team-scope sibling to second-brain (which is personal-scope). Seven modes — capture (drop something into the right structured dir), compile (process into wiki…

coreyhaines31/makerskills · 322 tokens

slide-deck

When you want to draft, update, convert, or export a slide deck for a React/Next.js slide system (${SLIDEDECKREPO:-$HOME/code/your-slide-deck-site}/src/app/slides/). Writes TypeScript Slide[] arrays using your primitives (Eyebrow, Heading, Accent, Body, BulletList, Divider, TwoCol, GradientText), 12 cycling brand…

coreyhaines31/makerskills · 259 tokens

service-desk

Runs the IT service desk — intake, triage, prioritization, escalation, knowledge, and the metrics that improve service rather than distort it. Use this to set up or fix a service desk, design ticket priority and escalation, reduce repeat contacts, structure a knowledge base, or work out why a desk hitting its targets…

cbrock84/headcount · 73 tokens

session-cleanup

Identify stale and empty Claude Code sessions in the Agent Monitor and explain the cleanup endpoint (POST /api/settings/cleanup), always showing the exact list of what WOULD be removed before anything is deleted. Cleanup permanently deletes data, so this skill previews first and requires explicit user confirmation.…

hoangsonww/Claude-Code-Agent-Monitor · 67 tokens

vastai

Vast.ai CLI to manage GPU instances, volumes, serverless endpoints, and billing.

vast-ai/vast-cli · 21 tokens