💻 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):
CODEBLOCK0
Performance optimization (GUI mode):
CODEBLOCK1
Overheating issue:
CODEBLOCK2
Disk cleanup (visual):
CODEBLOCK3
Memory problems (GUI):
CODEBLOCK4
Battery health (visual):
CODEBLOCK5
Startup optimization:
CODEBLOCK6
Find large files (visual):
CODEBLOCK7
GUI-first requests:
CODEBLOCK8
Advanced Commands Available
The agent intelligently uses these macOS tools:
System Info:
- -
system_profiler - Complete hardware/software information - INLINECODE2 - System parameters and kernel settings
- INLINECODE3 - macOS version information
Process Monitoring:
- -
top / htop - Real-time process monitoring - INLINECODE6 - Process status and details
- INLINECODE7 - List open files and network connections
- INLINECODE8 - Background services and daemons
Resource Monitoring:
- -
vm_stat - Virtual memory statistics - INLINECODE10 - Disk I/O statistics
- INLINECODE11 /
lsof -i - Network connections - INLINECODE13 - CPU/GPU power and temperature (Apple Silicon)
- INLINECODE14 - Thermal state (Intel Macs)
Disk Management:
- -
df - Disk space usage - INLINECODE16 - Directory size analysis
- INLINECODE17 - Locate large files
- INLINECODE18 - Spotlight index management
Power & Battery:
- -
pmset - Power management settings - INLINECODE20 - I/O registry (battery info)
- INLINECODE21 - Battery details
Cleanup:
- -
rm - Safe file removal (with confirmation) - INLINECODE23 - Memory purge
- Cache locations:
~/Library/Caches, /Library/Caches, INLINECODE26
GUI Tools (Visual Interface):
- -
open -a "Activity Monitor" - Launch Activity Monitor (CPU, Memory, Energy, Disk, Network) - INLINECODE28 - Open System Settings (all system preferences)
- INLINECODE29 - Battery settings
- INLINECODE30 - Storage management
- INLINECODE31 - Login items
- INLINECODE32 - Open Finder for file browsing
- INLINECODE33 - Open Caches folder in Finder
- INLINECODE34 - Open Downloads folder
- INLINECODE35 - Privacy settings
- INLINECODE36 - 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:
- 1. 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:
- 1. 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 |
💻 MacBook 优化工具
完整的 MacBook 健康与性能套件——无需安装
这是一套全面且用户友好的技能,用于监控、优化和排查 MacBook 性能问题。适用于所有 Mac 机型(Intel 和 Apple Silicon),使用内置的 macOS 工具。与专用工具不同,它能提供可操作的建议和自动修复方案。
为何本技能更胜一筹
✅ 无需安装——使用内置的 macOS 工具
✅ 适用于所有 Mac——Intel 和 Apple Silicon
✅ 可操作的建议——不仅是数据,还有解决方案
✅ 自动修复——可自动清理和优化
✅ 用户友好——通俗易懂,无技术术语
✅ 完整套件——监控 + 故障排查 + 优化
✅ 优先图形界面——为非技术用户自动打开可视化工具
✅ 可视化报告——图表、图形和表情符号指示器,便于理解
功能
🔍 系统监控
- - CPU 分析:实时 CPU 使用率、温度(通过 powermetrics)、平均负载、各进程详情
- 内存健康:RAM 使用情况、内存压力、交换空间使用、检测内存泄漏
- 磁盘智能:空间分析、查找大文件/文件夹、重复文件检测、缓存位置
- 电池诊断:健康百分比、循环次数、容量、充电状态、功耗
- 温度监控:系统温度、热状态、识别过热原因
- 网络活动:带宽使用、活跃连接、识别带宽占用大户
⚡ 优化工具
- - 智能清理:自动查找并删除缓存、日志、临时文件、下载文件、重复文件
- 进程管理:识别资源占用大户、建议优化、安全终止进程
- 启动优化:管理登录项、后台应用、减少启动时间
- 存储优化:查找大文件、建议删除、清空废纸篓、清除缓存
- 性能调优:系统设置建议、禁用不必要的服务
🛠 故障排查
- - 运行缓慢诊断:识别瓶颈(CPU/内存/磁盘/网络)、根本原因分析
- 过热解决方案:查找发热进程、建议散热策略、热管理
- 内存问题:检测泄漏、建议重启应用、内存优化
- 磁盘问题:完整磁盘分析、权限问题、磁盘健康检查
- 电池问题:健康度下降、充电问题、电源管理
使用示例
完整系统检查(含图形界面):
运行一次完整的系统健康检查,以可视化方式显示结果,并修复任何问题
性能优化(图形界面模式):
我的 MacBook 运行缓慢。打开活动监视器,显示哪些资源被占用
过热问题:
我的 MacBook 过热。在活动监视器中显示发热进程
磁盘清理(可视化):
以可视化方式显示我的磁盘使用情况,并自动清理
内存问题(图形界面):
我的 Mac 占用内存过多。打开活动监视器,突出显示内存占用大户
电池健康(可视化):
在系统设置中显示我的电池健康状态,并优化电源设置
启动优化:
是什么拖慢了 Mac 的启动速度?在系统设置中显示登录项
查找大文件(可视化):
查找所有大于 1GB 的文件,在访达中显示,并建议可删除的内容
优先图形界面请求:
在活动监视器中显示所有内容
打开系统设置中的电池设置
以可视化方式显示磁盘使用情况
可用高级命令
智能代理会使用以下 macOS 工具:
系统信息:
- - systemprofiler——完整的硬件/软件信息
- sysctl——系统参数和内核设置
- swvers——macOS 版本信息
进程监控:
- - top / htop——实时进程监控
- ps——进程状态和详情
- lsof——列出打开的文件和网络连接
- launchctl list——后台服务和守护进程
资源监控:
- - vm_stat——虚拟内存统计
- iostat——磁盘 I/O 统计
- netstat / lsof -i——网络连接
- powermetrics——CPU/GPU 功耗和温度(Apple Silicon)
- pmset -g therm——热状态(Intel Mac)
磁盘管理:
- - df——磁盘空间使用情况
- du——目录大小分析
- find——定位大文件
- mdutil——Spotlight 索引管理
电源与电池:
- - pmset——电源管理设置
- ioreg——I/O 注册表(电池信息)
- system_profiler SPPowerDataType——电池详情
清理:
- - rm——安全删除文件(需确认)
- purge——内存清理
- 缓存位置:~/Library/Caches、/Library/Caches、/var/folders
图形界面工具(可视化界面):
- - open -a Activity Monitor——启动活动监视器(CPU、内存、能耗、磁盘、网络)
- open -a System Settings——打开系统设置(所有系统偏好设置)
- open -a System Settings && open x-apple.systempreferences:com.apple.preference.battery——电池设置
- open -a System Settings && open x-apple.systempreferences:com.apple.preference.storage——存储管理
- open -a System Settings && open x-apple.systempreferences:com.apple.LoginItems-Settings.extension——登录项
- open -a Finder——打开访达浏览文件
- open ~/Library/Caches——在访达中打开缓存文件夹
- open ~/Downloads——打开下载文件夹
- open x-apple.systempreferences:com.apple.preference.security?PrivacyAllFiles——隐私设置
- open x-apple.systempreferences:com.apple.preference.security?PrivacyAccessibility——辅助功能权限
可视化报告:
- - 生成带图表的 HTML 报告(CPU、内存、磁盘使用随时间变化)
- 创建带表情符号指示器的可视化摘要(🟢 良好、🟡 警告、🔴 严重)
- 根据发现自动打开相关的系统设置面板
🎨 优先图形界面体验
对于偏好可视化界面的用户,智能代理可以:
- - 📊 自动打开活动监视器显示系统状态
- ⚙️ 导航至系统设置的相关面板(电池、存储、隐私)
- 📁 打开访达到特定文件夹(缓存、下载、大文件)
- 📈 生成可视化报告,含图表和图形(HTML 格式)
- 🎯 在图形界面应用中突出显示问题,带清晰指示器
- 🔍 逐步展示,配合截图或图形界面导航
图形界面工作流程示例:
- 1. 用户:我的 Mac 运行缓慢
- 代理打开活动监视器 → 突出显示 CPU/内存占用大户
- 代理打开系统设置 → 显示相关优化设置
- 代理提供带表情符号状态指示器的可视化摘要
智能自动化
智能代理可以:
- - ✅ 自动清理安全的缓存和临时文件(需用户确认)
- ✅ 根据系统分析建议优化方案
- ✅ 提供常见问题的逐步修复方案(含图形界面导航)
- ✅ 持续监控(通过 cron 任务,按需执行)
- ✅ 生成可视化报告,含图表、图形和可操作建议
- ✅ 在显示系统信息时自动打开图形界面工具
安全与隐私
- - 🔒 删除文件或终止进程前始终询问
- 🔒 保护系统文件和关键进程
- 🔒 操作前审查——显示将要删除的内容
- 🔒 不收集数据——所有操作在本地运行
- 🔒 尊重隐私——绝不向外发送数据
系统要求
- - ✅ 仅限 macOS(Intel 和 Apple Silicon)
- ✅ 无需安装——使用内置工具
- ✅ 可选:htop 用于更美观的进程视图(brew install htop)
- ✅ 可选:mactop 用于 Apple Silicon 详细指标(brew install mactop)
如何使用图形界面工具
当用户请求可视化信息或表示自己非技术用户时:
- 1. 显示 CPU/内存/进程信息时始终打开活动监视器
- 自动导航至相关的系统设置面板
- 讨论文件时打开访达到特定文件夹
- 生成带表情符号指示器的可视化摘要(🟢🟡🔴)
- 提供逐步的图形界面导航说明
图形界面导航命令:
- - CPU 问题 → 打开活动监视器,按 CPU 排序
- 内存