/guardrails:self-testfrom guardrails
Prove the guardrails Bash guard is live — runs a simulation that feeds representative dangerous commands (curl|sh, rm -rf, DROP TABLE, kubectl delete, cloud deletes, …) through the real guard and shows the block/ask decision for each, WITHOUT executing any of them. Use when asked to verify the guard is working, or right after installing guardrails.
Ships in guardrails. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the bundled self-test to show the guard is active. It injects dangerous command strings into the guard as hook data and prints each decision — it does not execute any command.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/self-test.sh"
Never run any of the dangerous example commands yourself. The whole point is that they travel through the guard as data, never to a real shell. If the script exits non-zero, report which case mismatched — do not "fix" it by running commands.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
guardrails@buildwithclaude is listed by davepoon/buildwithclaude — review the source before installing
npx claudepluginhub davepoon/buildwithclaude --plugin guardrails