npx claudepluginhub javimontano/mao-plugin-qaDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/session-changelog.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/context-prune.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/post-write-validate.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
}
],
"matcher": "Write|Edit"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;mkdir -p \"$1/pqa\"&&echo \"$M\">\"$G\";bash \"$2/scripts/plugin-scan.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/session-context-gen.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/session-init.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/ghost-menu-inject.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/pqa/active-plugin\";M=\"pqa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/session-changelog.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
}
]
}
]
}"Automates 'pqa' plugin workflow: on SessionStart creates state dir, scans plugins, generates context, initializes session, injects menu, logs changes. On PostToolUse Write/Edit: logs changes, prunes context, validates writes. Runs bash scripts, writes files."