macos-watchdog

macos-watchdog is a skill for Claude Code from daymade/claude-code-skills. It costs 119 tokens per session (7,716 once invoked), scanned B, original, MIT.

Guidance for building macOS launchd watchdogs: persistent background jobs that detect recurring problems and fix them automatically. It covers LaunchAgents, LaunchDaemons, scheduling files, logging, stopping, and safe self-remediation.

In plain words
What is it for?
Use it when creating, editing, deploying, diagnosing, stopping, or restarting a macOS watchdog or other launchd-based background monitor.
Why use it?
It helps prevent a monitoring job from creating new problems such as notification floods, repeated app launches, resource-heavy loops, or false reports.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the daymade-macos plugin — 6 skills shipped together

Good fit Use it when creating, editing, deploying, diagnosing, stopping, or restarting a macOS watchdog or other launchd-based background monitor.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/macos-watchdog
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,557 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daymade/claude-code-skills --skill macos-watchdog
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-macos, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macos-watchdog

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-watchdog/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/macos-watchdog)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/macos-watchdog"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-watchdog/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macos-watchdog

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/macos-watchdog"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/macos-watchdog.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,716 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 12 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 4
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 9
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 20
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 63
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 64
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 66
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 76
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 78
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 87
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 9
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Privilege Escalation · line 74
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Rogue Agent · line 75
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.07716
Opus 5.5 $0.00048 $0.03086
Sonnet 5.5 $0.00024 $0.01543
Haiku 4.5 $0.00012 $0.00772

Measured today against content hash 114bac9ab3fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

macos-watchdog scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

The scan reads SKILL.md. This mod also ships 5 executable files (evals/iteration-1/eval-2-audit/fixture/broken-heal.sh, scripts/inspect_native_job.py, scripts/new-launchagent.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Stop now, allow re-bootstrap later | `launchctl bootout gui/$(id -u)/<label>` (daemon: `sudo launchctl bootout system/<label>`) |
daymade-macos/macos-watchdog/SKILL.md · 338 lines

How it starts

The opening of the file, as written. The whole thing — 338 lines — stays where its author put it; the contents beside it link to each section on 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.

Read the full file on GitHub · 338 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +4 lines 114bac9ab3fc
  2. 6d ago Changed · +18 lines aa448ceab1ae
  3. 7d ago Changed · +13 lines fffb9d2e09da
  4. 8d ago Changed 53c76342d5f2
  5. 9d ago Changed · +1 lines cb94b7d6ddc3
  6. 11d ago Changed · +5 lines b391917703c3
  7. 12d ago Changed · +1 lines a00a635365c1
  8. 14d ago Changed · +9 lines 9101cef58b0f
  9. 17d ago Changed · +9 lines 948a9ce81e71
  10. 18d ago First seen · 278 lines · 119 tokens per session scan B 26c8877bdc90

Subscribe to this mod's changes

macos-watchdog is a skill published in the GitHub repository daymade/claude-code-skills (1,557 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 7,716 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

macos-watchdog compared with skills from other repositories

macos-watchdog next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
macos-watchdogdaymade/claude-code-skillsSkill1.6ktodayMITB119Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
verus-query-timinglbx154/ArgusSkill337yesterdayMITA28Claude Code, Codex