mac-cleanup
Skill4 starsChanged 10 days agoApache-2.0View on GitHub
Optimize Mac workstation and Hetzner Coolify disk space, prune merged git worktrees across all apps, clean Xcode symbols/simulators, and flush package caches. Use when checking disk health or optimizing local storage.
- Deletes or force-pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- julianosirtori/skillstheir own version, first seen Nov 8, 2026
- jaywedgeworth22/BotFleetword for word, first seen Nov 3, 2026
- kevintraver/agent-skillstheir own version, first seen Nov 1, 2026
- awpthorp/mac-cleanuptheir own version, first seen Oct 25, 2026
- Tgoldi/claude-skillstheir own version, first seen Oct 13, 2026
- janrocnik791/mac-cleanuptheir own version, first seen Aug 26, 2026
Other versions8 projects use a version of this.
Word for word · 1
- jaywedgeworth22/BotFleet★ 4100% same
Edited · 0
None found.
Wrote their own version · 7
- WiseWong6/wise-skills★ 10same name
- kevintraver/agent-skills★ 1same name
- awpthorp/mac-cleanup★ 0same name
- FournineCS/claude-skills★ 0same name
- janrocnik791/mac-cleanup★ 0same name
- julianosirtori/skills★ 0same name
- Tgoldi/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/merge-when-ready.mdcCursor rule
- apple-notesSkill
- board-opsSkill
- closeoutSkill
- codex-triageSkill
- deploy-verifySkill
- dns-and-registrarsSkill
- drive-grok-tuiSkill
- fleet-coordinationSkill
- fleet-infraSkill
- land-laneSkill
- owner-copySkill
- pickup-seatSkill
- secret-handoffSkill
- sentence-gapSkill
- session-startSkill
- unstick-prSkill
- windows-releaseSkill
- phone-harnessSkill
The file
Files
Mac & Hetzner Disk Cleanup Skill (ALL AGENTS)
Shared
~/.claude/skills. Monet, Claude/Fable, and (when active) Renoir all load this directory. Do not treat the word Monet in examples as proof of your seat. PinAGENT_SEAT/AGENT_TAGfrom the logged-in account before Slack orboard --by:
- Monet →
MONET, NotesMonet,monet/,~/apps/<app>-monet- Claude / Fable →
CLAUDE, NotesClaude,claude/,~/apps/<app>-claude- Renoir →
RENOIR, NotesRenoir,renoir/,~/apps/<app>-renoirCursor, Grok, Grok Bot, Codex, AG, DeepSeek, Kimi, and Fx have their own skill dirs and must not take identity from here.
Optimize local workstation storage and remote Coolify server disk usage by running the unified automated maintenance sweep.
How to Run the Cleanup
1. Direct Command (All Platforms)
Any agent (Antigravity, Grok, Claude, Cursor, Codex) or operator can execute the unified cleanup script directly:
bash /Users/jay/apps/mac-auto-cleanup.shOr using the CLI shortcut (available in zsh and bash):
mac-auto-cleanup2. What It Cleans (Safe & Idempotent)
- Merged Git Worktrees:
- Owned by
com.jay.disk-janitor(clean + idle + no--force). This script does not reap worktrees or wipe~/.grok/worktrees.
- Owned by
- Xcode Developer Caches:
- Cleans
~/Library/Developer/Xcode/iOS DeviceSupportsymbols. - Cleans
~/Library/Developer/Xcode/DerivedDatabuild caches. - Prunes unavailable simulators only (
xcrun simctl delete unavailable). Neverrm -rfCoreSimulator/Devices.
- Cleans
- Package Manager Caches:
npm cache clean --forceand~/.npm/_npxpnpm store pruneyarn cache cleanbrew cleanup -s
- Spotlight PipelineStorage Journals:
- Truncates oversized Apple Intelligence / CoreSpotlight
PipelineStoragejournals.
- Truncates oversized Apple Intelligence / CoreSpotlight
- Agent Session Transcripts:
- Prunes Grok session transcripts older than 7 days (
~/.grok/sessions). - Prunes old Codex archived sessions (
~/.codex/archived_sessions). - Prunes old Antigravity brain conversation folders older than 7 days (
~/.gemini/antigravity/brain).
- Prunes Grok session transcripts older than 7 days (
- Remote Hetzner Coolify Server (
167.233.254.55):- Automatically triggers remote Docker cleanup (
docker builder prune -af --filter "until=72h"anddocker system prune -af --volumes).
- Automatically triggers remote Docker cleanup (
Scheduled Automation
- Mac LaunchAgent:
~/Library/LaunchAgents/com.jay.mac-cleanup.plistruns automatically every 4 hours (StartInterval: 14400). - Hetzner Cron:
/etc/cron.d/coolify-maintenanceruns automatically every 4 hours.
Quick Status Check
To view live disk space and system process health:
ms
# or
bash ~/apps/mac-status.shDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

