/plugin marketplace add sjnims/requirements-expert/plugin install requirements-expert@requirements-expert-marketplaceDefined in hooks/hooks.json
{
"UserPromptSubmit": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Analyze the following user prompt to determine if it relates to requirements work.\n\nUser prompt:\n$ARGUMENTS\n\nTRIGGER when the message:\n- Explicitly mentions vision, epics, user stories, tasks, or acceptance criteria\n- Discusses requirements gathering or documentation for a new project\n- Asks about breaking features into structured deliverables\n- Mentions MoSCoW prioritization or product backlog management\n- Requests help defining or organizing project requirements\n\nDO NOT TRIGGER for:\n- Prompts that already reference /re: commands (e.g., /re:init, /re:discover-vision)\n- General coding, debugging, or implementation questions\n- Simple feature requests or small enhancements\n- \"How does X work?\" or technical design questions\n- Vague mentions of \"planning\" or \"designing\" without requirements context\n- Follow-up questions in an ongoing requirements conversation\n\nRespond with valid JSON only:\n\nIf requirements-related AND no /re: command already referenced:\n{\"hookSpecificOutput\":{\"hookEventName\":\"UserPromptSubmit\",\"additionalContext\":\"It looks like you're working on requirements. Would you like to use the requirements-expert plugin to help structure this work? It can guide you through vision → epics → stories → tasks using GitHub Projects.\"}}\n\nIf NOT requirements-related OR /re: command already referenced:\n{\"hookSpecificOutput\":{\"hookEventName\":\"UserPromptSubmit\",\"additionalContext\":\"\"}}",
"timeout": 10
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"prompt": 1
},
"eventStats": {
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}