npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin docs-guardianDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/docs-guardian/commit-guard.js"
}
],
"matcher": "Bash"
}
]
}"On PreToolUse for Bash tools, runs block-dangerous.sh to block risky commands and save-conv-before-commit.sh to save conversations before commits. Executes bash scripts, no file writes."