| name | disk-magician-claude |
| description | Use when diagnosing disk capacity or growth and when previewing repository-gated cache, temp, or worktree cleanup. |
Disk Magician โ Claude Skill
This skill teaches Claude how to use disk_magician to audit disk space, identify growth regressions, and perform cleanups.
Skill Integration & Commands
Safety Constraints & Guardrails
- Mtime Caution: Worktrees and agent sessions with modification time < 14 days require explicit
WORKTREE APPROVED confirmation from the user before deletion.
- Never-delete list: Do not delete
~/.codex/sessions, ~/.codex/sessions_archive/, ~/.codex/state*.sqlite, ~/.codex/log, or ~/.claude/projects directly. Always run cleanups through disk_magician.sh to ensure safety filters are respected.