# Mac Maintenance

Mac upkeep: brew update/upgrade, pull clean repos, empty Trash.

- Repository: https://github.com/steipete/agent-scripts (7431 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add steipete/agent-scripts --skill mac-maintenance -g -a claude-code -y`
Codex: `npx skills add steipete/agent-scripts --skill mac-maintenance -g -a codex -y`
Cursor: `npx skills add steipete/agent-scripts --skill mac-maintenance -g -a cursor -y`
Gemini CLI: `npx skills add steipete/agent-scripts --skill mac-maintenance -g -a gemini-cli -y`

## Description

Mac upkeep: brew update/upgrade, pull clean repos, empty Trash.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

