Borrowing it
Nothing to install: this file belongs to studyzy/tapd-ai-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/studyzy/tapd-ai-cli/main/.codebuddy/commands/speckit.constitution.mdgit clone --depth 1 https://github.com/studyzy/tapd-ai-cliWrote 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.
[](https://agentmods.dev/commands/studyzy/tapd-ai-cli/speckit.constitution)<a href="https://agentmods.dev/commands/studyzy/tapd-ai-cli/speckit.constitution"><img src="https://agentmods.dev/badge/commands/studyzy/tapd-ai-cli/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.
<a href="https://agentmods.dev/commands/studyzy/tapd-ai-cli/speckit.constitution"><img src="https://agentmods.dev/badge/commands/studyzy/tapd-ai-cli/speckit.constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.01362 |
| Opus 5.5 | $0.00011 | $0.00545 |
| Sonnet 5.5 | $0.00005 | $0.00272 |
| Haiku 4.5 | $0.00003 | $0.00136 |
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 2mo 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.
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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
用户输入
$ARGUMENTS
在继续之前, 你必须考虑用户输入(如果不为空).
概述
你正在更新位于 .specify/memory/constitution.md 的项目章程. 该文件是一个包含方括号占位符标记的模板(例如 [PROJECT_NAME], [PRINCIPLE_1_NAME]). 你的工作是(a)收集/推导具体值, (b)精确填充模板, 以及(c)将任何修改传播到相关依赖项中.
遵循此执行流程:
-
加载位于
.specify/memory/constitution.md的现有章程模板.- 识别每个
[ALL_CAPS_IDENTIFIER]形式的占位符标记. 重要提示: 用户可能需要比模板中使用的原则更少或更多. 如果指定了数字, 请遵循该数字 - 遵循通用模板. 你将相应地更新文档.
- 识别每个
-
为占位符收集/推导值:
- 如果用户输入(对话)提供了值, 则使用它.
- 否则从现有仓库上下文推断(README, 文档, 先前的章程版本(如果嵌入)).
- 对于治理日期:
RATIFICATION_DATE是原始采用日期(如果未知, 请询问或标记 TODO),LAST_AMENDED_DATE是今天(如果进行了更改), 否则保留之前的日期. CONSTITUTION_VERSION必须根据语义版本控制规则递增:- MAJOR(主版本): 向后不兼容的治理/原则删除或重新定义.
- MINOR(次版本): 新原则/部分添加或实质性扩展指导.
- PATCH(补丁版本): 澄清, 措辞, 拼写错误修复, 非语义优化.
- 如果版本递增类型不明确, 请在最终确定之前提出理由.
-
起草更新后的章程内容:
- 用具体文本替换每个占位符(除了项目选择尚未定义的故意保留的模板槽位外, 不留下括号标记——明确说明任何保留的槽位).
- 保留标题层次结构, 一旦替换可以删除注释, 除非它们仍然提供澄清指导.
- 确保每个原则部分: 简洁的名称行, 捕获不可协商规则的段落(或项目符号列表), 如果不明显则提供明确的理由.
- 确保治理部分列出修改程序, 版本控制策略和合规审查期望.
-
一致性传播检查清单(将先前的检查清单转换为主动验证):
- 读取
.specify/templates/plan-template.md并确保任何"章程检查"或规则与更新的原则保持一致. - 读取
.specify/templates/spec-template.md进行范围/需求对齐——如果章程添加/删除强制部分或约束, 则更新. - 读取
.specify/templates/tasks-template.md并确保任务分类反映新的或删除的原则驱动的任务类型(例如, 可观测性, 版本控制, 测试纪律). - 读取
.specify/templates/commands/*.md中的每个命令文件(包括此文件)以验证在需要通用指导时没有过时的引用(如仅限 CLAUDE 的代理特定名称). - 读取任何运行时指导文档(例如
README.md,docs/quickstart.md或代理特定指导文件(如果存在)). 更新对已更改原则的引用.
- 读取
-
生成同步影响报告(在更新后作为 HTML 注释前置到章程文件顶部):
- 版本更改: 旧版本 → 新版本
- 修改的原则列表(如果重命名, 则为旧标题 → 新标题)
- 添加的部分
- 删除的部分
- 需要更新的模板(✅ 已更新 / ⚠ 待处理)及文件路径
- 如果有任何占位符故意延迟, 则提供后续 TODO.
-
最终输出前的验证:
- 没有剩余的未解释的括号标记.
- 版本行与报告匹配.
- 日期采用 ISO 格式 YYYY-MM-DD.
- 原则是声明性的, 可测试的, 并且没有模糊语言("should" → 在适当的地方用 MUST/SHOULD 理由替换).
-
将完成的章程写回
.specify/memory/constitution.md(覆盖). -
向用户输出最终摘要, 包括:
- 新版本和递增理由.
- 任何标记为手动后续处理的文件.
- 建议的提交消息(例如
docs: amend constitution to vX.Y.Z (principle additions + governance update)).
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.
- 2mo ago First seen · 82 lines · 27 tokens per session scan A 45620ce5a443
speckit.constitution is a command published in the GitHub repository studyzy/tapd-ai-cli (61 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,362 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.
speckit.constitution compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| speckit.constitutionstudyzy/tapd-ai-cli | Command | 61 | 3mo ago | Apache-2.0 | A | 27 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |