FC gateway-keepalive
OpenClaw Gateway 黄金包活机制,确保 7x24 小时稳定运行
As a process C 53/100 · Has gaps — weak spots: result and completion, when it triggers, inputs and preconditions
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.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
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 · 19
-
high Dangerous commands
cmd-persistencedocs/gateway-keepalive-setup-guide.md:71Persistence mechanism (cron / launchd / scheduled task / autorun registry)cat > ~/Library/LaunchAgents/ai.openclaw.gateway.plist <<'EOF'
-
high Dangerous commands
cmd-persistencedocs/gateway-keepalive-setup-guide.md:219Persistence mechanism (cron / launchd / scheduled task / autorun registry)cat > ~/Library/LaunchAgents/com.openclaw.health-check.plist <<'EOF'
-
high Dangerous commands
cmd-persistencedocs/gateway-keepalive-setup-guide.md:263Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load ~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistencedocs/gateway-keepalive-setup-guide.md:266Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl load ~/Library/LaunchAgents/com.openclaw.health-check.plist
-
high Dangerous commands
cmd-persistencescripts/health-check-recovery.sh:186Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/health-check-recovery.sh:190Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist 2>&1 || true
-
high Dangerous commands
cmd-persistencescripts/install.sh:99Persistence mechanism (cron / launchd / scheduled task / autorun registry)cat > ~/Library/LaunchAgents/ai.openclaw.gateway.plist <<EOF
-
high Dangerous commands
cmd-persistencescripts/install.sh:141Persistence mechanism (cron / launchd / scheduled task / autorun registry)cat > ~/Library/LaunchAgents/com.openclaw.health-check.plist <<EOF
-
high Dangerous commands
cmd-persistencescripts/install.sh:175Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/install.sh:176Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.openclaw.health-check.plist 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/install.sh:179Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistencescripts/uninstall.sh:20Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/uninstall.sh:21Persistence mechanism (cron / launchd / scheduled task / autorun registry)launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.openclaw.health-check.plist 2>/dev/null || true
-
high Dangerous commands
cmd-persistencescripts/uninstall.sh:25Persistence mechanism (cron / launchd / scheduled task / autorun registry)rm -f ~/Library/LaunchAgents/ai.openclaw.gateway.plist
-
high Dangerous commands
cmd-persistencescripts/uninstall.sh:26Persistence mechanism (cron / launchd / scheduled task / autorun registry)rm -f ~/Library/LaunchAgents/com.openclaw.health-check.plist
-
high Dangerous commands
cmd-persistenceSKILL.md:309Persistence mechanism (cron / launchd / scheduled task / autorun registry)~/Library/LaunchAgents/
Medium and low: 3
-
medium Exfiltration
net-credential-usescripts/health-check-recovery.sh:73Credential used in a network call (verify the destination is the intended service)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
-
low Dangerous commands
cmd-cron-mentiondocs/gateway-keepalive-setup-guide.md:368Mentions editing / listing crontabcrontab -e
-
low Exfiltration
exfil-webhook-urlscripts/health-check-recovery.sh:73Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)curl -s -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
placeholder
Files scanned: 8. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- error
name-missingSKILL.md: frontmatter has no `name` - warning
description-shortdescription under 40 chars: too little signal for triggering - warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - note
frontmatter-keyunknown frontmatter key "title" - note
frontmatter-keyunknown frontmatter key "created" - note
frontmatter-keyunknown frontmatter key "updated"
Process rating: all ten parameters 53/100
- 0Result and completion. Does not say what the result is
- 0When it triggers. No condition that starts the skill
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 100Tools and files. No external tools needed
- 100Steps. 9 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1565 tokens
- 100Running it twice. No mutating operations
- 100Progress reporting. Reports progress
- low 12 top-level sections: this looks like several domains in one skill
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 38: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Structure: 25 headings
- +3Step-by-step instructions: 9 items
- +4Has examples (21 code blocks)
- +4Reference files are cited in the instructions (1 of 1)
- +3All 4 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 35.