speckit.constitution

speckit.constitution is a command for Claude Code from loulanyue/spec-kit-zh. It costs 25 tokens per session (748 once invoked), scanned A, a copy of speckit.constitution, MIT.

A project-governance command that creates or updates a constitution: a set of rules for how a project should be built. It also updates related planning templates and installed command files when template synchronization is enabled.

In plain words
What is it for?
Use it to establish or revise development principles and propagate those changes through the project's specification and planning scaffolding.
Why use it?
It keeps project guidance and the templates that depend on it consistent instead of leaving conflicting rules in different files.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Good fit Use it to establish or revise development principles and propagate those changes through the project's specification and planning scaffolding.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/loulanyue/spec-kit-zh/speckit.constitution
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.

Clone the repo
git clone --depth 1 https://github.com/loulanyue/spec-kit-zh

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for speckit.constitution

README.md
[![agentmods](https://agentmods.dev/badge/commands/loulanyue/spec-kit-zh/speckit.constitution/github.svg)](https://agentmods.dev/commands/loulanyue/spec-kit-zh/speckit.constitution)
Your own site
<a href="https://agentmods.dev/commands/loulanyue/spec-kit-zh/speckit.constitution"><img src="https://agentmods.dev/badge/commands/loulanyue/spec-kit-zh/speckit.constitution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for speckit.constitution

Your own site · 80×15
<a href="https://agentmods.dev/commands/loulanyue/spec-kit-zh/speckit.constitution"><img src="https://agentmods.dev/badge/commands/loulanyue/spec-kit-zh/speckit.constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00025 $0.00748
Opus 5.5 $0.00010 $0.00299
Sonnet 5.5 $0.00005 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 14d ago against content hash dba4007aa585, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d 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.

Origin

This is a copy

100% identical to speckit.constitution — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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. 14d 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 loulanyue/spec-kit-zh (337 stars, last pushed 13d ago), licensed MIT. It adds 25 tokens to every session and 748 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to speckit.constitution, differing in 0 lines, and is treated as a copy.

Related

Other commands, from other repositories

ijfw-status

Show IJFW state -- mode, routing, memory, recent activity, codebase index, settings. Use when you want the at-a-glance banner you'd otherwise get at session start.

FerroxLabs/ijfw · 41 tokens

team

Manage your project's agent team. Usage: /team [setup|list|add|remove|swap].

FerroxLabs/ijfw · 23 tokens

workflow

Start or resume the IJFW project workflow. Usage: /workflow [discover|plan|execute|verify|ship|status].

FerroxLabs/ijfw · 28 tokens

implementation-plan

Define an incremental plan for the active task as IMPLEMENTATIONPLAN.md plus a TASKSTATE.md update: smallest safe slices with scope, validation and exit criteria. No code is written. A --spec mode derives slices from a spec or PRD. A retrofit mode annotates in-progress plans so they can adopt implement-fleet. Do not…

Mozurok/fhorja.dev · 0 tokens

slice-closure

Decide whether the current slice is ready to close, separating slice completion from task completion, and record the result in slice notes and TASKSTATE.md. Use when a slice was implemented, validated or reviewed and may be ready to close. Do not use before slice implementation, during planning, or for overall task…

Mozurok/fhorja.dev · 84 tokens

task-close

Close a whole finished task: verify the spec done-conditions, set TASKSTATE.md to its final closed state, and move the folder from active/ to archive/. Use when all slices are closed, the work is merged or explicitly waived, and the task is ending. Do not use for one slice (use slice-closure), unfinished work…

Mozurok/fhorja.dev · 0 tokens