FC openclaw-watchdog
Self-healing monitoring system for OpenClaw gateway. Auto-detects failures, fixes crashes, and sends Telegram alerts.
As a process C 63/100 · Has gaps — weak spots: result and completion, when it triggers, running it twice
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 14
-
high Dangerous commands
cmd-persistencereferences/troubleshooting.md:44Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist # Stop
-
high Dangerous commands
cmd-persistencereferences/troubleshooting.md:45Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load ~/Library/LaunchAgents/com.openclaw.watchdog.plist # Start
-
high Dangerous commands
cmd-persistencereferences/troubleshooting.md:62Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist
-
high Dangerous commands
cmd-persistencereferences/troubleshooting.md:63Persistence mechanism (cron / launchd / scheduled task / autorun registry)rm ~/Library/LaunchAgents/com.openclaw.watchdog.plist
-
high Dangerous commands
cmd-persistencescripts/setup.sh:138Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load "$PLIST"
-
high Dangerous commands
cmd-persistenceSKILL.md:95Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl unload ~/Library/LaunchAgents/com.openclaw.watchdog.plist 2>/dev/null
-
high Dangerous commands
cmd-persistenceSKILL.md:96Persistence mechanism (cron / launchd / scheduled task / autorun registry)rm -f ~/Library/LaunchAgents/com.openclaw.watchdog.plist
Medium and low: 7
-
medium Dangerous commands
cmd-persistencescripts/setup.sh:116Persistence mechanism (cron / launchd / scheduled task / autorun registry) (string literal in code, not executed)PLIST="$HOME/Library/LaunchAgents/com.openclaw.watchdog.plist"
code literal -
low Exfiltration
exfil-webhook-urlreferences/troubleshooting.md:21Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)1. Verify bot token: `curl https://api.telegram.org/bot<TOKEN>/getMe`
placeholder -
low Exfiltration
exfil-webhook-urlreferences/troubleshooting.md:22Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)2. Verify chat ID: `curl https://api.telegram.org/bot<TOKEN>/getUpdates`
placeholder -
low Exfiltration
exfil-webhook-urlscripts/test-message.py:28Webhook / callback URL commonly used for exfiltration (verify the destination) (test fixture / example file; the skill's own vendor host; quoted — discussed, not commanded)f'https://api.telegram.org/bot{token}/sendMessage',fixturevendor-hostquoted -
low Exfiltration
exfil-webhook-urlscripts/validate.py:18Webhook / callback URL commonly used for exfiltration (verify the destination) (the skill's own vendor host; quoted — discussed, not commanded)resp = json.loads(urllib.request.urlopen(f'https://api.telegram.org/bot{token}/getMe').read())vendor-hostquoted -
low Exfiltration
exfil-webhook-urlscripts/watchdog.py:100Webhook / callback URL commonly used for exfiltration (verify the destination) (the skill's own vendor host; quoted — discussed, not commanded)url = f"https://api.telegram.org/bot{token}/sendMessage"vendor-hostquoted -
low Exfiltration
exfil-webhook-urlSKILL.md:35Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)2. **Your Telegram Chat ID** — Send `/start` to your bot, then visit `https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates` to find your chat ID
placeholder
Files scanned: 7. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - note
frontmatter-keyunknown frontmatter key "homepage"
Process rating: all ten parameters 63/100
- 0Result and completion. Does not say what the result is
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 9 mutating operations with no state check
- 60Tools and files. Uses tools (python) that frontmatter does not declare
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Steps. 15 steps
- 100Failures and branches. 1 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 918 tokens
- 100Progress reporting. Reports progress
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 117: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- -41 reference files, but SKILL.md never points to them: the model will not open them
- -31 of 4 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +4Structure: 12 headings
- +3Step-by-step instructions: 15 items
- +4Has examples (5 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 61.