Back to Hooks

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.

Install Command
npx claude-code-templates@latest --hook quality-gates/plan-gate
View on GitHub
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]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.