npx claudepluginhub sadwx/mempalace-plugin --plugin mempalaceDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/mempal_save_hook.sh",
"timeout": 30000
}
],
"matcher": ""
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/mempal_precompact_hook.sh",
"timeout": 30000
}
],
"matcher": ""
}
]
}"Executes mempal-stop-hook.sh bash script on Stop event and mempal-precompact-hook.sh on PreCompact event for lifecycle automation."