From respect
This skill should be used when the user types "/respect-guards", asks to "list guards", "show guards", "fix a guard", "delete a guard", "manage guards", or mentions guard scripts that misfire or need updating.
How this skill is triggered — by the user, by Claude, or both
Slash command
/respect:respect-guardsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage guard scripts that prevent repeating past mistakes. Guards are generated by `/oops` and live in two locations:
Manage guard scripts that prevent repeating past mistakes. Guards are generated by /oops and live in two locations:
~/.claude/respect/guards/ — fire in every project~/.claude/projects/[ENCODED_CWD]/guards/ — fire only in the current project (ENCODED_CWD = CWD with / and . replaced by -)*.json trigger metadata files:
~/.claude/respect/guards/*.json (global)ENCODED_CWD=$(pwd | sed 's/[\/.]/-/g')
ls ~/.claude/projects/${ENCODED_CWD}/guards/*.json 2>/dev/null
.json file, extract: triggers, lesson, created date.sh file exists and is executableGlobal Guards
=============
| Guard | Triggers | Lesson | Status |
|-------|----------|--------|--------|
| no-timeout | timeout | Use gtimeout on macOS | active |
| no-friday-deploy | git push, deploy | Don't deploy on Fridays | active |
Local Guards (this project)
===========================
| Guard | Triggers | Lesson | Status |
|-------|----------|--------|--------|
| config-in-config-dir | config.json, config.yaml | Config files go in ./config/ | active |
If no guards exist in either location, display: "No guards installed. Guards are created automatically when you use /oops."
When the user says "fix the [name] guard" or reports a guard misfiring:
~/.claude/respect/guards/) and local (~/.claude/projects/$(pwd | sed 's/[\/.]/-/g')/guards/) directories[name].sh and [name].jsonchmod +x [name].shWhen the user asks to remove/delete a guard:
[name].sh and [name].json from the appropriate directoryWhen the user asks to test a guard:
bash [guards_dir]/[name].sh "Bash" "[sample input matching triggers]"~/.claude/respect/guards/~/.claude/projects/[ENCODED_CWD]/guards/.sh (executable script) and .json (trigger metadata) file.sh script receives TOOL_NAME as $1, flattened TOOL_INPUT as $2 (for pattern matching), and raw JSON TOOL_INPUT as $3 (for field extraction).json tools field (optional) controls which tools the guard applies to:
mcp__.*slack.* target specific MCP tools["Bash", "mcp__.*datadog.*"]npx claudepluginhub nixon2/respect --plugin respectWrites well-structured Verification Guards as TOML files defining shell commands, timeouts, and output patterns for project checks like tests, lints, or FIXME detection. Use for creating/editing guards or verification mentions.
Guides creation of markdown-based Hookify rules to block dangerous bash commands, warn on risky file edits, and enforce behavioral guardrails in Claude Code.
Blocks destructive Bash commands like rm -rf, DROP TABLE, git force-push, reset --hard, and restricts file edits to a specific directory. Use for protection on critical systems.