From a527d0ee78c34d78d8f8b3c1ff03787cdecc8a6a Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 26 Jul 2026 12:13:15 +0700 Subject: [PATCH] fix(hooks): use type prompt instead of command Prompt-based hook returns ok:false with skill reminders as reason, which gets fed back to Claude as active instructions. --- hooks/hooks.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hooks/hooks.json b/hooks/hooks.json index fe0cfe4..a75dcb8 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -1,10 +1,9 @@ { "hooks": { - "SessionStart": [{ - "matcher": "startup|resume|compact", + "Stop": [{ "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.'" + "type": "prompt", + "prompt": "You have hub-guide best-practice skills active. MANDATORY: engineering-principles, clean-code, clean-architecture, testing, error-handling, security, git-workflow, api-design. Never assume or guess. Always find evidence in codebase or docs. If you have not applied these, return {\"ok\": false, \"reason\": \"[hub-guide] Apply MANDATORY skills: engineering-principles, clean-code, clean-architecture, testing, error-handling, security, git-workflow, api-design. Never assume or guess. Always show evidence.\"}" }] }] }