disk-magician
Use when diagnosing disk capacity or growth and when previewing repository-gated cache, temp, or worktree cleanup.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- disk-magician
- description
- Use when diagnosing disk capacity or growth and when previewing repository-gated cache, temp, or worktree cleanup.
03 SKILL.md 正文
Disk Magician — Claude Skill
This skill teaches Claude how to use disk_magician to audit disk space, identify growth regressions, and perform cleanups.
Measurement rule
All Disk Magician measurements, reports, cleanup previews, and candidate scans follow ../disk-root-cause/SKILL.md § Mandatory 100 MiB directory descent. A large directory total or prefix bucket locates where to investigate; it cannot stand in for child measurements, leaf age, or reclaim eligibility. Candidate size filters such as DISK_MAGICIAN_SCRATCH_MIN_KB only prioritize already traversed candidates; they never limit descent.
Skill Integration & Commands
-
Which procedure: a quick capacity check runs the zero-
dutriage in../disk-audit/SKILL.md. A reclaimable-amount estimate, root-cause investigation, or cleanup-target decision runs the full forensic procedure in../disk-root-cause/SKILL.md. Do not stop at a quick check when the request needs attribution. On the quick path, escalate when precomputed data is missing or its owner reports it stale or incomplete; follow the probe result rather than a fixed interval. -
Default forensic diagnosis (attribution only): For a root-cause, floor, growth, or reclaim-estimate request, follow
../disk-root-cause/SKILL.mdafter the quick probes. Run the full three-lanediskm auditunless a current report proves complete 100 MiB leaf coverage for every requested path and period; directory-aggregate snapshots do not prove this coverage. Use resolved portions, name unfinished paths, and do not estimate reclaim from incomplete paths. -
Cleanup previews: Use the canonical preview interfaces before choosing a cleanup target:
diskm clean --dry-run diskm clean-all --dry-run diskm worktree-hygieneworktree-hygieneis report-only by default. For a narrower preview, use the selecteddiskmcleanup command with its documented dry-run mode.Never report the cleanup stack exhausted while free space remains below target. If a run reports
0 Breclaimed, inspect the per-target skip reasons (such askept:lease-busy,kept:recent-activity, orkept:admin-unknownwhen emitted) and the current lock holder before concluding there are no eligible targets.
Safety Constraints & Guardrails
- Recency: Follow each canonical cleanup command's current per-tool mtime, activity, lease, owner, and Git safety rules. Do not add a 14-day floor or override an owner's rule.
- Action gates: A live request or existing standing authorization covers the same action, targets, and outcome across its steps. Complete that work with the canonical
diskmcommand and satisfy its documented gates. Flags such asWORKTREE_APPROVED=1activate a command gate; they do not grant authority. Ask before expanding to new actions or targets not covered by the request. - Never-delete list: Never delete, quarantine, truncate, or prune
~/.codex/sessions,~/.codex/sessions_archive/,~/.codex/state*.sqlite,~/.codex/log, or~/.claude/projectsby any command. The normal cleanup path is not an exception. Read-only metadata measurement may follow the 100 MiB descent rule without reading file contents.
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.