davila7--claude-code-templates
1 行
1.4 KiB
JSON
1 行
1.4 KiB
JSON
{"content": "{\n \"description\": \"Planning gate that warns when editing production code without an approved specification. Checks for recent .spec.md files in the project directory (last 14 days). If no spec is found, shows a warning suggesting to create one first. Non-blocking (exit 0) — acts as a reminder, not a hard gate. Supports 16 programming languages. Part of the Spec-Driven Development (SDD) methodology where every implementation should be backed by an approved specification.\",\n \"supportingFiles\": [\n {\n \"source\": \"plan-gate.sh\",\n \"destination\": \".claude/hooks/plan-gate.sh\",\n \"executable\": true\n }\n ],\n \"hooks\": {\n \"PreToolUse\": [\n {\n \"matcher\": \"Edit\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"bash \\\"$CLAUDE_PROJECT_DIR\\\"/.claude/hooks/plan-gate.sh\"\n }\n ]\n },\n {\n \"matcher\": \"MultiEdit\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"bash \\\"$CLAUDE_PROJECT_DIR\\\"/.claude/hooks/plan-gate.sh\"\n }\n ]\n },\n {\n \"matcher\": \"Write\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"bash \\\"$CLAUDE_PROJECT_DIR\\\"/.claude/hooks/plan-gate.sh\"\n }\n ]\n }\n ]\n }\n}\n"} |