Mac Dev Cleanup — AI skill for Claude Code
Safely free disk space and RAM on a macOS dev machine: package caches, Xcode/iOS simulator cleanup, AI-agent worktree sweep, memory-hog triage.
How to install Mac Dev Cleanup
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dipaksavaliya/mac-dev-cleanup and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Mac Dev Cleanup does
Safely free disk space and RAM on a macOS dev machine: package caches, Xcode/iOS simulator cleanup, AI-agent worktree sweep, memory-hog triage. A Claude Code skill that also runs by hand.
Alternatives in AI
- Claw Empire — Command Your AI Agent Empire from the CEO Desk — A local-first AI agent office simulator that orchestrates CLI 1.1k ★
- onWatch — Open-source Go CLI that tracks AI API quota usage across 7 providers (Synthetic, Z.ai, Anthropic, Codex, GitHu 397 ★
- Slotstream — Run a 105 GB AI model on a Mac that can't hold it 396 ★
README
mac-dev-cleanup
Safely free **disk space and RAM** on a macOS developer machine: package caches, Xcode and iOS simulator data, leftover AI-agent worktrees, idle Docker VMs, and memory hogs.
It ships as a [Claude Code](https://claude.com/claude-code) skill (type `/cleanup`), and every script also runs fine by hand.
**The rule it follows:** only remove things that rebuild themselves. Anything that could be someone's work (uncommitted code, Xcode archives, simulator app data, phone backups) is rescued, listed for you to decide, or left alone. Nothing personal is ever hard-deleted.
What it cleans
| Area | What | How |
|---|---|---|
| Package caches | uv, npm, pnpm, bun, pip, Homebrew, Docker build cache, Colima disk trim | disk-batch.sh runs automatically |
| iOS / Xcode | DerivedData, Xcode caches, SwiftUI previews, simulator caches, old DeviceSupport, unavailable simulators, CocoaPods / SwiftPM / Carthage caches, React Native Metro caches | ios-clean.sh reports; --apply cleans |
| iOS, ask first | Xcode Archives, simulator runtimes, all simulator data, extra Xcode versions | listed with the exact command; never automatic |
| AI-agent worktrees | Git worktrees left by Claude Code, Codex and other agents | worktree-audit.sh labels LIVE / SAFE / RESCUE / PHANTOM; unmerged work is saved to a branch + patch before removal |
| RAM / CPU | Processes over 3 GB, idle Gradle daemons, booted simulators, SourceKitService leaks, idle or wedged Colima, leaked ChatGPT Codex helpers, zombies, orphans | process-triage.sh reports; you approve each kill |
| Printed for you | Gradle and Chrome caches | shown with a one-line command; you run it with your IDE/browser closed |
Install
As a Claude Code skill
git clone https://github.com/dipaksavaliya/mac-dev-cleanup ~/.claude/skills/cleanup
Then type `/cleanup` in Claude Code, or just say "my disk is full" or "my Mac is slow". Other agents that read `SKILL.md` files work too,
Related Skills
Pc Cleanup Performance
Cross-platform skill that lets your AI coding agent (Claude Code, Codex, Cursor...) safely clean up and speed
Xcfs
Run several AI coding agents (Claude Code, Codex, Cursor) on one Xcode project in parallel: each gets a git wo
Cleanup Cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Agent Hoard
Local disk space manager for AI coding agents (DSH, Codex, Claude Code, Cursor, Gemini, Aider...) - risk-tiere
Lagless
A native macOS task manager for the age of AI agents: see every Claude Code session, Codex thread and MCP serv
System Cleanup
Agent Skill: safely clean Windows with any AI coding agent (Trae / Claude Code / Cursor / CodeBuddy / ZCode) -
Related Agents
Machinist
Watches and frees the Mac's physical resources (RAM, CPU, heat) — hunts abandoned processes, compressed memory
Hardware Researcher
Research phase: probe this machine (CPU, RAM, load) and recommend how many agents and test runs can safely run
Orquestrador
Watches the machine's resources (RAM, CPU, disk, processes, ports). Invoke before starting a heavy build/dev s