- Replace command-based SessionStart/PreToolUse hooks with prompt-based Stop hook - Stop hook reads user's prompt and activates relevant skills concept-based - Remove obsolete detect-project.sh, detect-file-type.sh, setup-hooks.sh - Detection is concept-based regardless of spoken language
11 lines
455 B
JSON
11 lines
455 B
JSON
{
|
|
"hooks": {
|
|
"Stop": [{
|
|
"hooks": [{
|
|
"type": "prompt",
|
|
"prompt": "--- skill detect ---\nRead the user's prompt. Detect what language, framework, tool, or topic they are asking about. If it matches any hub-guide skill concept (see available skills), activate that skill's rules for your response.\n\nDetection is concept-based, not keyword-based — works regardless of what language the user speaks.\n---"
|
|
}]
|
|
}]
|
|
}
|
|
}
|