Command Palette

Search for a command to run...

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

mac-ops

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

macOS workstation diagnostics: kernel panics, failing drives, launchd startup audit, wake reasons, TCC denials, APFS snapshots. Triggers on: mac is slow…

0xDarkMatterот 0xDarkMatter★ 86 звёзд на GitHub

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

mac-ops

Verified as of 2026-07 — content assumes macOS 13 (Ventura) and later (.ips panic format on macOS 12+, universal SSH on macOS 13+).

Helps with

Slow Mac, silent drive failure, unexplained panics, TCC denials, a full disk, 3am wakes, runaway system daemons, login loops, safe eject, failing-drive cloning, remote and Apple Silicon diagnostics. Where each signal lives: references/symptom-guide.md.

The Universal Insight

macOS tells you what's wrong if you ask the right log in the right way. Most users (and most tutorials) reach for Activity Monitor or "About This Mac". The actual diagnostic signal lives in log show (the unified logging system), in /Library/Logs/DiagnosticReports/, in pmset -g log, in the TCC databases, and in launchctl print. This skill packages the queries that turn noise into a verdict.

The most common diagnostic failure: treating symptoms in isolation. "Slow boot" → disable login items. "Kernel panic" → reinstall macOS. "Random freezes" → reset SMC/NVRAM. These are reasonable last resorts, but the data to identify the actual cause is sitting in the unified log untouched. Always audit before treating.

The Diagnostic Ladder

Walk down the layers in order. Each rung has a binary outcome:

1. Hardware health     — pmset, SMC errors, thermal events, Secure Enclave
2. Storage health      — APFS state, IO errors, snapshot bloat
3. Panic record        — DiagnosticReports/*.{panic,ips} + kext provenance
4. Pre-panic timeline  — log show last 10 minutes before each panic
5. Startup inventory   — Login Items + LaunchAgents + LaunchDaemons + profiles
6. Resource pressure   — top CPU/mem, mds_stores, photoanalysisd, cloudd
7. Permissions / TCC   — what app is denied what (the macOS-unique rung)
8. Verdict             — what's failing, what to do

The most interesting failures cluster at rungs 2 (storage), 5 (startup bloat), and 7 (TCC denials). The least interesting (but most-treated) is rung 6.

Workflow

1. Run the comprehensive audit

scripts/health-audit.sh

Produces a verdict block: hardware events, storage health per volume, recent panics, top resource consumers, startup inventory, TCC denials. Scan for [FAIL] markers — that's where to drill.

2. Drill into the failing layer

Symptom Script
Storage errors flagged scripts/disk-health.sh -v /Volumes/X (or -d disk2) — focused per-volume deep dive: APFS state, IO errors, snapshot bloat, verdict
Recent panic scripts/panic-triage.sh (latest by default) or -f /Library/Logs/DiagnosticReports/Kernel_*.panic — kext + pre-panic timeline
"Is it safe to eject volume X?" scripts/drive-dependencies.sh -v /Volumes/X — open files, Spotlight index, TM target, Photos lib, helper-tool bookmarks
"Why is boot taking so long?" scripts/boot-perf.sh — per-boot durations from log show, with slow-component flags
App can't see screen/mic/files scripts/tcc-audit.sh -a <bundle-id-or-name> — what TCC has granted, what's been denied recently
Mac waking at night scripts/wake-reasons.sh — pmset log breakdown by reason class
Spotlight broken / mds CPU spike scripts/spotlight-status.sh — index state per volume, common fixes
Storage "full" but disk usage doesn't add up scripts/storage-pressure.sh — APFS snapshots, local Time Machine, purgeable bytes
Kernel panic blames a kext / loaded kext audit scripts/kext-audit.sh — third-party kexts + system extensions + SIP/security policy state
Firewall behavior / VPN tunnel inventory scripts/firewall-audit.sh — ALF + pf + Network Extension content filters + utun inventory
Network preferences across location profiles scripts/network-locations.sh — DNS / proxy / search domains per location, service order

3. Apply the minimum reversible fix

Action Script
Disable startup item by name scripts/safe-disable-startup.sh -n <pattern> — works across Login Items + LaunchAgents (no sudo for user-scope)
List current state of all startup entries scripts/safe-disable-startup.sh --list
Re-enable previously disabled scripts/safe-disable-startup.sh -n <pattern> --enable
Disable system-scope daemon (admin) sudo launchctl disable system/<label> then sudo launchctl bootout system/<label>
Reset TCC for a specific service+bundle tccutil reset <Service> <bundle-id> (per-service, not global)
Safe clone from failing drive scripts/recover-clone.sh -s <source> -d <destination> — rsync --partial --inplace --no-whole-file

All disables are reversible — Login Items via osascript System Events, LaunchAgents via launchctl disable. The inverse re-enables.

Storage Health & Failure Detection

The highest-yield audit. Failing drives cause slow boots (kernel waits on probe timeouts), instability (IO retries cascade into kernel hangs), and panics (paging failures kill WindowServer). Three in

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

Установить mac-ops в Claude Code и Claude Desktop

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

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

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

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

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

Read
Write
Bash

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

assets/.gitkeepreferences/apple-silicon-specifics.mdreferences/launchd-deep-dive.mdreferences/mac-vs-windows-ops.mdreferences/panic-codes.mdreferences/recovery-patterns.mdreferences/remote-diagnostics.mdreferences/startup-mechanisms.mdreferences/storage-events.mdreferences/symptom-guide.mdreferences/tcc-mechanics.mdreferences/worked-examples.mdscripts/_lib/common.shscripts/_lib/panel.shscripts/bluetooth-audit.shscripts/boot-perf.shscripts/brew-health.shscripts/disk-health.shscripts/drive-dependencies.shscripts/firewall-audit.shscripts/font-audit.shscripts/health-audit.shscripts/kext-audit.shscripts/keychain-audit.shscripts/media-libraries.shscripts/network-locations.shscripts/panic-triage.shscripts/quickrun.shscripts/recover-clone.shscripts/safe-disable-startup.shscripts/spotlight-status.shscripts/startup-audit.shscripts/storage-pressure.shscripts/sysdiagnose-helper.shscripts/tcc-audit.shscripts/update-state.shscripts/wake-reasons.sh

FAQ

Что делает скилл mac-ops?

macOS workstation diagnostics: kernel panics, failing drives, launchd startup audit, wake reasons, TCC denials, APFS snapshots. Triggers on: mac is slow, won't boot, kernel panic, login loop, drive failing, launchd, TCC permissions, Full Disk Access, Gatekeeper, sysdiagnose.

Как установить скилл mac-ops?

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

Скилл mac-ops запускает скрипты?

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

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

Сравнить mac-ops с