mac-maintenance

Update Homebrew packages, pull git repositories, and empty the Trash on macOS.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/Khang5687/agent-scripts --skill mac-maintenance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mac-maintenance
Source: https://github.com/Khang5687/agent-scripts/tree/main/skills/mac-maintenance
Command: npx skills add https://github.com/Khang5687/agent-scripts --skill mac-maintenance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manages Mac cleanup, updates, and repository maintenance with minimal user interaction.

Core Features & Use Cases

  • System Updates: Updates Homebrew packages and manages system repositories.
  • Repository Management: Pulls changes from repositories under ~/Projects.
  • Trash Cleaning: Empties the Trash to free up disk space.
  • Use Case: When Peter requires a quick cleanup and update of his Mac, this skill performs all necessary actions without further input.

Quick Start

Run the mac-maintenance skill to perform system update, repository pull, and Trash emptying.

Frequently Asked Questions about mac-maintenance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Homebrew updates and git repository pulls on macOS?

To automate Homebrew updates and git repository pulls on macOS, use a single command that executes Homebrew update and upgrade, then manually pulls changes from git repositories under the ~/Projects directory.

What is the best way to clean up disk space and empty Trash on Mac periodically?

The best way to clean up disk space and empty Trash on Mac periodically is running a maintenance skill that empties the user's Trash while simultaneously updating Homebrew packages and pulling repository changes.

Can I update Homebrew packages and manage git repositories in one command?

Yes, you can update Homebrew packages and manage git repositories in one command by running a script that performs system-wide updates, pulls changes from repositories under ~/Projects, and empties the Trash.

Does Mac maintenance with Homebrew require manual input for each repository?

No, Mac maintenance with Homebrew does not require manual input for each repository; the script automatically pulls changes from repositories located under the ~/Projects directory without further user interaction.

What happens to my local git changes when running repository management scripts?

The script performs manual git pulls from repositories under ~/Projects. It is designed for periodic maintenance without further input, so local changes may conflict with pulled updates if not committed beforehand.

Do I need Homebrew installed to run Mac maintenance commands?

Yes, you need Homebrew installed because the maintenance script executes Homebrew update and upgrade commands to perform system-wide package updates on your macOS machine.