npx claudepluginhub hculap/better-code --plugin tdd-devDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-tool-use.sh",
"timeout": 10
}
],
"matcher": "Write|Edit"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-tool-use.sh",
"timeout": 10
}
],
"matcher": "Bash"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-submit.sh",
"timeout": 5
}
]
}
]
}"Executes bash commands via 'ctx system' for context loading/gating, QA reminders, task completion checks, and session health (size, persistence, freshness) on PreToolUse, PostToolUse, UserPromptSubmit. Touches files."