FC dcg
Destructive Command Guard - High-performance Rust hook for Claude Code that blocks dangerous commands before execution. SIMD-accelerated, modular pack system, whitelist-first architecture. Essential safety layer for agent workflows.
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.
How to improve
- Remove the critical guard findings (secrets, dangerous commands, hidden instructions): while they stand the skill is blocked and cannot grade above F.
- 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 · 24
-
critical Dangerous commands
cmd-destructive-fsbenches/heredoc_perf.rs:40Destructive filesystem command (wipes root/home/drive)rm -rf /
-
critical Dangerous commands
cmd-destructive-fsbenches/heredoc_perf.rs:87Destructive filesystem command (wipes root/home/drive)rm -rf /
-
high Dangerous commands
cmd-destructive-fsREADME.md:1586Destructive filesystem command (wipes root/home/drive) (documentation of a security skill)rm -rf --no-preserve-root / # Additional flags
security skill
Medium and low: 21
-
medium Dangerous commands
cmd-destructive-fs-scopeddocs/packs/system.md:91Destructive command on a partition / current directory (normal in admin docs; verify the target) (documentation of a security skill)| `wipefs` | wipefs removes filesystem signatures. Use with extreme caution. | high |
security skill -
medium Dangerous commands
cmd-destructive-fsdocs/scan/dockerfile-extractor-v1-spec.md:203Destructive filesystem command (wipes root/home/drive) (test fixture / example file; documentation of a security skill)# rm -rf / is safe in a comment
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellDGC_IMPROVEMENT_PLAN__GPT.md:762Downloads and executes remote code from an unrecognised host (pipe to shell) (negated — the text forbids it)- piped interpreters (`curl ... | bash`)
negated -
low Dangerous commands
cmd-privilegedocs/packs/remote.md:106Privilege escalation / world-writable permissions (documentation of a security skill)| `ssh-remote-sudo-rm` | SSH remote execution with sudo rm is high-risk. | high |
security skill -
low Dangerous commands
cmd-privilegedocs/packs/system.md:179Privilege escalation / world-writable permissions (documentation of a security skill)| `chmod-777` | chmod 777 makes files world-writable. This is a security risk. | high |
security skill -
low Dangerous commands
cmd-privilegedocs/packs/system.md:182Privilege escalation / world-writable permissions (documentation table row; documentation of a security skill)| `chmod-setuid` | Setting setuid bit (chmod u+s) is a security-sensitive operation. | high |
tablesecurity skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:23Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash -s -- --easy-mode
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:654Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash -s -- --easy-mode
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:671Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:677Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash -s -- --version v0.1.0
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostREADME.md:683Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | sudo bash -s -- --system
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:197Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:200Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | bash -s -- --easy-mode
security skill -
low Dangerous commands
cmd-pipe-to-shell-known-hostSKILL.md:203Pipe-to-shell installer from a well-known host (still executes remote code) (documentation of a security skill)curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/master/install.sh?$(date +%s)" | sudo bash -s -- --system
security skill
A further 7 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 80. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when")
Process rating: all ten parameters 53/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 20When it triggers. No condition that starts the skill
- 40Consistency. Frontmatter name (dcg) differs from the folder (destructive-command-guard)
- 60Tools and files. Uses tools (bash, web, git) that frontmatter does not declare
- 100Steps. 31 steps
- 100Failures and branches. 1 branches, has a failure section
- 100Execution cost. Instruction body is 3593 tokens
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 19 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (5 tags): a typed call is more reliable
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
- -427 reference files, but SKILL.md never points to them: the model will not open them
- +1No license
- +2Single-language instructions
- +3Description length 232: enough signal without eating the budget
- +4Structure: 57 headings
- +3Step-by-step instructions: 31 items
- +4Has examples (13 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 68.