Problem Statement
Spec Kit already gives teams a strong spec/plan/tasks/constitution workflow, but teams with stronger secure-development and software-architecture governance needs still have to fork and maintain a fairly large set of custom constitution sections, agent guidance, templates, and evidence documents.
In practice, that means requirements such as secure coding, secure architecture, threat modeling, supply-chain transparency, and architecture/security evidence often live outside the standard Spec Kit flow, even though they affect specs, plans, tasks, and agent behavior.
I have been experimenting with this in my own home-baseline project and found that the missing piece is not just a single template, but a small, opinionated governance bundle that can flow through:
constitution.md
- agent guidance files (
AGENTS.md, CLAUDE.md, GEMINI.md, Copilot instructions)
.specify/templates/
docs/security/ evidence stubs
Proposed Solution
Would you be interested in an optional secure-development / secure-architecture governance preset (or similar catalog item) for Spec Kit?
I do not mean "make all of this mandatory in core for every project." Based on your current direction around presets/catalogs, this seems more like an optional preset/extension candidate than a default core behavior.
The idea would be to provide an opt-in package that can add:
- constitution sections for secure development and secure architecture
- compact agent-operational guidance so agents consistently apply the same governance
- additional templates for security evidence and review artifacts
- starter docs under
docs/security/
The governance areas I found useful are roughly:
- Secure code generation
- Secure software architecture
- Standards/applicability matrix
- Secure SDLC / verification standards
- Supply-chain transparency and build integrity
- Threat modeling and attack-pattern coverage
- Zero Trust applicability and security program maturity
Concretely, my current implementation includes:
- constitution sections in
constitution.md (chapters XII-XVIII in the current structure)
- matching agent-guidance blocks in all agent files
- templates such as:
- threat model
- ADR/security ADR
- arc42 security section
- security checklist
- dependency audit
- ASVS verification
- supply-chain evidence
- Zero Trust applicability
- SAMM assessment
- project evidence stubs in
docs/security/
If helpful, I can extract and propose a smaller, cleaner subset that is easier to evaluate for Spec Kit.
Alternatives Considered
- Keep this entirely as a private organizational fork/preset outside Spec Kit
- Publish it only as an external preset/catalog item without any upstream discussion
- Limit the idea to a single extra template, such as threat modeling only
I am opening this issue because I am not sure whether you would consider this direction useful for Spec Kit users more broadly, especially for teams that want stronger security and architecture guardrails in agent-driven workflows.
Also, issue #1708 (pluggable presets/template catalog) seems relevant here; this proposal may fit better there than as a direct core change.
Component
Spec templates (BDD, Testing Strategy, etc.)
AI Agent (if applicable)
All agents
Use Cases
- Teams want security and architecture governance to show up directly in the same workflow as spec/plan/tasks, instead of being tracked in parallel documents outside Spec Kit.
- Agents should apply the same secure-development expectations consistently across
AGENTS.md, agent-specific files, and generated planning artifacts.
- Projects with compliance or audit pressure need repeatable evidence locations and starter artifacts instead of ad hoc document structures.
- Organizations want an opt-in preset for stricter engineering governance without forcing every Spec Kit user into a heavier default workflow.
Acceptance Criteria
Additional Context
Reference implementation in my home-baseline repo:
- Constitution:
- Agent guidance:
- Templates:
- Security docs/evidence stubs:
If you want, I can also provide a reduced proposal limited to:
- one constitution addition
- one agent-guidance addition
- one or two templates
rather than the broader bundle above.
Problem Statement
Spec Kit already gives teams a strong spec/plan/tasks/constitution workflow, but teams with stronger secure-development and software-architecture governance needs still have to fork and maintain a fairly large set of custom constitution sections, agent guidance, templates, and evidence documents.
In practice, that means requirements such as secure coding, secure architecture, threat modeling, supply-chain transparency, and architecture/security evidence often live outside the standard Spec Kit flow, even though they affect specs, plans, tasks, and agent behavior.
I have been experimenting with this in my own
home-baselineproject and found that the missing piece is not just a single template, but a small, opinionated governance bundle that can flow through:constitution.mdAGENTS.md,CLAUDE.md,GEMINI.md, Copilot instructions).specify/templates/docs/security/evidence stubsProposed Solution
Would you be interested in an optional secure-development / secure-architecture governance preset (or similar catalog item) for Spec Kit?
I do not mean "make all of this mandatory in core for every project." Based on your current direction around presets/catalogs, this seems more like an optional preset/extension candidate than a default core behavior.
The idea would be to provide an opt-in package that can add:
docs/security/The governance areas I found useful are roughly:
Concretely, my current implementation includes:
constitution.md(chapters XII-XVIII in the current structure)docs/security/If helpful, I can extract and propose a smaller, cleaner subset that is easier to evaluate for Spec Kit.
Alternatives Considered
I am opening this issue because I am not sure whether you would consider this direction useful for Spec Kit users more broadly, especially for teams that want stronger security and architecture guardrails in agent-driven workflows.
Also, issue #1708 (pluggable presets/template catalog) seems relevant here; this proposal may fit better there than as a direct core change.
Component
Spec templates (BDD, Testing Strategy, etc.)
AI Agent (if applicable)
All agents
Use Cases
AGENTS.md, agent-specific files, and generated planning artifacts.Acceptance Criteria
Additional Context
Reference implementation in my
home-baselinerepo:If you want, I can also provide a reduced proposal limited to:
rather than the broader bundle above.