Skills

Mac Maintenance

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

Install

npx skills add steipete/agent-scripts --skill mac-maintenance -g -a claude-code -y
Category
Engineering
Updated
5d ago
License
MIT
Context cost
Lightabout 156 tokens
Runs scripts
No, instructions only

What it does

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:
brew update && brew upgrade
  1. Repos under ~/Projects:
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.

  1. Empty Trash:
osascript -e 'tell application "Finder" to empty trash'
  1. Finish with terse counts:
  • brew: upgraded / already current
  • repos: pulled / skipped / failed
  • trash: emptied / failed

More in Engineering