tapd-ai-cli: Command for Claude Code

.codebuddy/commands/speckit.constitution.md

speckit.constitution is a command for Claude Code from studyzy/tapd-ai-cli. It costs 27 tokens per session (1,362 once invoked), scanned A, a copy of speckit.constitution, Apache-2.0.

A command for updating a project constitution, which is a document containing the project's rules and principles. It fills template placeholders and propagates relevant changes to planning templates.

In plain words
What is it for?
Use it to create or revise `.specify/memory/constitution.md`, infer missing values from the repository, and check related plan, specification, and task templates.
Why use it?
It helps prevent unfinished placeholders and mismatched project documents. It also provides rules for recording amendment dates and version changes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is studyzy/tapd-ai-cli's own configuration. It tells Claude Code how to work on tapd-ai-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tapd-ai-cli configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/studyzy/tapd-ai-cli/main/.codebuddy/commands/speckit.constitution.md
Clone the repo
git clone --depth 1 https://github.com/studyzy/tapd-ai-cli

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/studyzy/tapd-ai-cli/speckit.constitution/github.svg)](https://agentmods.dev/commands/studyzy/tapd-ai-cli/speckit.constitution)
Your own site
<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.

agentmods 80×15 button for speckit.constitution

Your own site · 80×15
<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>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,362 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.00027 $0.01362
Opus 5.5 $0.00011 $0.00545
Sonnet 5.5 $0.00005 $0.00272
Haiku 4.5 $0.00003 $0.00136

Measured 2mo ago against content hash 45620ce5a443, 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 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.

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.

.codebuddy/commands/speckit.constitution.md · 82 lines

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)将任何修改传播到相关依赖项中.

遵循此执行流程:

  1. 加载位于 .specify/memory/constitution.md 的现有章程模板.

    • 识别每个 [ALL_CAPS_IDENTIFIER] 形式的占位符标记. 重要提示: 用户可能需要比模板中使用的原则更少或更多. 如果指定了数字, 请遵循该数字 - 遵循通用模板. 你将相应地更新文档.
  2. 为占位符收集/推导值:

    • 如果用户输入(对话)提供了值, 则使用它.
    • 否则从现有仓库上下文推断(README, 文档, 先前的章程版本(如果嵌入)).
    • 对于治理日期: RATIFICATION_DATE 是原始采用日期(如果未知, 请询问或标记 TODO), LAST_AMENDED_DATE 是今天(如果进行了更改), 否则保留之前的日期.
    • CONSTITUTION_VERSION 必须根据语义版本控制规则递增:
      • MAJOR(主版本): 向后不兼容的治理/原则删除或重新定义.
      • MINOR(次版本): 新原则/部分添加或实质性扩展指导.
      • PATCH(补丁版本): 澄清, 措辞, 拼写错误修复, 非语义优化.
    • 如果版本递增类型不明确, 请在最终确定之前提出理由.
  3. 起草更新后的章程内容:

    • 用具体文本替换每个占位符(除了项目选择尚未定义的故意保留的模板槽位外, 不留下括号标记——明确说明任何保留的槽位).
    • 保留标题层次结构, 一旦替换可以删除注释, 除非它们仍然提供澄清指导.
    • 确保每个原则部分: 简洁的名称行, 捕获不可协商规则的段落(或项目符号列表), 如果不明显则提供明确的理由.
    • 确保治理部分列出修改程序, 版本控制策略和合规审查期望.
  4. 一致性传播检查清单(将先前的检查清单转换为主动验证):

    • 读取 .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 或代理特定指导文件(如果存在)). 更新对已更改原则的引用.
  5. 生成同步影响报告(在更新后作为 HTML 注释前置到章程文件顶部):

    • 版本更改: 旧版本 → 新版本
    • 修改的原则列表(如果重命名, 则为旧标题 → 新标题)
    • 添加的部分
    • 删除的部分
    • 需要更新的模板(✅ 已更新 / ⚠ 待处理)及文件路径
    • 如果有任何占位符故意延迟, 则提供后续 TODO.
  6. 最终输出前的验证:

    • 没有剩余的未解释的括号标记.
    • 版本行与报告匹配.
    • 日期采用 ISO 格式 YYYY-MM-DD.
    • 原则是声明性的, 可测试的, 并且没有模糊语言("should" → 在适当的地方用 MUST/SHOULD 理由替换).
  7. 将完成的章程写回 .specify/memory/constitution.md(覆盖).

  8. 向用户输出最终摘要, 包括:

    • 新版本和递增理由.
    • 任何标记为手动后续处理的文件.
    • 建议的提交消息(例如 docs: amend constitution to vX.Y.Z (principle additions + governance update)).

Read the full file on GitHub · 82 lines

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. 2mo ago First seen · 82 lines · 27 tokens per session scan A 45620ce5a443

Subscribe to this mod's changes

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.

Related

speckit.constitution compared with commands from other repositories

speckit.constitution next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
speckit.constitutionstudyzy/tapd-ai-cliCommand613mo agoApache-2.0A27Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand148kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand148kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand148kyesterdayMITA35Claude Code
implementgithub/spec-kitCommand148kyesterdayMITA14Claude Code