macos-load-doctor
БесплатноЗапускает вложенные скриптыНе проверенDiagnoses macOS system-level slowness, heat and fleet-wide timeouts: high load average, leaked per-session child processes (MCP servers, helpers), fork…
от daymade★ 1 556 звёзд на GitHubОб этом скилле
macOS Load Doctor
Find what is making the Mac slow or hot, attribute it to an owner, and act within the shared-machine boundary. The skill's job is a correct, evidence-backed attribution — not process cleanup.
The one rule that orders everything else
A fleet-wide symptom is an environment problem until proven otherwise. When independent apps, hooks or agents all start timing out or crawling at the same time, check shared resource pressure before blaming each component. Check the machine first; pursue an individual defect when its own evidence distinguishes it from that shared pressure.
Triage (READ-DO, in order)
1. Load first, always
sysctl -n vm.loadavg; uptime
Expected: three numbers, e.g. { 3.12 4.01 5.20 }. Read against the core
count, not an absolute: single digits are calm on a modern Mac; tens are busy;
hundreds signal severe scheduling or wait pressure and everything on
the machine can be affected — hooks time out, keystrokes lag, pushes stall. A
load in the hundreds with no obvious culprit in the CPU column usually means
hundreds of small processes, not one big one.
Treat load as a triage signal, not a causal verdict or a count of busy CPU cores. Overload can coexist with an individual hook's repeated work. Before deriving a CPU rate or process-creation rate, use the measurement controls: calibrate units, measure elapsed time and state the sampler's coverage.
2. Process census — run the bundled script
LOAD_DOCTOR_DIR='<absolute directory containing this SKILL.md>'
bash "$LOAD_DOCTOR_DIR/scripts/load_census.sh"
Resolve that directory from the loaded Skill entry; the caller's project directory is not the Skill directory. The census readings answer different questions:
- By parent (PPID aggregation) — who owns many children? A large count identifies fan-out and resource overhead, not a proven leak. Compare births, exits and counts across a bounded window with the owner's active workload and intended lifecycle. A stable pool or helpers for active sessions can be valid; a leak claim needs evidence that children outlive the work they serve or that retained counts grow after equivalent work completes. Do not terminate sessions to manufacture that evidence; use existing lifecycle records or your own test.
- By cumulative CPU time — who has been burning for hours? Distinguish sustained work from a spike, then check expected work, progress and hot stacks before calling it a busy loop. A legitimate test or export can also stay busy.
- By instantaneous %CPU — who is burning right now? Catches the active storm that the cumulative view dilutes.
For retained agent/MCP children, read Stateful agent and MCP children before treating them as waste.
3. Attribute the owner
Trace the parent chain of the suspect until it ends at something ownable:
ps -o pid,ppid,etime,command -p <pid> # then repeat on its PPID
launchctl list | awk '$2 != "-" && $2 != "0"' # jobs with abnormal last-exit codes
The launchctl filter also prints its header line, and many system daemons
sit at status -9 (SIGKILL) permanently — that is routine noise, not a crash
loop. The respawn-loop signal is a job whose PID keeps changing between
runs, not any single status value.
Attribution determines which product/session owns it, whether it is supposed to be long-lived (a daemon) or short-lived (a helper that forgot to die), and who is allowed to stop it.
Continue past a generic interpreter or shared daemon to the actual business operation: use the relevant command, working directory, parent chain and, when needed, repository/ref or deployed version. Select only decision-bearing fields and redact credentials; never dump the environment. Group a launcher and its children as one task when the chain supports that grouping; distinguish separate jobs that happen to use the same executable or shared parent.
For “what are these processes doing?”, lead with that work and its current state, not a CPU ranking. Follow Writing the report for the explanation format and short-lived-process evidence. Identify the work separately from whether it is faulty or causes the reported lag; keep an unknown task, owner, lifecycle or causal link explicit.
For recurring conflicts, retries, or timeouts in scheduled jobs, trace duplicate scheduled work through the active producer routes and their receiving system.
If a slow round is still in progress, capture its stage evidence before it exits.
4. Classify the shape before proposing a fix
For an idle Node/Vite preview, follow [development preview watchers](references/dev-server-watchers.
Установить macos-load-doctor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл macos-load-doctor?
Diagnoses macOS system-level slowness, heat and fleet-wide timeouts: high load average, leaked per-session child processes (MCP servers, helpers), fork storms, busy loops. Use when the Mac feels slow or hot, fans spin up, or everything times out at once (电脑发烫/卡顿/负载高/全部超时). Not for single-app bugs, network slowness (use tunnel-doctor), launchd watchdog design (use macos-watchdog), or disk-full (use macos-cleaner).
Как установить скилл macos-load-doctor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл macos-load-doctor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic