npx claudepluginhub randomittin/superxDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "INPUT=$(cat); CMD=$(echo \"$INPUT\" | jq -r '.tool_input.command // empty'); if echo \"$CMD\" | grep -qE '^git\\s+push'; then superx-state check-quality-gates; fi"
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "if [ -f superx-state.json ]; then superx-state mark-dirty 2>/dev/null || true; fi"
}
],
"matcher": "Write|Edit"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "if [ ! -f superx-state.json ]; then superx-state init 2>/dev/null || true; fi"
}
]
}
]
}"PreToolUse checks Very Good CLI for matching tools and blocks Bash; PostToolUse analyzes/formats after Edit/Write; SessionStart warns if missing MCP. Runs bash scripts, touches files."