Security gates for
spec-driven development.
A GitHub Spec Kit extension that catches prompt injection, committed secrets, unpinned models, and undeclared PII before code ships. Eight slash commands, five phase hooks, six gates. All stack-agnostic.
The six gates
Data Contract
Blocks if the spec has no Data Contract section, the Zod schema file is missing, or the schema uses z.any().
Threat Model
Blocks if the spec has no threat model section, or if any High/Critical threat is marked [UNMITIGATED].
Model Governance
For AI features: blocks on unpinned versions like "latest" or "stable", or when no rollback plan is mentioned.
Guardrails
For AI features: requires a versioned guardrail YAML with both blocked_patterns and redact_patterns defined.
Red Team
Checks a red-team report file exists. An optional runner hits staging with safety guards that refuse prod URLs and rate-limit requests.
Inline Content Scan
Blocks inline system prompts in src/, committed secrets anywhere in the repo, and .env files tracked by git.