Designs and audits macOS launchd watchdogs: LaunchAgent/Daemon setup, plist edits, scheduled self-healing, crash loops, event triggers, and notification throttling.
Ships in daymade-macos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Before selecting event/periodic triggers, a transport, or a helper, record these constraints from the original request in the current task plan; do not create a separate document for a simple task:
When the request is to enable an existing application's automatic updates or native recovery, inspect and configure that application's own mechanism first. "Automatic" and acceptance of restart interruptions do not authorize an extra LaunchAgent, polling script or watchdog. If native support cannot meet the selected channel or behavior, explain that limit and obtain acceptance of the specific fallback before adding a recurring job. An explicit request for a new watchdog or scheduled observer continues through the deployment routes below.
If the request explicitly limits the work to a manually run helper, an opt-in experiment, or a read-only design, preserve that scope. Otherwise, accept through the ordinary entry without unrequested manual activation. Reuse the existing session owner for session-bound components; use launchd for login/machine persistence rather than turning every automation request into a global watcher.
A completed business round inside a helper alone is component-only evidence: leave the requested result unmet and continue authorized integration. Keep unauthorized or unobserved old-session takeover and other lifecycle coverage unknown; do not stop other tasks or bypass a host refusal to obtain acceptance.
When a safety condition is temporary and automatic work must resume afterward, exercise its release in the same running instance: first verify no prohibited action, then remove that condition and require the next eligible event to complete the business action. A separate fresh-instance success, no-action result or health flag does not establish this transition; preserve explicit stop, lost identity and uncertain-delivery boundaries.
Select event or periodic triggers for the problem being observed, then apply the quiet-watchdog contract before remediation.
Bind a watchdog's lifecycle to its premise state. When it cannot repair the condition (broken WiFi, user quit the target app, prerequisite state gone), stand down without waiting for a human to disable it.
| The situation is… | Go to |
|---|---|
| Enabling an existing application's native automatic updates or recovery | Its owning application/CLI maintenance procedure; inspect native eligibility before proposing an extra job |
| Installing a NEW watchdog from scratch | Select the trigger through references/event-driven-observers.md, then § Deploy and § The quiet-watchdog contract |
| Installing, upgrading, reusing or starting a persistent Python job | § Persistent Python runtime |
| An evidence observer needs authentication or loses memory-only credentials on restart | § Authenticated evidence observers |
| A batch collector restarts with missing, malformed or stale terminal state | Interrupted-batch recovery; distinguish a closed writer from a complete capture before releasing or resuming work |
| An existing watchdog misbehaves (spam, re-launches apps, hammers) | First use the read-only ownership and business-state checks in references/event-driven-observers.md § Deployment SOP, then § Troubleshooting quick map and § The quiet-watchdog contract |
| Stopping / disabling / restarting a job | § Stop semantics; before replacement follow references/event-driven-observers.md § Wait for an authorized unload before replacement |
| Retiring a job and its tool permanently | § Stop semantics → Decommissioning a job permanently |
| plist key details (KeepAlive forms, domains, logging, resource limits) | references/launchd-plist-reference.md |
| Choosing between event-driven and periodic for a source of truth | references/event-driven-observers.md § Select event vs periodic |
| Deploying / accepting an event-driven observer (WatchPaths, FSEvents, inotify-style) | references/event-driven-observers.md § Deployment SOP and § Acceptance SOP |
| Checking whether a plist edit is active, or comparing job argv / explicit ENV / configured paths / scheduling keys | Run scripts/inspect_native_job.py with the exact expected plist; read references/native-job-readback.md for result, scheduling-flag and source-selection rules |
| Setting up or recovering an already-authorized persistent calendar job with delivery deadlines | references/launchd-plist-reference.md § Calendar deadlines and recovery; check overdue work and actual delivery separately |
| Cooldown/backoff/notification-throttle patterns + sanitized war stories | references/quiet-watchdog-patterns.md |
| SRE alert layering (page vs ticket, fatigue numbers) | references/alert-discipline.md |
| Watchdog alerts spamming a shared team channel, or repeating every poll despite a cooldown/renotify window | references/alert-discipline.md § Channel isolation and fingerprint stability |
| Monitoring an adaptive/quiet-hours scheduler or preventing silent channel/probe blackouts | references/alert-discipline.md § Adaptive cadences, quiet windows, and startup delays & § Primary-channel blackout and probe blindness |
| A watchdog alert appears under Script Editor or its sender is unclear | references/alert-discipline.md § Message content; inspect the delivered card |
| A local notification was sent but the user cannot see it | references/alert-discipline.md § Local notifications are not visible; verify the requested display surface |
Before shipping or blessing any watchdog, every clause below must hold. Each clause exists because a real watchdog violated it.
The script's first act on every run: verify the state that justifies its existence still holds. If not, exit silently — no remediation, no notification, no side effects.
Detection stays honest on every cycle, but the disruptive action defers until the failure persists across N consecutive cycles (patient mode). Rationale: oscillating chains self-recover in minutes; a force-reconnect on a self-limiting blip is net-harmful. Measure your system's real self-recovery window before choosing N (one chain's 94-min observatory run showed ≤3 min self-recovery → N=2 cycles at 5-min interval).
For a business observer, read observation-failure timing before choosing an alert threshold. A failed check leaves the business condition unknown. Set its notification deadline from the tolerated gap since the last successful observation and the actual check interval; do not inherit a repair watchdog's fixed failure count or wait for a remediation ladder the observer does not have. Keep incident deduplication and uncertain-delivery reconciliation.
When the trigger aggregates several independent sources into one verdict (not a single health check), the cross-source agreement fraction is a second, separate parameter from N — don't default to "all sources must agree." An all-or-nothing gate produces a false negative on exactly the correlated-but-partial incident the watchdog exists to catch, because real failures rarely take every source down at once (real case: a 9-source collection-health gate required 9/9 failing and missed a live incident sitting at 6/9; recalibrating against the actual incident data to a ≥60%-of-sources threshold caught it while fixture testing at 0%/11%/100% confirmed it still tolerated a single-source blip). Calibrate breadth (what fraction must agree) against real historical failure data the same way you calibrate depth (N) — a threshold picked from what "sounds strict enough" is a guess, not a calibration.
Escalation ladder (cheap → disruptive): refresh state → restart connection → remote repair. Each rung verifies before climbing.
When the full repair ladder fails, the environment is unfixable by the watchdog (broken WiFi, captive portal, dead upstream). The naive behavior — re-run the entire ladder + notification every interval forever — is exactly "the watchdog keeps re-launching the app every 10 minutes."
ThrottleInterval does not fix this: it throttles process respawn, is a fixed delay with no backoff, and does nothing for a job that exits 0 after spamming. Cool-down must live in the application layer:
pause [duration] command with a TTL state file is the fallback — but the auto path must work with no human command at all. A disable mechanism that requires the user to remember a command is not a mechanism.Reusable implementation: scripts/watchdog-cooldown.sh (source it; provides paused_any, record_exhausted, clear_exhausted, cmd_pause/cmd_resume).
On macOS, open <url-scheme> launches the app when it isn't running, and open without -g steals foreground. A watchdog whose remediation uses URL schemes (or open -a, or restarting a GUI app) will read to the user as "I quit it and it came back."
Gate every such action: check the target process is alive before invoking its scheme, and pass -g so a legitimate action never pops a window. If the user quit the app mid-remediation, abort the ladder — cleanup traps must honor the same gate, or the "ensure connected on exit" fallback becomes the resurrector.
Before deploying or integrating an existing periodic observer, apply
references/probe-cost.md. Require bounded observation work and a completed native
launchd round; importing an existing script does not certify its cost or verdict.
Before declaring configuration active, use the native readback helper through
references/native-job-readback.md. Read explicit ENV from the job's own block;
do not take the first matching key from default or inherited environment sections.
Verify the completed business round separately from registration or process state.
~/Library/LaunchAgents/ (GUI session context: can open apps, show notifications); system daemon → /Library/LaunchDaemons/ (root, no GUI access). Choose by whether the job needs the user's GUI session, not by habit.assets/launchagent.template.plist; for event jobs follow references/event-driven-observers.md and its plist reference. Validate with plutil -lint. ProgramArguments element 0 = absolute path; never rely on shell PATH inheritance, and never snapshot os.environ["PATH"] verbatim from an installer shell into EnvironmentVariables.PATH (interactive shells carry ephemeral tool temp directories that go stale while missing required CLIs). Construct a minimal explicit PATH from resolved binary parent directories plus standard system directories (/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin). When the job invokes a Node-backed CLI (#!/usr/bin/env node, e.g. lark-cli), explicitly include the resolved absolute node bin directory—if the installer runs under a minimal PATH where which node is empty, probe and resolve a concrete absolute version directory under $HOME/.nvm/versions/node/*/bin rather than writing literal ~ or * into the plist (launchd does not expand globs or tilde)—otherwise runtime calls fail with rc=127 (env: node: No such file or directory).
ok → alert, changed error fingerprint, alert → ok, or a bounded renotify interval) after independently verifying delivery readback, and let quiet-hours suppression defer non-critical alerts while passing critical alerts (such as low disk space) immediately. Verify business-receipt freshness—such as a publisher's last-run.json timestamp, absence of trailing round_failure entries in its log, and calibrated timeouts on local status endpoints—rather than treating a live launchctl PID as proof of health.references/event-driven-observers.md § Deployment SOP. Before batch-reloading or upgrading a set of existing LaunchAgents, inspect persistent disabled overrides with launchctl print-disabled gui/$(id -u) as well as loaded state (launchctl print), and preserve intentionally disabled legacy or superseded jobs instead of re-enabling them during a bulk deploy. For an authorized idle job, load with launchctl bootstrap gui/$(id -u) <plist>; after a plist edit, bootout then bootstrap. Request one run of an idle owned job with launchctl kickstart gui/$(id -u)/<label>; -k terminates an existing instance and is not a routine test. kickstart -k on an instantly-exiting job is a throttle trap, not a latency probe: the kill+respawn collides with the 10 s ThrottleInterval, producing spawn failed, error=89 (ECANCELED) and respawns on 10.01–10.03 s beats, so the call blocks ~11–20 s. Measured 2026-10-20: 108/110 gaps at 10.01–10.03 s while plain kickstart returned sub-second. Do not read that blocking as launchd congestion.StandardOutPath/StandardErrorPath are non-negotiable (without them failures vanish), plus in-script log rotation (cap ~1 MB).scripts/new-launchagent.sh <label> <script> <interval> after the replacement checks above; it can boot out a loaded job. For event jobs use the event SOP. In both cases, verify loaded configuration through the native helper and completed work separately. When atomically flipping a current directory symlink on macOS during deployment, use os.replace() or BSD mv -fh (not plain mv -f, which moves the new symlink inside the existing target directory, and not ln -sfn, which unlinks before recreating and leaves a transient ENOENT window).macos-permissions to inspect TCC attribution and verify a protected read from the actual job; the shell's interpreter path alone does not decide this.ego-lite-use when installed. Otherwise use the owning browser tool's documented lifecycle while meeting the same budget and readback requirements. Missing resource observations, or missing focus observations when no focus stealing is required, leave acceptance incomplete.StartInterval is a BTM transition tax — prefer a KeepAlive loop for high-frequency probes. Every periodic firing enters running and then exited; backgroundtaskmanagementd converts each into a store write plus a 250 ms-coalesced distributed userDataDidChange broadcast that drives LoginItems.appex full monitor rebuilds — the amplifier behind the 2026-10-06/10-17 watchdog panics. A persistent job running an in-process loop (period = max(interval, runtime+1s)) keeps the cadence with zero steady-state transitions. Measured effect of converting the three biggest offenders: BTM-triggering monitor updates 0.45/s → ~0.20/s.XPC_SERVICE_NAME for spawned children — identity guards break when you wrap the probe. A launchd job process reads its own label, but every child it spawns (bash/sh/python) reads XPC_SERVICE_NAME=0, and export does not survive exec (measured on 27.0.1 with a dedicated probe job). A script whose guard is [ "$XPC_SERVICE_NAME" = <label> ] passes only when the script IS the job process. Wrap it in a loop/driver and the probe becomes a grandchild: the guard rejects 100% of iterations while launchctl shows state=running — one collector produced zero rows for 75 minutes. Pass identity through a different variable the driver sets (e.g. <PROJECT>_CALLER_LABEL via argv) and have the guard accept it as an alternative; direct execution stays refused because neither variable is set in a human shell.For a persistent Python job, separate dependency preparation from normal startup:
bin/python* symlinks to the
resolved immutable patch executable (readlink -f, e.g.,
cpython-3.12.13-.../bin/python3.12) and pyvenv.cfg home to that
executable's parent bin directory (cpython-3.12.13-.../bin), instead of a
mutable minor-series alias (cpython-3.12-...): an in-place toolchain upgrade
that repoints the mutable alias silently changes the executable's CDHash/code
signature under bootstrapped LaunchAgents, breaking Keychain ACLs or
triggering immediate OS_REASON_CODESIGNING kills (launchctl list status
-9 / "LastExitStatus" = 9 SIGKILL, empty stderr). Keep dependency
changes in this phase.bin/python or pyvenv.cfg home still
traverses a mutable minor-series alias. A ready marker or a matching Python
series alone does not validate the environment. Reject an empty, mismatched or
broken environment; resume the authorized prepare action rather than silently
accepting it.ProgramArguments
and invoke the service entry directly. Fail visibly when that runtime is missing
or invalid; do not silently fall back to uv run, another interpreter, or an
install during startup. Check inherited variables and startup hooks when they
could redirect the selected runtime. Finite maintenance scripts may still use
their declared uv run workflow.Before switching an existing job, retain the ownership, active-work and pending intent checks from § Deploy. Preserve its canonical configuration and rollback target; compare the live configuration with the inspected version immediately before replacing it, and stop on drift. Use the existing native readback and completed business-round acceptance through the actual consumer; a marker, PID or HTTP health response does not replace that result. The deploying operator owns these checks; this Skill does not supply a generic environment installer.
Keep permission attribution separate from Python environment selection. When a
native executable needs an already authorized launcher's FDA identity, follow
macos-permissions and its
measured uv attribution case.
If the real protected read proves that exact uv launcher is required, retain
the verified responsibility chain. For a persistent native executable, prefer a
service-owned, non-default UV_CACHE_DIR with
uv run --no-project --offline -- <absolute-binary> ...: it avoids the shared
main cache lock and does not create a new system temporary directory on every
start. Keep that directory private and stable, then verify the job holds only
<private-cache>/.lock, survives a restart without cache growth, and still
passes the real protected read. The owning installer must generate the cache
environment; do not hand-edit the plist into a second installation path.
--no-cache is acceptable for a bounded one-shot, but it uses a per-invocation
temporary cache; normal exit cleans it, while SIGKILL, panic or power loss can
leave the temporary directory behind. Do not generalize either exception to
Python dependency startup.
When comparing direct execution with a uv launcher, give both alternatives the same maximum launchd retry windows and judge them with the same domain canary. Stopping a direct binary after two failed attempts while observing a uv wrapper succeed on its third is not a comparable A/B result. Process state, a listening port or HTTP 200 alone does not prove the protected database or business read works. If the user explicitly chooses to reuse one uv binary's existing permission subject to avoid repeated authorization, record that as an accepted exception rather than a pending migration; its scope remains the same absolute uv path and the same TCC service.
Consult uv's environment-use guidance
for direct environment execution and its
cache documentation for --no-cache.
Treat process startup, credential readiness and a fresh successful observation as
three separate checks. KeepAlive can relaunch a process; it cannot reconstruct a
password/token that existed only in its old memory. A live PID or recent error
log does not establish renewed access to the target.
Before promising unattended recovery, bind the existing credential owner and its authorized delivery mechanism in the actual service context. Keep secrets out of argv, plist, state and logs; use environment injection only within its existing credential contract. Do not invent a plaintext fallback or create new credential storage merely to make a restart look successful. When memory-only injection is the authorized design, expose credential-unready status and its precise recovery action until reinjection and a new successful sample are observed.
Choose the domain from the actual host state through the
plist reference. An SSH login does not
prove gui/<uid> exists. A system daemon also does not inherit GUI consent or a
user's unlocked Keychain; verify the selected identity, permissions and credential
access rather than assuming a domain change fixes them. Reuse the existing
authorized deployment/recovery owner and preserve unrelated jobs.
Accept the ordinary start, a failed/expired credential delivery, and an authorized restart separately: the selected target must produce new valid evidence after authentication, or report the specific dependent gap. Keep independent collection planes running when one loses access. Retain the configured end time, resource bounds and terminal reason across recovery; restarting a job must not silently extend an expired experiment. For network incident collectors, follow the network collection SOP for capture-content and child-pipe shutdown checks in addition to service health.
Before stopping or replacing a job, apply the ownership and active-work checks in § Deploy and the current task's authorization boundary.
| Intent | Command |
|---|---|
| Stop now, allow re-bootstrap later | launchctl bootout gui/$(id -u)/<label> (daemon: sudo launchctl bootout system/<label>) |
| Prevent later loads across login (stop a loaded job separately) | launchctl disable <exact-domain>/<label> using the inspected service's domain (reverse: enable) |
| Edit then reload | bootout → bounded exact-service unload observation through the Deployment SOP → edit plist → bootstrap |
Use bootstrap/bootout instead of deprecated load/unload. When a job
must remain disabled across later loads, apply disable; stopping an instance
alone does not establish that persistent override. Read back the exact domain's
disabled override, service registration and owned process/task state separately.
disable does not unload a job or prove its current work stopped; bootout
does not establish the persistent override. Use the Deployment SOP's bounded
unload observation; an unrecognized error is unknown, not absence.
A temporary job that stays loaded keeps paying the § Deploy-9 transition tax
(its every firing still feeds BTM broadcasts). When the task it served is
done, prevent future loads with disable and, after the ownership and active-work
checks, unload a remaining job with bootout. Verify both states before claiming
the scheduled work has stopped. These transitions are reversible (enable +
bootstrap), and the plist can stay on disk as the re-enable path. One-off
task or session-progress timers must also carry a bounded self-retirement gate
(e.g., consecutive target not_loaded count plus elapsed time writing a STOP
marker and marking canceled=True) and expose inspectable deadlock hints (such
as repeated permissions_too_broad or unresolved pending unknown outcomes)
rather than spinning indefinitely or stalling silently.
Retiring a job's whole line (job + plist + tool) is a different operation from stopping one, and it is safe to be thorough: every step except the last is recoverable.
bootout
a loaded job and observe its unload. Call a job already stopped only after
checking registration absence, no remaining owned PID and no in-flight business
work; a disabled flag or missing PID alone is insufficient. Read the plist once
(plutil -p) and keep its content
in the session record — it names the tool path, log paths, and schedule you
are about to remove.~/Library/LaunchAgents/. A leftover
launchctl disable override for the label is inert once the plist is gone;
do not chase it.__pycache__)
from the checkout.~/.local/share/<tool>/): it is small, it holds the config a revival
would need, and deleting it is the only irreversible step — offer it
explicitly instead of cleaning silently.Measured 2026-10-20 (wechat-print retirement): an every-minute
StartCalendarInterval job kept incurring § Deploy-9 BTM tax while emitting
nothing but failure logs for six days.
| Symptom | First check |
|---|---|
| App 一打开就高速开关,或频率高于所有 watchdog 周期 | 将每个候选 watchdog 实际发出 connect/disconnect/relaunch 的日志与时间戳,对齐同一时间窗的系统状态转换;注册、进程存在和“有能力”都不等于正在执行。若 neagent/PlugInKit 同时反复报 Failed to start extension / could not acquire startup assertion,按 tunnel-doctor 查 Network Extension 生命周期,不重启全部 watchdog |
| "It re-launches the app I quit" | URL-scheme/open calls missing the process-alive gate (clause 4) |
| "It spams the same repair every few minutes" | No exhausted-round cool-down (clause 3); also check the ladder's failure path doesn't reset its dead-counter |
| "Alerts flood a shared group or bypass the renotify timer every poll" | Move ops alerts off shared business channels and stabilize fingerprints across volatile counters and fresh in-progress worker snapshots (references/alert-discipline.md § Channel isolation and fingerprint stability; producer fix in references/quiet-watchdog-patterns.md Pattern 9) |
| "It reports healthy through a real outage" | Health check certifies only the path it probes — one green probe ≠ all planes healthy (add the second plane's probe). 同一命令若声称覆盖 DIRECT+proxy,两面都通过才可报整体 healthy/recovered;DIRECT 失败并重新写入失败状态后,不得再宣称 failure state cleared(Pattern 5) |
| "bootout didn't stick / it came back" | Confirm the exact domain/service target and who bootstrapped it again; for a persistent stop follow § Stop semantics |
| Silent no-runs | StandardErrorPath missing → failures invisible; then log show --predicate 'process == "launchd"' --last 15m |
| "log mtime is fresh" but the job is actually failing | out.log all-green is not health — a failed pass may write nothing (set -e + prints-verified-only-on-success), so the last-success timestamp stays fresh forever. Judge the failure path (err.log / last-exit status), not success-side freshness (Pattern 7) |
After bootout+bootstrap, "the data file has a recent row" is not proof the new job works | The OLD job's final row can land inside your freshness window (real case 2026-10-20: a probe conversion passed a 75 s freshness check while the new job's every iteration was rejected by its identity guard for 75 min). Anchor verification to the NEW job: rows timestamped after the new PID's start, or per-iteration status rows; state=running never proves the collector writes |
| Works interactively, fails under launchd | TCC/FDA on the wrong interpreter; PATH assumptions in ProgramArguments |
LaunchAgent exits immediately with launchctl list status -9 ("LastExitStatus" = 9, SIGKILL) and empty stderr | Inspect last exit reason in launchctl print gui/$(id -u)/<label>, check log show --predicate 'eventMessage CONTAINS "CODESIGNING" OR process == "amfid"' --last 15m, verify the signature with codesign --verify --verbose=2 "$(readlink -f <env>/bin/python)", and inspect CDHash with codesign -dv --verbose=4 "$(readlink -f <env>/bin/python)". If the venv traverses a mutable minor-series alias (e.g., cpython-3.12-...) updated by a toolchain upgrade, repin bin/python* to a verified immutable patch executable (cpython-3.12.X-.../bin/python3.12) and pyvenv.cfg home to its parent directory (cpython-3.12.X-.../bin), then reload via bootout → bootstrap |
Keychain read fails or prompts repeatedly after a uv / toolchain upgrade | Check whether readlink -f <env>/bin/python shifted to a newer patch binary and compare CDHash via codesign -dv --verbose=4 "$(readlink -f <env>/bin/python)". Pin bin/python* to the immutable patch executable (and pyvenv.cfg home to its parent bin directory) whose CDHash holds the Keychain ACL, or intentionally re-grant ACLs for the newly pinned patch binary |
| Observation becomes slower as history grows | Audit cold, warm and delta work using references/probe-cost.md; caching bytes does not bound parsing or queries |
Details and the sanitized war stories behind each clause: references/quiet-watchdog-patterns.md.
assets/launchagent.template.plist (opens in a new tab)evals/evals.json (opens in a new tab)evals/iteration-1/eval-2-audit/fixture/broken-heal.sh (opens in a new tab)evals/iteration-1/eval-2-audit/fixture/broken-watchdog.plist (opens in a new tab)references/alert-discipline.md (opens in a new tab)references/event-driven-observers.md (opens in a new tab)references/interrupted-batches.md (opens in a new tab)references/launchd-plist-reference.md (opens in a new tab)references/native-job-readback.md (opens in a new tab)references/probe-cost.md (opens in a new tab)references/quiet-watchdog-patterns.md (opens in a new tab)scripts/inspect_native_job.py (opens in a new tab)scripts/new-launchagent.sh (opens in a new tab)scripts/watchdog-cooldown.sh (opens in a new tab)tests/test_inspect_native_job.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
launchd, macos-automation, plist, background-services, self-healing
/daymade-macos:macos-watchdogfrom daymade-macos
npx claudepluginhub daymade/claude-code-skills --plugin daymade-macos6 skills in this plugin
/capture-screenProgrammatic screenshot capture on macOS. Find window IDs with Swift CGWindowListCopyWindowInfo, control application windows via AppleScript (zoom, scroll, select), and capture with screencapture. Use when automating screenshots, capturing application windows for documentation, or building multi-shot visual workflows./developing-ios-appsBuilds and ships iOS/macOS apps with XcodeGen, SwiftUI and SPM: Xcode build fixes, device deployment, Apple Developer signing/notarization, CI/CD pipelines. Use for XcodeGen project.yml setup, "Library not loaded @rpath" crashes, code-signing errors (Error -25294, adhoc fallback), or Electron notarization failures. Not for TCC permission dialogs (use macos-permissions) or disk cleanup (use macos-cleaner)./macos-cleanerDiagnoses and safely reclaims macOS disk space: caches, logs, app remnants, large/duplicate files, Docker/OrbStack, Chromium code-sign clones, developer caches. Use when a Mac is low on storage, shows “Caching needs more space”, when consolidating old task evidence, or before deleting anything to avoid data loss. Not for Windows/Linux or permission issues (use macos-permissions)./macos-load-doctorDiagnoses 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-permissionsDiagnoses TCC denials, Local Network access and stuck Keychain dialogs: Full Disk Access, Screen Recording, Microphone, Camera, Accessibility, Automation. Use for repeated prompts, background-only LaunchAgent/uv failures, broken grants or FDA automation (权限弹窗 / 授权了没用 / 完全磁盘访问 / 本地网络权限). Checks requester/grants first. Not launchd design (macos-watchdog) or app permission UX (developing-ios-apps).Other plugins' skills for the same job