macos-watchdog
БесплатноЗапускает вложенные скриптыНе проверенDesigns and audits macOS launchd watchdogs: LaunchAgent/LaunchDaemon setup, plist edits, scheduled self-healing, repeated notifications, apps reopening after…
от daymade★ 1 556 звёзд на GitHubОб этом скилле
macOS Watchdog
Bind the ordinary entry before choosing a mechanism
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:
- Ordinary entry: where the user will actually start or use the work. When its launcher adopts only some invocation or lifecycle forms, derive the relevant forms from the current launcher and actual requested use; record adopted, bypassed and unverified forms separately, and accept each claimed form through its real consumer.
- Manual activation: whether the request permits any extra command or setup after delivery.
- Lifecycle: whether the result covers a session, login, or machine, and which owned components must start and stop with it.
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.
Entry decision tree
| 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 |
| A periodic job follows a release source or succeeds only from the interactive shell | Periodic deployment replay |
| Checking whether a plist edit is active, or comparing job argv / explicit ENV / configured paths / scheduling keys | Run `sc |
Установить macos-watchdog в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл macos-watchdog?
Designs and audits macOS launchd watchdogs: LaunchAgent/LaunchDaemon setup, plist edits, scheduled self-healing, repeated notifications, apps reopening after quit, crash/repair loops, Script Editor alerts, stop/disable/restart, cooldown/backoff, notification throttling, alert decisions, schedule readback, WatchPaths/FSEvents event triggers. Supports periodic observers. launchd 守护进程、常驻任务、开机自启、后台监控、定时自愈、通知来源排查、事件驱动监控。
Как установить скилл macos-watchdog?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл macos-watchdog запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic