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.
11 lines
640 B
JSON
11 lines
640 B
JSON
{
|
|
"hooks": {
|
|
"Stop": [{
|
|
"hooks": [{
|
|
"type": "prompt",
|
|
"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.\"}"
|
|
}]
|
|
}]
|
|
}
|
|
}
|