FB openclaw-doctor-pro
Comprehensive diagnostic, error-fixing, and skill recommendation tool for OpenClaw
Comprehensive diagnostic, error-fixing, and skill recommendation tool for OpenClaw
As a process B 67/100 · Nearly there — weak spots: when it triggers, inputs and preconditions, progress reporting
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.
- 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 · 25
-
high Dangerous commands
cmd-disable-securityreferences/gateway-errors.md:159Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy)sudo setenforce 0
-
high Dangerous commands
cmd-disable-securityreferences/sandbox-errors.md:220Disables a security control (Defender, Gatekeeper, SIP, firewall, execution policy)sudo setenforce 0
Medium and low: 23
-
medium Dangerous commands
cmd-shell-rcreferences/auto-fix-capabilities.md:262Writes to a shell startup fileecho 'export PATH="'$NPM_BIN':$PATH"' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/auto-fix-capabilities.md:265Writes to a shell startup fileecho 'export PATH="'$NPM_BIN':$PATH"' >> ~/.zshrc
-
medium Dangerous commands
cmd-privilegereferences/gateway-errors.md:255Privilege escalation / world-writable permissionsecho "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
-
medium Dangerous commands
cmd-pipe-to-shell-known-hostreferences/installation-errors.md:32Pipe-to-shell installer from a well-known host (still executes remote code)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
-
medium Dangerous commands
cmd-pipe-to-shell-known-hostreferences/installation-errors.md:105Pipe-to-shell installer from a well-known host (still executes remote code)curl -fsSL https://get.pnpm.io/install.sh | sh -
-
medium Dangerous commands
cmd-shell-rcreferences/installation-errors.md:120Writes to a shell startup fileecho 'export PATH="$HOME/.local/share/pnpm:$PATH"' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/installation-errors.md:186Writes to a shell startup fileecho 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
-
medium Dangerous commands
cmd-privilegereferences/installation-errors.md:193Privilege escalation / world-writable permissionssudo chown -R $USER:$USER ~/.npm
-
medium Dangerous commands
cmd-privilegereferences/installation-errors.md:194Privilege escalation / world-writable permissionssudo chown -R $USER:$USER ~/.pnpm-store
-
medium Dangerous commands
cmd-shell-rcreferences/installation-errors.md:252Writes to a shell startup fileecho 'export PATH="$(npm bin -g):$PATH"' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/installation-errors.md:256Writes to a shell startup fileecho 'export PATH="$(pnpm bin -g):$PATH"' >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/installation-errors.md:260Writes to a shell startup fileecho 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
-
medium Dangerous commands
cmd-privilegereferences/installation-errors.md:525Privilege escalation / world-writable permissionssudo chown -R $USER:$USER ~/.npm
-
medium Dangerous commands
cmd-privilegereferences/installation-errors.md:526Privilege escalation / world-writable permissionssudo chown -R $USER:$USER ~/.pnpm-store
-
medium Dangerous commands
cmd-privilegereferences/sandbox-errors.md:49Privilege escalation / world-writable permissionssudo chmod 666 /var/run/docker.sock
-
medium Dangerous commands
cmd-privilegereferences/sandbox-errors.md:211Privilege escalation / world-writable permissionssudo chown -R $USER:$USER ~/.openclaw/workspace
-
medium Dangerous commands
cmd-privilegereferences/sandbox-errors.md:268Privilege escalation / world-writable permissionssudo chown -R 1000:1000 ~/.openclaw/workspace/
-
low Exfiltration
read-dotenvreferences/authentication-errors.md:159Reads a .env filecat .env.example
-
low Exfiltration
read-dotenvreferences/authentication-errors.md:165Reads a .env filecp .env.example .env
-
low Exfiltration
exfil-webhook-urlreferences/channel-errors.md:101Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)curl "https://api.telegram.org/bot<TOKEN>/getMe"
placeholder -
low Exfiltration
exfil-webhook-urlreferences/channel-errors.md:107Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)curl "https://api.telegram.org/bot<TOKEN>/getWebhookInfo"
placeholder -
low Dangerous commands
cmd-background-processreferences/sandbox-errors.md:39Starts a background / autostarted processsudo systemctl enable docker
-
low Exfiltration
exfil-webhook-urlreferences/troubleshooting-workflow.md:166Webhook / callback URL commonly used for exfiltration (verify the destination) (placeholder value)├─ curl "https://api.telegram.org/bot<TOKEN>/getMe"
placeholder
Files scanned: 50. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- note
frontmatter-keyunknown frontmatter key "homepage"
Process rating: all ten parameters 67/100
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 50Failures and branches. 0 branches, has a failure section
- 60Result and completion. Output format stated, no completion criterion
- 100Tools and files. No external tools needed
- 100Steps. 20 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 803 tokens
- 100Running it twice. No mutating operations
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 82: 120–800 characters recommended
- +2Single-language instructions
- +4Structure: 10 headings
- +3Step-by-step instructions: 20 items
- +3Output format is stated explicitly
- +4Has examples (5 code blocks)
- +4Reference files are cited in the instructions (12 of 12)
- +3All 5 scripts are documented
- +1License stated
Quality base 70; lint remarks subtract, signals add up to 100. Result: 91.