SessionStart hook directly echoes context text instead of calling external script. Simple, maintainable, no dependencies.
12 lines
539 B
JSON
12 lines
539 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [{
|
|
"matcher": "startup|resume|compact",
|
|
"hooks": [{
|
|
"type": "command",
|
|
"command": "echo 'EXTREMELY_IMPORTANT: hub-guide best-practice skills are loaded and active for this session. MANDATORY: engineering-principles, clean-code, clean-architecture, testing, error-handling, security, git-workflow, api-design. Use the Skill tool to load any hub-guide skill when its topic comes up. Never assume or guess -- always find evidence in the codebase or docs.'"
|
|
}]
|
|
}]
|
|
}
|
|
}
|