npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin tdd-guardianDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/tdd-guardian/pretool_guard.js"
}
],
"matcher": "Bash"
}
],
"TaskCompleted": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/scripts/tdd-guardian/taskcompleted_gate.js"
}
]
}
]
}"{\"riskFlags\": {\"touchesBash\": true, \"matchAllTools\": false, \"touchesFileWrites\": false}, \"typeStats\": {\"command\": 2}, \"eventStats\": {\"PreToolUse\": 1, \"TaskCompleted\": 1}, \"originCounts\": {\"absolutePaths\": 0, \"pluginScripts\": 2, \"projectScripts\": 0}, \"timeoutStats\": {\"commandsWithoutTimeout\": 2}}"