speckit.constitution — Claude Code command: what it does
The speckit.constitution command edits a project’s constitution and checks related templates and guidance for alignment. Use it when development principles or governance rules change.
no license ★ 117 updated 2026-10-29
.claude/commands/speckit.constitution.mdWhat speckit.constitution does
The command updates .specify/memory/constitution.md using the request and repository context. It then checks plan, specification, and task templates, command files, and project guides against the revised principles. The run ends by saving the constitution and reporting the version change and files that may need follow-up.
Version bumps follow semantic versioning: removing or redefining principles calls for MAJOR, adding a principle or section calls for MINOR, and wording changes fit PATCH. For an unknown ratification date, the command can ask for the date or leave a TODO; when edits are made, it uses the current date for the last-amended field. Repository context matters here: dates and version details may need to come from the user or existing project files.
What it helps with
- revise the project’s governing principles
- align planning templates with updated rules
- find stale references in commands and project guides
- record the version change and affected files
Example prompts for the agent
- Update the project constitution with these principles: keep code style consistent and require tests for new features.
- Review
.specify/memory/constitution.mdand bring the project templates into line with it. - Change the project governance rules and report which templates need edits.
How to install speckit.constitution
Manually: put the files in place
.claude/commands/speckit.constitution.mdCall it with /speckit.constitution. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/speckit.constitution.mdCall it with /prompts:speckit.constitution. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/speckit.constitution.prompt.mdManually: put the files in place
.gemini/commands/speckit.constitution.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about speckit.constitution
How do I install speckit.constitution in Claude Code?
Place the command file at .claude/commands/speckit.constitution.md, then run /speckit.constitution in Claude Code.
What does speckit.constitution do?
It edits .specify/memory/constitution.md and checks related templates, command files, and project guidance. It also reports the version update and synchronization status.
How does the command decide which version number to bump?
Removing or redefining principles calls for a MAJOR bump; adding a principle or section calls for MINOR. Clarifications and copy edits fit PATCH.