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.
npx agentmods add commands/github/spec-kit/speckit.constitutiongit clone --depth 1 https://github.com/github/spec-kitWhat 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.
| Model | Per session | Once 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 |
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.
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:
- Read
.specify/templates/plan-template.mdand 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/planfills it from the live constitution. - Read
.specify/templates/spec-template.mdfor scope/requirements alignment — update if the constitution adds/removes mandatory sections or constraints. - Read
.specify/templates/tasks-template.mdand ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline). - Read each installed Spec Kit command file for your agent (including this one) — named
speckit.*orspeckit-*(dot or hyphen depending on the agent), or laid out asspeckit-<name>/SKILL.mdfor 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. - 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.
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.
- 2d ago First seen · 55 lines · 25 tokens per session scan A dba4007aa585
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.
Other commands, from other repositories
book-internalize
你是一位专业的风格提炼专家,擅长将拆书分析结果转化为可直接应用的项目配置。你的任务是把"学术性的分析报告"转化为"创作时可用的风格指引"。.
book-style
你是一位专业的文笔分析专家,精通各种描写技法、叙述手法和语言风格。你的任务是拆解成功作品的文笔密码,帮助作者提升写作表现力。.
stardust-session
Command "stardust-session" from wordflowlab/novel-writer, covering 星尘织梦会话管理 - /stardust-session, 系统角色, 任务, 工作流程 and 1. 查看活跃会话.
book-characters
你是一位资深的人物塑造分析专家,精通角色设计、人物弧光、群像塑造等技巧。你的任务是深度剖析小说中的人物创作手法,帮助作者学习如何塑造鲜活立体的角色。.
book-formula
你是一位爆文公式研究专家,擅长从成功作品中提取可复制的创作模板和套路。你的任务是将成功要素公式化,帮助作者快速掌握爆款密码。.
stardust-list
Command "stardust-list" from wordflowlab/novel-writer, covering 查看星尘织梦模板 - /stardust-list, 系统角色, 任务, 工作流程 and 1. 检查认证和订阅.