This skill should be used when the user asks to "clean up my Mac", "free disk space", "my disk is full", "what's taking up space", "reclaim storage", "offload files", or wants to dedupe/archive backups and media to remote storage. Provides a scan → categorize → offload/clean → reclaim workflow with tested scripts and macOS-specific gotchas.
Ships in sejas-ai-code-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Free disk space on macOS safely: find the real space hogs, sort them into
risk buckets, offload irreplaceable data to remote storage, delete only what
regenerates, and actually reclaim the space. Built for stock macOS (bash 3.2,
openrsync, permission-restricted rm, trash CLI) and Hetzner Storage Box
offload.
references/cleanup-playbook.md).trash frees nothing on its own.Run the read-only scanner:
bash ~/.claude/skills/mac-cleanup/scripts/scan-disk.sh
It reports free space and ranked consumers across $HOME, Library/Group Containers (Parallels VMs hide here), Application Support, Caches, package
caches, Docker, node_modules, Downloads, and Trash.
Sort each hog using references/cleanup-playbook.md:
Set up the remote once (Hetzner Storage Box — see references/macos-quirks.md
for ssh-copy-id -s). Create the remote dir, then use the retry-loop offloader
(survives SSH drops, removes local only after each file verifies):
ssh <alias> "mkdir -p pictures"
bash ~/.claude/skills/mac-cleanup/scripts/offload-retry.sh <alias>:pictures/ ~/Documents/photos-disk
For backups, dedupe first — keep latest per site:
python3 ~/.claude/skills/mac-cleanup/scripts/backup-dedup.py ~/Downloads
# writes /tmp/backup_move.txt (latest per site) + /tmp/backup_delete.txt (older)
ssh <alias> "mkdir -p studio-wordpress-backups"
SRCS=(); while IFS= read -r p || [ -n "$p" ]; do [ -n "$p" ] && SRCS+=("$p"); done < /tmp/backup_move.txt
bash ~/.claude/skills/mac-cleanup/scripts/offload-retry.sh <alias>:studio-wordpress-backups/ "${SRCS[@]}"
Run long transfers in the background and report on completion.
npm cache clean --force
docker system prune -a --volumes -f # daemon must be running
For cache directories, use trash (not rm — usually blocked):
trash ~/.cache ~/Library/Caches/{ms-playwright,electron,typescript,Cypress,Yarn,node-gyp,pip}
find <dir> -type f | wc -l → 0,
then trash the empty shells.ssh <alias> "du -sh <remote>/*".osascript -e 'tell application "Finder" to empty trash'
scan-disk.sh; report before/after free space.Read references/macos-quirks.md before scripting. Highlights:
mapfile; read lists with while IFS= read -r p || [ -n "$p" ].--append-verify; use -avP --remove-source-files --timeout=120.rm/rmdir blocked, trash allowed; ~/.Trash not shell-readable.offload-retry.sh).Docker.raw auto-shrinks on APFS after prune.scripts/scan-disk.sh — read-only hog scanner.scripts/offload-retry.sh — rsync-to-remote with SSH-drop retry + verified local removal.scripts/backup-dedup.py — group WP/Studio backups by site, emit move/delete lists.references/cleanup-playbook.md — the four buckets + decision flow + never-delete list.references/macos-quirks.md — bash/openrsync/trash/SSH/Docker specifics.What SKILL.md sets; muted values are Claude Code's defaults
/sejas-ai-code-skills:mac-cleanupfrom sejas-ai-code-skills
sejas-ai-code-skills@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin sejas-ai-code-skills40 skills in this plugin
/ai-prsList all open PRs targeting the Studio AI command with draft status, approval state, and requested reviewers/ai-radarUse when Antonio wants to catch up on frontier AI — "what's new in AI", "AI radar", "what is karpathy working on", "AI trends", "research digest", "what should I learn next", "where to invest learning time", or /ai-radar./blog-postThis skill should be used when the user asks to "write a blog post", "draft a blog post", "create a blog post", "write an article about", or wants to produce a markdown blog post on any topic. Outputs to ~/claude.nosync/posts/.