About mac-maintenance
Mac Maintenance is a skill for running a defined Mac upkeep routine. It updates Homebrew packages and clean Git repositories under ~/Projects, empties the Trash, and reports counts for completed, skipped, or failed tasks.
Key features
- 01Update and upgrade Homebrew packages
- 02Pull clean repositories under ~/Projects
- 03Skip dirty repositories by default
- 04Empty the Finder Trash
- 05Report task counts
Use cases
- 01Perform routine Mac package updates
- 02Refresh clean project repositories
- 03Run cleanup and review skipped or failed tasks
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ steipete/ agent-scripts --skill mac-maintenanceAfter installing, type/mac-maintenancein Claude Code to confirm it loaded.
Details
From the project READMEMac Maintenance
Use when Peter asks for Mac cleanup, maintenance, or package/repo refresh.
Run
- Homebrew:
brew update && brew upgrade
- 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.
- Empty Trash:
osascript -e 'tell application "Finder" to empty trash'
- Finish with terse counts:
- brew: upgraded / already current
- repos: pulled / skipped / failed
- trash: emptied / failed
Comments
Markdown supported