💻 MacBook Optimizer
Complete MacBook health & performance suite - No installation required
A comprehensive, user-friendly skill for monitoring, optimizing, and troubleshooting MacBook performance. Works on all Macs (Intel & Apple Silicon) using built-in macOS tools. Unlike specialized tools, this provides actionable recommendations and automated fixes.
Why This Skill is Better
✅ No installation required - Uses built-in macOS tools
✅ Works on all Macs - Intel & Apple Silicon
✅ Actionable recommendations - Not just metrics, but solutions
✅ Automated fixes - Can clean up and optimize automatically
✅ User-friendly - Plain language, not technical jargon
✅ Complete suite - Monitoring + troubleshooting + optimization
✅ GUI-first - Opens visual tools automatically for non-technical users
✅ Visual reports - Charts, graphs, and emoji indicators for easy understanding
Capabilities
🔍 System Monitoring
- CPU Analysis: Real-time CPU usage, temperature (via
powermetrics), load averages, per-process breakdown
- Memory Health: RAM usage, memory pressure, swap usage, identify memory leaks
- Disk Intelligence: Space analysis, find large files/folders, duplicate detection, cache locations
- Battery Diagnostics: Health percentage, cycle count, capacity, charging status, power consumption
- Thermal Monitoring: System temperature, thermal state, identify overheating causes
- Network Activity: Bandwidth usage, active connections, identify bandwidth hogs
⚡ Optimization Tools
- Smart Cleanup: Automatically find and remove caches, logs, temp files, downloads, duplicates
- Process Management: Identify resource hogs, suggest optimizations, safe process termination
- Startup Optimization: Manage login items, background apps, reduce boot time
- Storage Optimization: Find large files, suggest deletions, empty trash, clear caches
- Performance Tuning: System settings recommendations, disable unnecessary services
🛠 Troubleshooting
- Slowdown Diagnosis: Identify bottlenecks (CPU/memory/disk/network), root cause analysis
- Overheating Solutions: Find hot processes, suggest cooling strategies, thermal management
- Memory Issues: Detect leaks, suggest app restarts, memory optimization
- Disk Problems: Full disk analysis, permission issues, disk health checks
- Battery Issues: Health degradation, charging problems, power management
Usage Examples
Complete system check (with GUI):
Run a full system health check, show me the results visually, and fix any issues
Performance optimization (GUI mode):
My MacBook is slow. Open Activity Monitor and show me what's using resources
Overheating issue:
My MacBook is overheating. Show me the hot processes in Activity Monitor
Disk cleanup (visual):
Show me my disk usage visually and clean up automatically
Memory problems (GUI):
My Mac is using too much memory. Open Activity Monitor and highlight the memory hogs
Battery health (visual):
Show me my battery health in System Settings and optimize power settings
Startup optimization:
What's slowing down my Mac startup? Show me login items in System Settings
Find large files (visual):
Find all files larger than 1GB, show them in Finder, and suggest what I can delete
GUI-first requests:
Show me everything in Activity Monitor
Open System Settings to battery settings
Show me disk usage in a visual way
Advanced Commands Available
The agent intelligently uses these macOS tools:
System Info:
system_profiler - Complete hardware/software information
sysctl - System parameters and kernel settings
sw_vers - macOS version information
Process Monitoring:
top / htop - Real-time process monitoring
ps - Process status and details
lsof - List open files and network connections
launchctl list - Background services and daemons
Resource Monitoring:
vm_stat - Virtual memory statistics
iostat - Disk I/O statistics
netstat / lsof -i - Network connections
powermetrics - CPU/GPU power and temperature (Apple Silicon)
pmset -g therm - Thermal state (Intel Macs)
Disk Management:
df - Disk space usage
du - Directory size analysis
find - Locate large files
mdutil - Spotlight index management
Power & Battery:
pmset - Power management settings
ioreg - I/O registry (battery info)
system_profiler SPPowerDataType - Battery details
Cleanup:
rm - Safe file removal (with confirmation)
purge - Memory purge
- Cache locations:
~/Library/Caches, /Library/Caches, /var/folders
GUI Tools (Visual Interface):
open -a "Activity Monitor" - Launch Activity Monitor (CPU, Memory, Energy, Disk, Network)
open -a "System Settings" - Open System Settings (all system preferences)
open -a "System Settings" && open "x-apple.systempreferences:com.apple.preference.battery" - Battery settings
open -a "System Settings" && open "x-apple.systempreferences:com.apple.preference.storage" - Storage management
open -a "System Settings" && open "x-apple.systempreferences:com.apple.LoginItems-Settings.extension" - Login items
open -a "Finder" - Open Finder for file browsing
open ~/Library/Caches - Open Caches folder in Finder
open ~/Downloads - Open Downloads folder
open "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles" - Privacy settings
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility" - Accessibility permissions
Visual Reports:
- Generate HTML reports with charts (CPU, Memory, Disk usage over time)
- Create visual summaries with emoji indicators (🟢 Good, 🟡 Warning, 🔴 Critical)
- Open relevant System Settings panels automatically based on findings
🎨 GUI-First Experience
For users who prefer visual interfaces, the agent can:
- 📊 Open Activity Monitor automatically when showing system stats
- ⚙️ Navigate System Settings to relevant panels (Battery, Storage, Privacy)
- 📁 Open Finder to specific folders (Caches, Downloads, Large files)
- 📈 Generate visual reports with charts and graphs (HTML format)
- 🎯 Highlight issues in GUI apps with clear indicators
- 🔍 Show step-by-step with screenshots or GUI navigation
Example GUI Workflow:
- User: "My Mac is slow"
- Agent opens Activity Monitor → highlights CPU/Memory hogs
- Agent opens System Settings → shows relevant optimization settings
- Agent provides visual summary with emoji status indicators
Intelligent Automation
The agent can:
- ✅ Automatically clean safe caches and temp files (with user confirmation)
- ✅ Suggest optimizations based on system analysis
- ✅ Provide step-by-step fixes for common issues (with GUI navigation)
- ✅ Monitor continuously if requested (via cron jobs)
- ✅ Generate visual reports with charts, graphs, and actionable recommendations
- ✅ Open GUI tools automatically when showing system information
Safety & Privacy
- 🔒 Always asks before deleting files or killing processes
- 🔒 Protects system files and critical processes
- 🔒 Reviews before action - shows what will be deleted
- 🔒 No data collection - everything runs locally
- 🔒 Respects privacy - never sends data externally
Requirements
- ✅ macOS only (Intel & Apple Silicon)
- ✅ No installation needed - uses built-in tools
- ✅ Optional:
htop for prettier process view (brew install htop)
- ✅ Optional:
mactop for Apple Silicon detailed metrics (brew install mactop)
How to Use GUI Tools
When the user asks for visual information or mentions they're not technical:
- Always open Activity Monitor when showing CPU/Memory/Process info
- Navigate to relevant System Settings panels automatically
- Open Finder to specific folders when discussing files
- Generate visual summaries with emoji indicators (🟢🟡🔴)
- Provide step-by-step GUI navigation instructions
GUI Navigation Commands:
- CPU issues → Open Activity Monitor, sort by CPU
- Memory issues → Open Activity Monitor, sort by Memory
- Battery → Open System Settings → Battery
- Storage → Open System Settings → General → Storage
- Login items → Open System Settings → General → Login Items
- Large files → Open Finder, navigate to location, sort by size
Comparison with Other Tools
| Feature |
macbook-optimizer |
mactop |
| Installation required |
❌ No |
✅ Yes (brew) |
| Works on Intel Macs |
✅ Yes |
❌ No (Apple Silicon only) |
| Actionable recommendations |
✅ Yes |
❌ No (metrics only) |
| Automated cleanup |
✅ Yes |
❌ No |
| Troubleshooting |
✅ Yes |
❌ No |
| User-friendly |
✅ Yes |
⚠️ Technical |
| Complete suite |
✅ Yes |
⚠️ Monitoring only |
| GUI-first experience |
✅ Yes |
❌ CLI only |
| Visual reports |
✅ Yes |
❌ Text only |
1---2name: macbook-optimizer3description: Complete MacBook optimization suite: monitoring, troubleshooting, cleanup, and performance tuning. Works on all Macs (Intel & Apple Silicon). No extra tools required.4---5
6
7# 💻 MacBook Optimizer
8
9_Complete MacBook health & performance suite - No installation required_
10
11A comprehensive, user-friendly skill for monitoring, optimizing, and troubleshooting MacBook performance. Works on **all Macs** (Intel & Apple Silicon) using built-in macOS tools. Unlike specialized tools, this provides actionable recommendations and automated fixes.
12
13## Why This Skill is Better
14
15✅ **No installation required** - Uses built-in macOS tools
16✅ **Works on all Macs** - Intel & Apple Silicon
17✅ **Actionable recommendations** - Not just metrics, but solutions
18✅ **Automated fixes** - Can clean up and optimize automatically
19✅ **User-friendly** - Plain language, not technical jargon
20✅ **Complete suite** - Monitoring + troubleshooting + optimization
21✅ **GUI-first** - Opens visual tools automatically for non-technical users
22✅ **Visual reports** - Charts, graphs, and emoji indicators for easy understanding
23
24## Capabilities
25
26### 🔍 System Monitoring
27- **CPU Analysis**: Real-time CPU usage, temperature (via `powermetrics`), load averages, per-process breakdown
28- **Memory Health**: RAM usage, memory pressure, swap usage, identify memory leaks
29- **Disk Intelligence**: Space analysis, find large files/folders, duplicate detection, cache locations
30- **Battery Diagnostics**: Health percentage, cycle count, capacity, charging status, power consumption
31- **Thermal Monitoring**: System temperature, thermal state, identify overheating causes
32- **Network Activity**: Bandwidth usage, active connections, identify bandwidth hogs
33
34### ⚡ Optimization Tools
35- **Smart Cleanup**: Automatically find and remove caches, logs, temp files, downloads, duplicates
36- **Process Management**: Identify resource hogs, suggest optimizations, safe process termination
37- **Startup Optimization**: Manage login items, background apps, reduce boot time
38- **Storage Optimization**: Find large files, suggest deletions, empty trash, clear caches
39- **Performance Tuning**: System settings recommendations, disable unnecessary services
40
41### 🛠 Troubleshooting
42- **Slowdown Diagnosis**: Identify bottlenecks (CPU/memory/disk/network), root cause analysis
43- **Overheating Solutions**: Find hot processes, suggest cooling strategies, thermal management
44- **Memory Issues**: Detect leaks, suggest app restarts, memory optimization
45- **Disk Problems**: Full disk analysis, permission issues, disk health checks
46- **Battery Issues**: Health degradation, charging problems, power management
47
48## Usage Examples
49
50**Complete system check (with GUI):**
51```
52Run a full system health check, show me the results visually, and fix any issues
53```
54
55**Performance optimization (GUI mode):**
56```
57My MacBook is slow. Open Activity Monitor and show me what's using resources
58```
59
60**Overheating issue:**
61```
62My MacBook is overheating. Show me the hot processes in Activity Monitor
63```
64
65**Disk cleanup (visual):**
66```
67Show me my disk usage visually and clean up automatically
68```
69
70**Memory problems (GUI):**
71```
72My Mac is using too much memory. Open Activity Monitor and highlight the memory hogs
73```
74
75**Battery health (visual):**
76```
77Show me my battery health in System Settings and optimize power settings
78```
79
80**Startup optimization:**
81```
82What's slowing down my Mac startup? Show me login items in System Settings
83```
84
85**Find large files (visual):**
86```
87Find all files larger than 1GB, show them in Finder, and suggest what I can delete
88```
89
90**GUI-first requests:**
91```
92Show me everything in Activity Monitor
93Open System Settings to battery settings
94Show me disk usage in a visual way
95```
96
97## Advanced Commands Available
98
99The agent intelligently uses these macOS tools:
100
101**System Info:**
102- `system_profiler` - Complete hardware/software information
103- `sysctl` - System parameters and kernel settings
104- `sw_vers` - macOS version information
105
106**Process Monitoring:**
107- `top` / `htop` - Real-time process monitoring
108- `ps` - Process status and details
109- `lsof` - List open files and network connections
110- `launchctl list` - Background services and daemons
111
112**Resource Monitoring:**
113- `vm_stat` - Virtual memory statistics
114- `iostat` - Disk I/O statistics
115- `netstat` / `lsof -i` - Network connections
116- `powermetrics` - CPU/GPU power and temperature (Apple Silicon)
117- `pmset -g therm` - Thermal state (Intel Macs)
118
119**Disk Management:**
120- `df` - Disk space usage
121- `du` - Directory size analysis
122- `find` - Locate large files
123- `mdutil` - Spotlight index management
124
125**Power & Battery:**
126- `pmset` - Power management settings
127- `ioreg` - I/O registry (battery info)
128- `system_profiler SPPowerDataType` - Battery details
129
130**Cleanup:**
131- `rm` - Safe file removal (with confirmation)
132- `purge` - Memory purge
133- Cache locations: `~/Library/Caches`, `/Library/Caches`, `/var/folders`
134
135**GUI Tools (Visual Interface):**
136- `open -a "Activity Monitor"` - Launch Activity Monitor (CPU, Memory, Energy, Disk, Network)
137- `open -a "System Settings"` - Open System Settings (all system preferences)
138- `open -a "System Settings" && open "x-apple.systempreferences:com.apple.preference.battery"` - Battery settings
139- `open -a "System Settings" && open "x-apple.systempreferences:com.apple.preference.storage"` - Storage management
140- `open -a "System Settings" && open "x-apple.systempreferences:com.apple.LoginItems-Settings.extension"` - Login items
141- `open -a "Finder"` - Open Finder for file browsing
142- `open ~/Library/Caches` - Open Caches folder in Finder
143- `open ~/Downloads` - Open Downloads folder
144- `open "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles"` - Privacy settings
145- `open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"` - Accessibility permissions
146
147**Visual Reports:**
148- Generate HTML reports with charts (CPU, Memory, Disk usage over time)
149- Create visual summaries with emoji indicators (🟢 Good, 🟡 Warning, 🔴 Critical)
150- Open relevant System Settings panels automatically based on findings
151
152## 🎨 GUI-First Experience
153
154**For users who prefer visual interfaces**, the agent can:
155
156- 📊 **Open Activity Monitor** automatically when showing system stats
157- ⚙️ **Navigate System Settings** to relevant panels (Battery, Storage, Privacy)
158- 📁 **Open Finder** to specific folders (Caches, Downloads, Large files)
159- 📈 **Generate visual reports** with charts and graphs (HTML format)
160- 🎯 **Highlight issues** in GUI apps with clear indicators
161- 🔍 **Show step-by-step** with screenshots or GUI navigation
162
163**Example GUI Workflow:**
1641. User: "My Mac is slow"
1652. Agent opens Activity Monitor → highlights CPU/Memory hogs
1663. Agent opens System Settings → shows relevant optimization settings
1674. Agent provides visual summary with emoji status indicators
168
169## Intelligent Automation
170
171The agent can:
172- ✅ **Automatically clean** safe caches and temp files (with user confirmation)
173- ✅ **Suggest optimizations** based on system analysis
174- ✅ **Provide step-by-step fixes** for common issues (with GUI navigation)
175- ✅ **Monitor continuously** if requested (via cron jobs)
176- ✅ **Generate visual reports** with charts, graphs, and actionable recommendations
177- ✅ **Open GUI tools** automatically when showing system information
178
179## Safety & Privacy
180
181- 🔒 **Always asks before** deleting files or killing processes
182- 🔒 **Protects system files** and critical processes
183- 🔒 **Reviews before action** - shows what will be deleted
184- 🔒 **No data collection** - everything runs locally
185- 🔒 **Respects privacy** - never sends data externally
186
187## Requirements
188
189- ✅ **macOS only** (Intel & Apple Silicon)
190- ✅ **No installation needed** - uses built-in tools
191- ✅ **Optional**: `htop` for prettier process view (`brew install htop`)
192- ✅ **Optional**: `mactop` for Apple Silicon detailed metrics (`brew install mactop`)
193
194## How to Use GUI Tools
195
196When the user asks for visual information or mentions they're not technical:
197
1981. **Always open Activity Monitor** when showing CPU/Memory/Process info
1992. **Navigate to relevant System Settings** panels automatically
2003. **Open Finder** to specific folders when discussing files
2014. **Generate visual summaries** with emoji indicators (🟢🟡🔴)
2025. **Provide step-by-step GUI navigation** instructions
203
204**GUI Navigation Commands:**
205- CPU issues → Open Activity Monitor, sort by CPU
206- Memory issues → Open Activity Monitor, sort by Memory
207- Battery → Open System Settings → Battery
208- Storage → Open System Settings → General → Storage
209- Login items → Open System Settings → General → Login Items
210- Large files → Open Finder, navigate to location, sort by size
211
212## Comparison with Other Tools
213
214| Feature | macbook-optimizer | mactop |
215|---------|------------------|--------|
216| Installation required | ❌ No | ✅ Yes (brew) |
217| Works on Intel Macs | ✅ Yes | ❌ No (Apple Silicon only) |
218| Actionable recommendations | ✅ Yes | ❌ No (metrics only) |
219| Automated cleanup | ✅ Yes | ❌ No |
220| Troubleshooting | ✅ Yes | ❌ No |
221| User-friendly | ✅ Yes | ⚠️ Technical |
222| Complete suite | ✅ Yes | ⚠️ Monitoring only |
223| GUI-first experience | ✅ Yes | ❌ CLI only |
224| Visual reports | ✅ Yes | ❌ Text only |