Mac maintenance

From steipete/agent-scripts · View interactive version

Mac maintenance is an AI agent skill from the GitHub repository steipete/agent-scripts. Mac upkeep: brew update/upgrade, pull clean repos, empty Trash.

How to use this skill

Skill file

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:
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.