mac-maintenance
Mac upkeep: brew update/upgrade, pull clean repos, empty Trash.
Install
Copy this folder into your Claude Code project (needs Node.js):
npx degit steipete/agent-scripts/skills/mac-maintenance .claude/skills/mac-maintenanceOr install it for every project:
npx degit steipete/agent-scripts/skills/mac-maintenance ~/.claude/skills/mac-maintenanceFile content
Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗
---
name: mac-maintenance
description: "Mac upkeep: brew update/upgrade, pull clean repos, empty Trash."
---
# Mac Maintenance
Use when Peter asks for Mac cleanup, maintenance, or package/repo refresh.
## Run
1. Homebrew:
```bash
brew update && brew upgrade
```
2. Repos under `~/Projects`:
```bash
for repo in ~/Projects/*/.git; do
dir=${repo:h}
git -C "$dir" status --short --branch
git -C "$dir" pull --ff-only
done
```
Skip dirty repos unless Peter explicitly asked to handle them. Report skipped paths.
3. Empty Trash:
```bash
osascript -e 'tell application "Finder" to empty trash'
```
4. Finish with terse counts:
- brew: upgraded / already current
- repos: pulled / skipped / failed
- trash: emptied / failed