From eba82a9b2f58cbcb754e9eb753e2d88e048f37d6 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 26 Jul 2026 12:18:39 +0700 Subject: [PATCH] fix(hooks): use Stop event, not UserPromptSubmit UserPromptSubmit dengan ok:false MEMBLOKIR prompt user. Stop event dengan ok:false = inject instruksi ke Claude tanpa block. Sama-sama inject context, tapi gak menghalangi user kerja. --- hooks/hooks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/hooks.json b/hooks/hooks.json index d67de2c..dd36576 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -1,9 +1,9 @@ { "hooks": { - "UserPromptSubmit": [{ + "Stop": [{ "hooks": [{ "type": "prompt", - "prompt": "Hub-guide best-practice skills are active for this session. 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 these skills are already being applied, respond: {\"ok\": true}. If NOT being applied, respond: {\"ok\": false, \"reason\": \"[hub-guide] Apply MANDATORY skills to this session.\"}" + "prompt": "Hub-guide best-practice skills are loaded. 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 these skills are already being applied, respond: {\"ok\": true}. If not fully applied, respond: {\"ok\": false, \"reason\": \"[hub-guide] Apply MANDATORY skills: engineering-principles, clean-code, clean-architecture, testing, error-handling, security, git-workflow, api-design.\"}" }] }] }