CF openclaw-guardian-cn
OpenClaw 系统守护 skill。每日定时自检、自动检测异常并尝试自救。 用于:(1) 每日定时检查 Gateway 状态 (2) 自动检测进程/WebSocket/插件异常 (3) 自动尝试恢复服务 (4) 用户可自定义自检时间 当用户要求设置每日自检、自助恢复、系统守护、自动重启 Gateway 时触发。
As a process F 37/100 · Will not run — References files that are not bundled: scripts/guardian-windows.ps1
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
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
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- The text references files that are not there: add them or drop the references.
- 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 · 13
✓ No critical or high findings
Medium and low: 13
-
medium Dangerous commands
cmd-persistenceSKILL.md:168Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)(crontab -l 2>/dev/null; echo "*/5 * * * * pgrep -f \"openclaw-gateway\" > /dev/null || cd $OPENCLAW_PATH && node ./dist/daemon-cli.js start >> /tmp/gateway_guardian.log 2>&1") | crontab -
security skill -
medium Dangerous commands
cmd-persistenceSKILL.md:250Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)(crontab -l 2>/dev/null; echo '*/5 * * * * pgrep -f "openclaw-gateway" > /dev/null || cd ~/.openclaw && node ./dist/daemon-cli.js start >> /tmp/gateway_guardian.log 2>&1') | crontab -
security skill -
medium Dangerous commands
cmd-persistenceSKILL.md:299Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)Register-ScheduledTask -TaskName "OpenClaw Guardian" -Trigger $trigger -Action $action -RunLevel Highest
security skill -
medium Dangerous commands
cmd-persistenceSKILL.md:307Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)Register-ScheduledTask -TaskName "OpenClaw Guardian" -Trigger $trigger -Action $action -RunLevel Highest
security skill -
medium Dangerous commands
cmd-persistenceSKILL.md:343Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)(crontab -l 2>/dev/null; echo '*/5 * * * * pgrep -f "openclaw-gateway" > /dev/null || cd ~/.openclaw && node ./dist/daemon-cli.js start >> /tmp/gateway_guardian.log 2>&1') | crontab -
security skill -
low Dangerous commands
cmd-cron-mentionscripts/guardian-daily.sh:15Mentions editing / listing crontab (documentation of a security skill)if crontab -l 2>/dev/null | grep -q "openclaw-gateway"; then
security skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:167Mentions editing / listing crontab (documentation of a security skill)if ! crontab -l 2>/dev/null | grep -q "openclaw-gateway"; then
security skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:168Mentions editing / listing crontab (documentation of a security skill)(crontab -l 2>/dev/null; echo "*/5 * * * * pgrep -f \"openclaw-gateway\" > /dev/null || cd $OPENCLAW_PATH && node ./dist/daemon-cli.js start >> /tmp/gateway_guardian.log 2>&1") | crontab -
security skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:246Mentions editing / listing crontab (documentation of a security skill)crontab -l | grep "openclaw-gateway"
security skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:250Mentions editing / listing crontab (documentation of a security skill)(crontab -l 2>/dev/null; echo '*/5 * * * * pgrep -f "openclaw-gateway" > /dev/null || cd ~/.openclaw && node ./dist/daemon-cli.js start >> /tmp/gateway_guardian.log 2>&1') | crontab -
security skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:274Mentions editing / listing crontab (documentation of a security skill)crontab -e
security skill
A further 2 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 5. 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") - warning
missing-refreference to a missing file: scripts/guardian-windows.ps1
Process rating: all ten parameters 37/100
- 0Tools and files. 1 referenced file(s) missing: scripts/guardian-windows.ps1
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 20When it triggers. No condition that starts the skill
- 100Steps. 43 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1639 tokens
- 100Running it twice. No mutating operations
- 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)
- +3Output format is not stated: the model decides each time
- -4Absolute local paths (C:\Users, /home/…): not portable
- -32 of 3 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 158: enough signal without eating the budget
- +4Structure: 38 headings
- +3Step-by-step instructions: 43 items
- +4Has examples (19 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 59.