npx claudepluginhub javimontano/jm-adk --plugin 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"
}
]
}
]
}"Runs lint-config-file.ts after Write/Edit tool uses to lint config files. Installs production deps with bun on session start. Involves file writes."