# puremac-macos-cleaner

This skill guides coding agents through building PureMac, adding custom cleanup targets, and automating macOS system maintenance with zero telemetry.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 484 installs · ★ 88
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/puremac-macos-cleaner/SKILL.md
- Updated: 2026-10-09
- HTML: https://affpapa.org/en/nevibecode/skills/puremac-macos-cleaner

## What it does

PureMac is a native SwiftUI utility that cleans user caches, package manager directories from pip and npm, and developer leftovers like `DerivedData` or simulators. It frees APFS purgeable space via `tmutil`. No network calls happen. All file operations remain strictly local.

The skill instructs your agent on extending the Swift codebase. You can register custom targets inside `CleanCategory.swift`, add scanning logic in `ScannerService.swift`, and wire deletions in `CleanerService.swift`. Automatic sweeps run on intervals from hourly to monthly.

Compiling from source demands macOS 13.0+, Swift 5.9, Xcode 15+, and `xcodegen`. Items over 100 MB or older than 1 year are never removed automatically.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill puremac-macos-cleaner -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/puremac-macos-cleaner/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/puremac-macos-cleaner/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill puremac-macos-cleaner -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/puremac-macos-cleaner/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill puremac-macos-cleaner -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/puremac-macos-cleaner/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills puremac-macos-cleaner
```

2. **Manually: put the files in place**
- File: `.github/skills/puremac-macos-cleaner/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill puremac-macos-cleaner -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/puremac-macos-cleaner
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/puremac-macos-cleaner/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill puremac-macos-cleaner -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/puremac-macos-cleaner/SKILL.md

## When to use it
- build PureMac from source using `xcodegen` and `xcodebuild`
- purge Xcode `DerivedData`, simulator caches, and Homebrew data
- register new scanning categories in `CleanCategory.swift`
- set up recurring macOS cache cleanup intervals

## Example prompts
- Show me how to build PureMac from source with xcodebuild
- Help me add a Gradle cache cleaning option to CleanCategory.swift
- Configure PureMac to run an automatic clean sweep daily

## Similar
- [build-macos-apps](https://affpapa.org/en/nevibecode/plugins/build-macos-apps.md) — plugin · ★ 7604
- [macos-development](https://affpapa.org/en/nevibecode/skills/macos-development.md) — skill · 1600 installs
- [axiom-macos](https://affpapa.org/en/nevibecode/skills/axiom-macos.md) — skill · 1300 installs
- [macos-build](https://affpapa.org/en/nevibecode/skills/macos-build.md) — skill · 609 installs
- [macos-auto-update](https://affpapa.org/en/nevibecode/skills/macos-auto-update.md) — skill · 560 installs
- [macos-menubar-tuist-app](https://affpapa.org/en/nevibecode/skills/macos-menubar-tuist-app.md) — skill · 681 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 199 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
