SpecForge — Spec Kit constitution generator
SpecForge builds the constitution for GitHub Spec Kit: the governance file at .specify/memory/constitution.md that every Spec Kit command — /speckit.specify, /speckit.plan, /speckit.tasks, /speckit.implement — loads as context.
This page is an interactive app and needs JavaScript. Everything runs in your browser: nothing is uploaded, no account is required, and it works offline once loaded. Below is what the app contains.
A catalog of 35 verifiable principles
Each principle carries an RFC 2119 normative level (MUST, SHOULD, MAY), a statement a reviewer can check against a pull request, and a rationale naming the underlying constraint. You pick, edit, reorder and export them.
Code quality
- Simplicity before abstraction
MUST - Explicit module boundaries
MUST - Names reveal intent
SHOULD - Technical debt recorded, not tolerated
MUST
Testing
- Tests before implementation
MUST - Real tests, real data
MUST - Critical paths fully covered
MUST - Deterministic test suite
MUST
Architecture & simplicity
- Start monolithic
SHOULD - Dependencies justified
MUST - Reversibility of decisions
MUST - State is expensive, compute is cheap
SHOULD
UX & design system
- The design system is the single source of truth
MUST - Complete states on every surface
MUST - Accessibility is not optional
MUST - Mobile-first verified, not assumed
MUST - Behavioral consistency
MUST
Performance
- Declared performance budget
MUST - Measure before optimizing
MUST - Graceful degradation under load
SHOULD
Security & privacy
- Secrets out of the code
MUST - Least privilege by default
MUST - Input untrusted until proven otherwise
MUST - Personal data minimization
MUST
Data & observability
- Provenance is non-negotiable
MUST - Versioned data contracts
MUST - Fail loudly, never silently
MUST - High cardinality preserved
SHOULD
Delivery & versioning
- Semantic versioning
MUST - Reversible change or behind a flag
SHOULD - Software has no value until users touch it
MUST
AI agent collaboration
- Constitution precedes spec
MUST - The agent does not decide scope
MUST - Agent output passes the same gate
MUST - Explicit context, not implicit
SHOULD
A design system inside the constitution
Colors, type scale, spacing, border radius, component patterns and accessibility requirements become normative rules in the same file. WCAG 2.2 contrast ratios are computed live from your color tokens and recorded in the constitution as a ratification record.
Governance and semantic versioning
The constitution carries a MAJOR.MINOR.PATCH version, a ratification date and a last-amended date, plus the amendment process, compliance review and review cadence. Every export includes a Sync Impact Report listing the dependent Spec Kit templates to propagate the change to.
Five exports
- constitution.md — the governance file itself, for
.specify/memory/constitution.md - design-tokens.json — machine-readable design tokens
- tokens.css — the same tokens as CSS custom properties, with dark-theme and reduced-motion blocks
- agent prompt — a ready-to-paste instruction for Claude Code, GitHub Copilot, Cursor or Gemini CLI
- project.json — the full editor state, so the constitution is reproducible
Guide
The app includes a written guide covering:
- What a constitution is
- Where the file goes
- Writing a principle that steers
- Why the design system is in here
- Versioning and amendments
- The five exports
- The full workflow
- When it does not work
Languages
SpecForge is available in English, Español, Français and Português, and the generated constitution can be produced in any of them independently of the interface language.
Links