CB opencode
OpenCode AI - AI-driven code editor/IDE (CLI/TUI version of Cursor/Windsurf). Use when: (1) AI-assisted coding tasks, (2) Code refactoring with AI, (3) GitHub PR review/fixes, (4) Multi-file edits requiring context, (5) Running AI agents on codebases. NOT for: simple one-line edits (use edit tool), reading files (use read tool).
OpenCode AI - AI-driven code editor/IDE (CLI/TUI version of Cursor/Windsurf).
As a process B 66/100 · Nearly there — weak spots: running it twice, progress reporting
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
- 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 · 11
✓ No critical or high findings
Medium and low: 11
-
medium Dangerous commands
cmd-shell-rcINDEX.md:25Writes to a shell startup fileecho 'export PATH="/usr/sbin:/usr/bin:/sbin:/bin:$PATH"' >> ~/.zshrc
-
medium Dangerous commands
cmd-privilegeINDEX.md:35Privilege escalation / world-writable permissionssudo cp -r /Users/wl/.openclaw/workspace/skills/opencode /usr/local/lib/node_modules/openclaw/skills/
-
medium Dangerous commands
cmd-privilegeINDEX.md:139Privilege escalation / world-writable permissionssudo cp -r opencode /usr/local/lib/node_modules/openclaw/skills/
-
medium Dangerous commands
cmd-privilegeINSTALL.md:21Privilege escalation / world-writable permissionssudo cp -r /usr/local/lib/node_modules/openclaw/skills/opencode ~/opencode-skill-backup 2>/dev/null || true
-
medium Dangerous commands
cmd-privilegeINSTALL.md:24Privilege escalation / world-writable permissionssudo cp -r /Users/wl/.openclaw/workspace/skills/opencode /usr/local/lib/node_modules/openclaw/skills/
-
medium Dangerous commands
cmd-privilegeINSTALL.md:30Privilege escalation / world-writable permissionssudo chown -R root:wheel /usr/local/lib/node_modules/openclaw/skills/opencode
-
medium Dangerous commands
cmd-privilegeINSTALL.md:31Privilege escalation / world-writable permissionssudo chmod -R 755 /usr/local/lib/node_modules/openclaw/skills/opencode
-
medium Dangerous commands
cmd-privilegeINSTALL.md:151Privilege escalation / world-writable permissionssudo chown -R root:wheel /usr/local/lib/node_modules/openclaw/skills/opencode
-
medium Dangerous commands
cmd-shell-rcREADME.md:22Writes to a shell startup fileecho 'export PATH="/usr/sbin:/usr/bin:/sbin:/bin:$PATH"' >> ~/.zshrc
-
medium Dangerous commands
cmd-shell-rcSKILL.md:32Writes to a shell startup fileecho 'export PATH="/usr/sbin:/usr/bin:/sbin:/bin:$PATH"' >> ~/.zshrc
-
medium Dangerous commands
cmd-privilegeSUMMARY.md:65Privilege escalation / world-writable permissionssudo cp -r /Users/wl/.openclaw/workspace/skills/opencode /usr/local/lib/node_modules/openclaw/skills/
Files scanned: 7. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 66/100
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 4 mutating operations with no state check
- 50When it triggers. No condition that starts the skill
- 50Failures and branches. 0 branches, has a failure section
- 60Tools and files. Uses tools (bash) that frontmatter does not declare
- 60Result and completion. Output format stated, no completion criterion
- 70Inputs and preconditions. Inputs and preconditions are listed
- 85Steps. 70 steps, 1 vague phrases
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2771 tokens
- low 15 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
- -218 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +4Description says when NOT to use the skill
- +3Description length 330: enough signal without eating the budget
- +4Structure: 51 headings
- +3Step-by-step instructions: 70 items
- +3Output format is stated explicitly
- +4Has examples (34 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 89.