- Add matcher: startup|clear|compact to SessionStart hook - Inject only engineering-principles as foundational skill (19KB) - Strip emoji, use plain text everywhere - Remove 55KB of verbosity, keep focused primer
24 lines
557 B
JSON
24 lines
557 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [{
|
|
"matcher": "startup|clear|compact",
|
|
"hooks": [{
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-project.sh\"",
|
|
"shell": "bash",
|
|
"timeout": 10,
|
|
"async": false
|
|
}]
|
|
}],
|
|
"PreToolUse": [{
|
|
"matcher": "Write|Edit",
|
|
"hooks": [{
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-file-type.sh\" \"$TOOL_INPUT\"",
|
|
"shell": "bash",
|
|
"timeout": 10
|
|
}]
|
|
}]
|
|
}
|
|
}
|