From 07170000851f8e313b3f088a35953a8a8b59735a Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 26 Jul 2026 12:12:07 +0700 Subject: [PATCH] fix(hooks): inline context in hooks.json, no bash scripts SessionStart hook directly echoes context text instead of calling external script. Simple, maintainable, no dependencies. --- hooks/hooks.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 hooks/hooks.json diff --git a/hooks/hooks.json b/hooks/hooks.json new file mode 100644 index 0000000..fe0cfe4 --- /dev/null +++ b/hooks/hooks.json @@ -0,0 +1,11 @@ +{ + "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.'" + }] + }] + } +}