From macos-plugin
Repeatable macOS/Apple-Silicon benchmark + diagnostics scored PASS/WARN/FAIL with saved reports. Use when baselining a Mac, verifying it performs to spec, or tracking CPU/memory/disk/thermal health.
How this skill is triggered — by the user, by Claude, or both
Slash command
/macos-plugin:macos-performance-benchmark mode — diagnose | bench | full | report (default full)mode — diagnose | bench | full | report (default full)This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A repeatable, threshold-scored performance suite. Runs diagnostics and
A repeatable, threshold-scored performance suite. Runs diagnostics and
benchmarks for CPU/thermals, memory/swap, disk/storage, and startup/background
load, writes a timestamped run under ~/.cache/macos-perf/, and generates a
markdown report with PASS/WARN/FAIL verdicts against tunable baselines.
| Use this skill when... | Use something else when... |
|---|---|
| You want a repeatable baseline — "is this Mac performing to spec?" scored PASS/WARN/FAIL | The Mac is hot/slow right now and you need live attribution — use macos-performance-triage |
| Tracking CPU/memory/disk/thermal health across runs, comparing before/after a change | The machine actually hung or panicked — use macos-incident-postmortem |
| Producing a saved report to keep or share | A security extension (Kandji ESF, XProtect, EDR) is the hot process — use endpoint-security-cpu |
| Benchmarking NVMe/AES/SHA/memory throughput against thresholds | You're reclaiming disk space — use macos-disk-usage |
This skill is the proactive baseline companion to the reactive
macos-performance-triage playbook: run this to know the machine's normal;
run triage when something is wrong now.
macOS-only. sysctl, pmset, powermetrics, macmon, diskutil, and the
Apple-Silicon counters are Darwin-specific. run.sh refuses on non-Darwin.
test "$(uname -s)" = "Darwin" || { echo "macos-plugin: not Darwin, refusing"; exit 1; }
Parse $ARGUMENTS for the run mode (default full):
| Mode | What runs | Time | sudo |
|---|---|---|---|
diagnose | 4 diagnostics + report | ~25s | no |
bench | 3 benchmarks + report | ~3 min | no |
full | diagnose + bench (default) | ~5 min | no |
diag-cpu / diag-memory / diag-disk / diag-startup | one diagnostic | <10s | no |
bench-cpu / bench-memory / bench-disk | one benchmark | ~1 min | no |
report | regenerate the latest run's report | instant | no |
report-list | list saved runs with PASS/WARN/FAIL counts | instant | no |
baseline-show | print this machine's recorded benchmark baseline | instant | no |
baseline-reset | clear the baseline (next bench run re-establishes it) | instant | no |
Add sudo in front for thermal-pressure data (powermetrics); everything else,
including CPU power via macmon, runs without sudo.
Run the bundled suite and surface the verdict. The scripts self-detect tools and skip gracefully when one is absent.
bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" $ARGUMENTS
For thermal-pressure data (optional), prefix with sudo:
sudo bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" diag-cpu
run.sh prints the generated report and its path
(~/.cache/macos-perf/<timestamp>/report.md). Summarize the Overall Status
and every WARN/FAIL, mapping each to the process or subsystem responsible. For a
hot process or hung machine, hand off to the reactive skills named in the
"When to Use" table.
bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" report-list
Each saved run keeps its summary.tsv (one status row per check) and per-script
logs, so before/after comparisons and regressions over time are trivial.
Benchmarks are self-calibrating — no fixed thresholds ship in the repo (they'd
be wrong on every machine but the author's). The first benchmark run records
each score as this machine's baseline (best-seen), stored in
~/.cache/macos-perf/baseline.env. Later runs compare against it:
The degrade bands are env-overridable (MACOS_PERF_BENCH_WARN_DEGRADE,
MACOS_PERF_BENCH_FAIL_DEGRADE). Inspect or clear the baseline with the
baseline-show / baseline-reset modes.
Diagnostics keep absolute thresholds — disk-free %, RAM, memory pressure,
launch-item counts are health/hygiene checks, not performance scores, so they
don't self-calibrate. Those defaults suit a modern Mac and are individually
MACOS_PERF_*-overridable — see scripts/config.sh for the
full list, or drop a thresholds.local.sh beside it:
MACOS_PERF_RAM_MIN_GB=16 bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" diagnose
Results default to ~/.cache/macos-perf/; override with MACOS_PERF_RESULTS_DIR.
macmon (Rust, sudo-free) is preferred for CPU power/thermals, matching the
macos-performance-triage toolkit; powermetrics (sudo) is the fallback and the
only source of thermal pressure. Install the sudo-free path with:
brew install macmon jq
| Context | Command |
|---|---|
| Fast health check, no sudo | bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" diagnose |
| Full benchmark baseline | bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" bench |
| Machine-readable verdicts | `awk -F'\t' '$1~/^(PASS |
| List runs + counts | bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" report-list |
| Show / reset baseline | bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" baseline-show |
| Retune a diagnostic threshold | MACOS_PERF_<KEY>=<value> bash "${CLAUDE_SKILL_DIR}/scripts/run.sh" <mode> |
macos-performance-triage — reactive live triage (this skill's companion)macos-incident-postmortem — after a hang/panicmacos-disk-usage — disk-space forensics and reclamationnpx claudepluginhub laurigates/claude-plugins --plugin macos-pluginLive macOS/Apple-Silicon performance triage — find what's heating the Mac (hot WindowServer, GPU compositing, a CPU-heavy browser/Electron app) and attribute it to the driving process. Use when fans spin up, the Mac is hot/slow, or WindowServer/an app shows high CPU/GPU.
macOS diagnose-and-fix command center. Wraps the macos-toolkit CLI suite (machealth, netwhiz, pstop, macdog, lanchr, macbroom, macctl, macfig, updater) behind one entrypoint — self-installs the suite on first use, runs a read-only baseline audit (security, launch agents, processes, network, disk, system health), and applies guarded fixes (firewall, stale daemons, cache cleanup) with per-action confirmation.
Diagnoses macOS workstation issues including kernel panics, failing drives, launchd startup audit, wake reasons, TCC denials, and APFS snapshot space.