Skip to main content
command CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/speckit.constitution.md
Open on GitHub

What 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.md and 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.md

Call it with /speckit.constitution. For all projects use ~/.claude/commands/

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.

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set9

speckit.taskstoissues speckit.taskstoissues converts a list of tasks into dependency-ordered GitHub issues using design artifacts and project context. Works only with GitHub repositories. CX Codex +1 ★ 117repo stars speckit.plan speckit.plan executes implementation planning workflow to produce architectural artifacts and API contracts. CX Codex +1 ★ 117repo stars speckit.tasks speckit.tasks builds a tasks.md file for a feature from plan.md and spec.md, splitting work into phases by user story priority. CX Codex +1 ★ 117repo stars speckit.analyze speckit.analyze inspects spec.md, plan.md, and tasks.md for conflicts, gaps, and constitution violations before code generation. Runs in read-only mode. CX Codex +1 ★ 117repo stars speckit.implement The speckit.implement command works through the tasks in tasks.md using the project plan and related documents. Use it to carry out an implementation plan in a defined order. CX Codex +1 ★ 117repo stars speckit.clarify speckit.clarify — a command that scans a feature spec for underspecified areas and asks up to 5 targeted questions to fill gaps before planning begins. CX Codex +1 ★ 117repo stars speckit.specify speckit.specify builds or updates a feature specification straight from a natural language prompt. Handy for structuring requirements and acceptance criteria before writing code. CX Codex +1 ★ 117repo stars speckit.checklist speckit.checklist builds a checklist for reviewing feature requirements, including unclear statements and missing scenarios. Use it before implementing a feature or reviewing its spec. CX Codex +1 ★ 117repo stars

Project sponsors

Companies that keep this analytics open