refactor: convert mac-optimizer from raw skill to proper plugin
Restructured 92-mac-optimizer from a CLAUDE.md-based skill into a full Claude Code plugin with .claude-plugin/plugin.json, 6 slash commands (/mac-doctor, /mac-packages, /mac-environment, /mac-security, /mac-cleanup, /mac-resources), and auto-trigger SKILL.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
29
custom-skills/92-mac-optimizer/commands/mac-resources.md
Normal file
29
custom-skills/92-mac-optimizer/commands/mac-resources.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
allowed-tools: Bash(bash *audit_resources.sh*), Bash(ps *), Bash(kill *), Bash(df *)
|
||||
description: Monitor CPU, memory, disk, battery, and identify resource-hungry processes
|
||||
---
|
||||
|
||||
## Your task
|
||||
|
||||
Check system resource usage on this Mac.
|
||||
|
||||
### Step 1 — Run the audit
|
||||
|
||||
```bash
|
||||
bash $CLAUDE_PLUGIN_ROOT/skills/mac-optimizer/scripts/audit_resources.sh
|
||||
```
|
||||
|
||||
### Step 2 — Report
|
||||
|
||||
Parse JSON output and present as a severity-ranked markdown table:
|
||||
|
||||
| Severity | Finding | Recommended Action | Details |
|
||||
|---|---|---|---|
|
||||
|
||||
### Step 3 — Offer actions
|
||||
|
||||
If high-resource processes are found, offer to help. But respect the deny-list:
|
||||
|
||||
**Never suggest killing**: kernel_task, launchd, WindowServer, loginwindow, mds, mds_stores, opendirectoryd, coreaudiod, SystemUIServer, Finder, Dock
|
||||
|
||||
For user processes consuming excessive resources, ask before terminating.
|
||||
Reference in New Issue
Block a user