Mac maintenance

From mouadja02/skills · View interactive version

Mac maintenance is an AI agent skill from the GitHub repository mouadja02/skills. Runs macOS upkeep: Homebrew update and upgrade, pulling clean git repositories, and emptying the Trash. Use when asked for Mac cleanup, maintenance, or a refresh of packages and repos.

How to use this skill

Skill file

Mac Maintenance

Attribution: Sourced from steipete/agent-scripts by Peter Steinberger.

Use when asked for Mac cleanup, maintenance, or package/repo refresh.

Run

1. Homebrew update

brew update && brew upgrade

2. Pull repos

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 explicitly asked to handle them. Report skipped paths.

3. Empty Trash (macOS)

osascript -e 'tell application "Finder" to empty trash'

Summary

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.