agent-guardrails-test
Installation
SKILL.md
Agent Guardrails Test
Verify that the installed stop-guardrails.sh hook catches all six rules by sending test phrases through it.
Workflow
Step 1: Check Hook Installation
Verify the hook is installed and executable:
if [ ! -x .claude/hooks/stop-guardrails.sh ]; then
echo "FAIL: .claude/hooks/stop-guardrails.sh not found or not executable"
exit 1
fi
if ! cat .claude/settings.local.json 2>/dev/null | jq -e '.hooks.Stop' > /dev/null 2>&1; then
echo "FAIL: No Stop hook configured in .claude/settings.local.json"
exit 1
Related skills