Skip to content
Back to skills

Mac Maintenance

ASecurity

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

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 10, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned October 10, 2026

npx -y skills add mouadja02/skills --skill mac-maintenance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mac Maintenance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mac Maintenance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouadja02-mac-maintenance/badge)](https://www.skillsdirectory.com/skills/mouadja02-mac-maintenance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mac-maintenance
description: "macOS upkeep: brew update/upgrade, pull clean repos, empty Trash."
source: "https://github.com/steipete/agent-scripts"
attribution: "steipete/agent-scripts by Peter Steinberger"
version: "1.0.0"
platform: macos
---

# Mac Maintenance

> **Attribution:** Sourced from [steipete/agent-scripts](https://github.com/steipete/agent-scripts) by [Peter Steinberger](https://github.com/steipete).

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

## Run

### 1. Homebrew update

```bash
brew update && brew upgrade
```

### 2. Pull repos

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

### 3. Empty Trash (macOS)

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

## Summary

Finish with terse counts:
- brew: `N packages upgraded` / `already current`
- repos: `N pulled` / `N skipped (dirty)` / `N failed`
- trash: `emptied` / `failed`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…