fix(hooks): restore with UserPromptSubmit prompt hook

UserPromptSubmit fires before each user prompt. Returns ok:true (silent)
if skills are already applied, ok:false with reason only when not applied.
No more Stop hook error noise.
This commit is contained in:
asepharyana
2026-07-26 12:16:36 +07:00
parent 4c0285bf98
commit d66587ada1
+10
View File
@@ -0,0 +1,10 @@
{
"hooks": {
"UserPromptSubmit": [{
"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.\"}"
}]
}]
}
}