Plan Gate
Hooks quality-gates 168
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.
npx claude-code-templates@latest --hook quality-gates/plan-gate claude-code — plan-gate
Content
JSON
{
"description": "Planning gate that warns when editing production code without an approved specif..."
"supportingFiles": [
{3 keys}
]
"hooks": {
"PreToolUse": [3 items]
}
}