npx claudepluginhub ancplua/ancplua-claude-plugins --plugin metacognitive-guardDefined in hooks/hooks.json
{
"PreToolUse": [
{
"if": "Write || Edit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/epistemic-guard",
"timeout": 5,
"statusMessage": "Checking epistemic constraints..."
}
],
"matcher": "Write|Edit"
},
{
"if": "Bash(git commit*)",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/commit-integrity-hook",
"timeout": 10,
"statusMessage": "Checking commit integrity..."
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/objective-watch",
"timeout": 5,
"statusMessage": "Checking objective drift..."
}
],
"matcher": "Bash|Task|Read|Grep|Glob|Write|Edit|MultiEdit"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/ralph-loop",
"timeout": 5,
"statusMessage": "Ralph scanning..."
}
],
"matcher": "Write|Edit"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/objective-watch",
"timeout": 5,
"statusMessage": "Refreshing active objective..."
}
]
}
]
}"Runs bash 'ctx system' commands on PreToolUse (context load/block/QA/specs/agent), PostToolUse (post-commit/task checks), and UserPromptSubmit (13+ health checks: context/persistence/journal/reminders/version/resources etc.). Touches bash/files."