Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

macos-performance-benchmark

БесплатноЗапускает вложенные скриптыНе проверен

Repeatable macOS/Apple-Silicon benchmark + diagnostics scored PASS/WARN/FAIL with saved reports. Use when baselining a Mac, verifying it performs to spec, or…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

macOS Performance Benchmark (Apple Silicon)

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.

When to Use This Skill

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.

Platform Guard

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; }

Parameters

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.

Execution

Run the bundled suite and surface the verdict. The scripts self-detect tools and skip gracefully when one is absent.

Step 1: Run the selected mode

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

Step 2: Read the report

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.

Step 3: Compare against prior runs (optional)

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.

Scoring model

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:

  • a score that beats the baseline ratchets it up ("new best");
  • a score 10%+ below best → WARN, 30%+ below → FAIL (degradation from the machine's own peak — catches SSD wear, thermal-paste aging, a runaway background process, etc.).

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.

Multi-core scaling efficiency is reported, never scored. The ratio (multi-core throughput ÷ n × single-core) assumes every core is equivalent — which is false on Apple Silicon's P+E topology, where a healthy 10P+4E machine measures 24–27% simply because 4 of its 14 cores run at a fraction of P-core throughput. No single floor is meaningful across symmetric and asymmetric machines, so the number is emitted as an info line (with the P:E core split when hw.perflevel* is available) and never contributes a PASS/WARN/FAIL. The absolute multi-core throughput is still scored, against this machine's own self-calibrating baseline.

Diagnostics keep absolute thresholds — disk-free %, RAM, memory pressure, launch-item counts are he

Полный SKILL.md на GitHub

Установить macos-performance-benchmark в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(bash *)
Bash(uname *)
Bash(sudo bash *)
Read
Grep
Glob

Вложенные файлы

scripts/bench/cpu.shscripts/bench/disk.shscripts/bench/memory.shscripts/config.shscripts/diag/cpu.shscripts/diag/disk.shscripts/diag/memory.shscripts/diag/startup.shscripts/lib/baseline.shscripts/lib/common.shscripts/report/generate.shscripts/run.sh

FAQ

Что делает скилл macos-performance-benchmark?

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.

Как установить скилл macos-performance-benchmark?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл macos-performance-benchmark запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить macos-performance-benchmark с