Skip to content
Skills Library
Personal productivity · Analysis

storage-analyzer

/storage-analyzer

Use when the user wants a read-only disk/storage analysis on macOS or Windows: 磁盘满了, C盘满了, 空间不够, 存储分析, 占空间, 清缓存, storage analysis, disk cleanup, or Chinese 内存满了 when they mean disk space. Scans known hotspots, classifies cache vs user data vs keep, and writes an HTML report with copyable commands. After this-turn approval of shown paths, may start a local report server that only moves allowlisted cache paths to Trash. Do not use for RAM/process memory, Windows dev-process cleanup, Downloads file sorting, startup-app optimization, or Linux-only hosts.

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
26
Scripts
5
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 5 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/build_report.py, scripts/paths.py, scripts/scan.py, scripts/server.py, tests/storage-analyzer.test.mjs

What it does and when to use it

Use when the user wants a read-only disk/storage analysis on macOS or Windows: 磁盘满了, C盘满了, 空间不够, 存储分析, 占空间, 清缓存, storage analysis, disk cleanup, or Chinese 内存满了 when they mean disk space. Scans known hotspots, classifies cache vs user data vs keep, and writes an HTML report with copyable commands. After this-turn approval of shown paths, may start a local report server that only moves allowlisted cache paths to Trash. Do not use for RAM/process memory, Windows dev-process cleanup, Downloads file sorting, startup-app optimization, or Linux-only hosts.

Original author description

Use when the user wants a read-only disk/storage analysis on macOS or Windows: 磁盘满了, C盘满了, 空间不够, 存储分析, 占空间, 清缓存, storage analysis, disk cleanup, or Chinese 内存满了 when they mean disk space. Scans known hotspots, classifies cache vs user data vs keep, and writes an HTML report with copyable commands. After this-turn approval of shown paths, may start a local report server that only moves allowlisted cache paths to Trash. Do not use for RAM/process memory, Windows dev-process cleanup, Downloads file sorting, startup-app optimization, or Linux-only hosts.

How it works

  1. Routing
  2. Workflow
  3. Output
  4. Resources
Original SKILL.md headings · 57 lines, 317 words
SKILL.md preview
---
name: storage-analyzer
description: "Use when the user wants a read-only disk/storage analysis on macOS or Windows: 磁盘满了, C盘满了, 空间不够, 存储分析, 占空间, 清缓存, storage analysis, disk cleanup, or Chinese 内存满了 when they mean disk space. Scans known hotspots, classifies cache vs user data vs keep, and writes an HTML report with copyable commands. After this-turn approval of shown paths, may start a local report server that only moves allowlisted cache paths to Trash. Do not use for RAM/process memory, Windows dev-process cleanup, Downloads file sorting, startup-app optimization, or Linux-only hosts."
category: developer-tools-integrations
tags:
  - disk
  - storage
  - cleanup
  - windows
  - macos
  - cache
version: 0.1.0
allowed-tools: Read, Glob, Grep, Bash(python *), Bash(py *)
metadata:
  owner: lyh
  review_cadence: quarterly
  mode: governed
---

In the commands below, `<skill-dir>` is this skill's base directory, announced when the skill loads. Substitute the literal path. On Windows, `py -3` may replace `python`.

Default: scan and write a static HTML report. Do not start `server.py` until the user approves the shown absolute paths in this turn.

## Routing

- Disk full, C: drive, storage analysis, cache cleanup: this skill.
- RAM / which process uses memory: refuse.
- Windows dev-process leftover trees: `windows-dev-process-cleanup`.
- Downloads categorize/rename: `file-sorter`.
- Startup apps: refuse; this skill does not disable startup items.
- Linux hosts: refuse. `scan.py` exits 2 with `unsupported_platform`.

## Workflow

1. Scan (read-only). `--output` must be an absolute path. Do not capture JSON with PowerShell `>`.

```text
python "<skill-dir>/scripts/scan.py" --output <abs-scan.json>
```

Windows default groups: AppData Local/Roaming, Temp, Downloads, existing dev cache roots. Do not pass `--include-system-apps` unless the user asked to size Program Files.

2. Read [classification.md](references/classification.md) and the OS file: [windows.md](references/windows.md) or [macos.md](references/macos.md). Write `analysis.json` with `top5`, `green`, `yellow`, `red`, `summary`. Green `trash_paths` must sit under [cache-prefixes.json](references/cache-prefixes.json).

