npx claudepluginhub javimontano/mao-sovereign-architectDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'G=\"$1/sa/active-plugin\";M=\"sa\";[ -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/sa/active-plugin\";M=\"sa\";[ -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/sa/active-plugin\";M=\"sa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/post-prime-calibrate.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
}
],
"matcher": "Write|Edit"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash -c 'G=\"$1/sa/active-plugin\";M=\"sa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;mkdir -p \"$1/sa\"&&echo \"$M\">\"$G\";bash \"$2/scripts/secrets-scan.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/sa/active-plugin\";M=\"sa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/scan-artifacts.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/sa/active-plugin\";M=\"sa\";[ -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/sa/active-plugin\";M=\"sa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/auto-prime-check.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
},
{
"type": "command",
"command": "bash -c 'G=\"$1/sa/active-plugin\";M=\"sa\";[ -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/sa/active-plugin\";M=\"sa\";[ -f \"$G\" ]&&[ \"$(cat \"$G\" 2>/dev/null)\" != \"$M\" ]&&exit 0;bash \"$2/scripts/session-changelog.sh\" \"$1\"' _ \"$PWD\" \"$PLUGIN_DIR\" 2>/dev/null || true"
}
]
}
]
}"On session start, announces Ships Library v2 loaded with agents (Navigator, Steward, Analyst) and vault at /Volumes/Dock/ships-library. After Write/Edit tools, runs async post-edit script involving file writes."