What problem does it solve?
macOS launchd watchdogs (LaunchAgents/LaunchDaemons) often become new sources of disturbance: they re-launch apps the user quit, spam notifications every interval, re-run full repair ladders on unfixable networks, or silently fail with no logs. This Skill provides the design contract and mechanics to build watchdogs that detect recurring problems, remediate them, and stand down by themselves when they cannot help.
Core Features & Use Cases
- Quiet-watchdog contract: Four enforceable clauses — premise-state self-check, patient mode (remediate only on sustained failure), escalating auto-cooldown, and never resurrecting user-quit apps.
- Deployment mechanics: Idempotent LaunchAgent installer script, annotated plist template guidance, bootstrap/bootout/disable semantics, logging via StandardOutPath/StandardErrorPath, and TCC/Full Disk Access pitfalls.
- Reusable cooldown library: A sourceable bash script providing escalating backoff tiers, manual pause/resume, and exhausted-round counters for any self-healing script.
- Use Case: A VPN-repair watchdog keeps popping the VPN app to the foreground every 5 minutes on a broken coffee-shop network. Use this Skill to diagnose the three violated clauses and add a process-alive gate, escalating cooldown, and notification throttling.
Quick Start
Ask the assistant to design a launchd watchdog that checks a local service every 10 minutes and restarts it only after sustained failures, with cooldown and quiet notifications.