3. Build the static report:

```text
python "<skill-dir>/scripts/build_report.py" <abs-analysis.json> --output <abs-report.html>
```

Open the HTML for the user. Summarize estimated reclaim, the first two actions, and the highest-risk item.

4. After this-turn approval of the exact trash/open paths, start the local server in the background and give the user `REPORT_URL`:

```text
python "<skill-dir>/scripts/server.py" <abs-analysis.json> --no-browser
```

The server accepts `trash` and `open` only. `rm` is disabled. Green trash still has to match the prefix table. Stop the server when the user is done.

Do not call `rm`, `Remove-Item`, or `SHFileOperation` on user paths. Trash goes only through `server.py`.

## Output

Report scan path, report path, denied directories, and whether the session stayed on the static report. Mark real Recycle Bin execution, isolated install, provider comparison, and human blind review as `missing evidence`.

## Resources

- [scan-safety.md](references/scan-safety.md)
- [classification.md](references/classification.md)
- [report-schema.md](references/report-schema.md)
- [cache-prefixes.json](references/cache-prefixes.json)
- [windows.md](references/windows.md)
- [macos.md](references/macos.md)
Files in this package (26)
  • LICENSE 1 KB
  • README.md 2 KB
  • SKILL.md 3 KB
  • THIRD_PARTY_NOTICES.md 1 KB
  • manifest.json 1 KB
  • agents/interface.yaml 1 KB
  • assets/report_template.html 26 KB
  • evals/evals.json 4 KB
  • evals/trigger_cases.json 2 KB
  • references/cache-prefixes.json 1 KB
  • references/classification.md 1 KB
  • references/macos.md 1 KB
  • references/report-schema.md 1 KB
  • references/scan-safety.md 1 KB
  • references/windows.md 1 KB
  • reports/creation-handoff.md 2 KB
  • reports/prior-art-research.md 2 KB
  • reports/secret-scan.md 1 KB
  • reports/skill-ir.json 5 KB
  • reports/trigger-eval.json 5 KB
  • scripts/build_report.py 3 KB
  • scripts/paths.py 6 KB
  • scripts/scan.py 15 KB
  • scripts/server.py 12 KB
  • security/permission_policy.json 3 KB
  • tests/storage-analyzer.test.mjs 10 KB

Versions

RepositoryScoreLicence
This page · bahayonghang/my-ai-cli-toolkit100MIT
kkkkhazix/khazix-skills100MIT

Database snapshot: 13.11.2026 · package version 187fc3767348 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100storage-analyzer-khazix
    macOS / Windows 只读存储分析助手(自动识别系统)。扫描整机磁盘占用,找出占空间大户,把每一项分成 🟢可自动清理 / 🟡需人工判断 / 🔴谨慎清理 三级并给出可执行处置方案,生成排版精美、可折叠、命令可一键复制的交互式 HTML…
  • 95disk-cleaner
    macOS / Windows 磁盘清理专家(自动识别系统)。借鉴 Mole、CCleaner、Dism++ 的安全检测机制,结合 AI 语义分析,多维度扫描磁盘占用,智能识别垃圾文件, 生成交互式 HTML 报告 + 本地安全服务器支持一键清理(移废纸篓/直接删除)。 扫描全程只读。务必在以下场景使用: 用户说"磁盘满了""空间不够""清理电脑""清理缓存""释放空间""Mac/电脑 占用太多"、 "没内存了""storage full""clean my mac""free up space""disk cleanup""磁盘清理";…
  • 100genizah
    Safely free up disk space on a Mac, Windows PC or Linux machine, step by step, with the user's approval before anything is deleted and an extra warning before anything important goes. Use this whenever the user says their computer, laptop or disk is full, low on storage,…
  • 100clean-disk-space
    Safe disk space analysis and cleanup workflow for local machines. Use when asked to analyze full disks, identify large cache/log/temp/build artifacts, produce a cleanup report, run or simulate dry-runs, wait for user approval, and then clean only confirmed redundant files…
  • 100mac-software-storage-cleanup
    Use when auditing macOS app storage, cleaning priority caches, or recommending reclaimable disk space.
  • 90hdd-storage-cleaning
    Audit a full disk and free space safely: measure first, prove a restore path, show exact objects, delete only what the user approved. Use when the disk is full, free up space, what is eating my storage, or before a risky cleanup on Mac or Windows.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.