speckit.constitution

A command that creates or updates a project's constitution, meaning its written development principles and rules, and can propagate those changes into related templates and installed commands.

In plain words
What is it for?
Use it to maintain the constitution and synchronize relevant plan and specification templates or command files. It is limited to this guidance workflow, not application-code implementation.
Why use it?
It keeps project guidance and its dependent scaffolding consistent after the principles change.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/github/spec-kit/speckit.constitution
Clone the repo
git clone --depth 1 https://github.com/github/spec-kit
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.00748
Opus 5 $0.00013 $0.00374
Sonnet 5 $0.00005 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 2d ago against content hash dba4007aa585, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

speckit.constitution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

presets/constitution-sync/commands/speckit.constitution.md · 55 lines

What it actually says

{CORE_TEMPLATE}

Constitution Template Sync

This section supersedes the "Scope Guard" above for template and command propagation. The core Scope Guard states that dependent templates and commands "are not modified here" — that restriction is intentionally lifted by this preset. Propagating amended guidance into the project's own dependent scaffolds and installed command files (as described below) is in scope whenever this preset is installed. The Scope Guard's other constraints still apply: do not implement features, generate application code, or touch artifacts unrelated to the constitution/template workflow.

After you have written the updated constitution above, perform a consistency propagation pass so the dependent artifacts reflect the amended principles:

  1. Read .specify/templates/plan-template.md and ensure any "Constitution Check" or rules align with the updated principles. Only materialize concrete gate text here if your team intends to review it as committed content; otherwise leave the runtime pointer [Gates determined based on constitution file] in place so /plan fills it from the live constitution.
  2. Read .specify/templates/spec-template.md for scope/requirements alignment — update if the constitution adds/removes mandatory sections or constraints.
  3. Read .specify/templates/tasks-template.md and ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline).
  4. Read each installed Spec Kit command file for your agent (including this one) — named speckit.* or speckit-* (dot or hyphen depending on the agent), or laid out as speckit-<name>/SKILL.md for skills-based integrations, e.g. in .github/agents/, .github/skills/, .claude/skills/, or your agent's equivalent commands directory — to verify no outdated references (CLAUDE-only or other agent-specific names) remain when generic guidance is required. Only hand-edit a command file if it is a project-local file not managed by a preset or extension. Command files that are composed from the resolution stack (anything provided or wrapped by a preset/extension) must be regenerated through the stack — do not edit them in place, because reconciliation (specify integration use, specify integration upgrade, or any preset/extension install/remove) will clobber the edits.
  5. Read any runtime guidance docs (e.g., README.md, docs/quickstart.md, or agent-specific guidance files if present) and update references to principles that changed.

Then extend the Sync Impact Report at the top of .specify/memory/constitution.md with:

  • Templates requiring updates (✅ updated / ⚠ pending) with file paths.

Do not edit versioned preset- or extension-provided template or command files directly. Those artifacts are owned by their packages and are recomposed on the package's next update or on stack reconciliation — hand edits are clobbered. Limit propagation to the project's own .specify/templates/ scaffolds and to command files that are not managed by a preset or extension.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 55 lines · 25 tokens per session scan A dba4007aa585

Subscribe to this mod's changes

speckit.constitution is a command published in the GitHub repository github/spec-kit (132,298 stars, last pushed 4d ago), licensed MIT. It adds 25 tokens to every session and 748 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories