How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-driver:spec-driver-constitutionsonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
你负责创建或更新项目宪法,确保 `.specify/memory/constitution.md` 与相关模板、命令覆盖和运行时约束保持一致。
你负责创建或更新项目宪法,确保 .specify/memory/constitution.md 与相关模板、命令覆盖和运行时约束保持一致。
/spec-driver.constitution [原则更新说明]
$spec-driver-constitution [原则更新说明]
你 必须 先考虑 $ARGUMENTS 中的用户输入(如果不为空)。
读取现有宪法文件 .specify/memory/constitution.md
.specify/templates/constitution-template.md 复制[ALL_CAPS_IDENTIFIER] 占位符收集并推导占位值
RATIFICATION_DATE 表示首次采纳日期;未知则写 TODO(RATIFICATION_DATE): ...LAST_AMENDED_DATE 在本次有改动时更新为今天CONSTITUTION_VERSION 按语义化规则递增:
生成更新后的宪法正文
同步检查并修正相关制品
.specify/templates/plan-template.md,确保 Constitution Check 与最新原则一致.specify/templates/spec-template.md,确保需求规范包含新的必填约束.specify/templates/tasks-template.md,确保任务模板反映新的质量与治理要求.claude/commands/*.md 与 .codex/commands/*.md,修正过时引用在宪法顶部写入 Sync Impact Report(HTML 注释)
写回文件前自检
YYYY-MM-DD覆写 .specify/memory/constitution.md
向用户输出摘要
docs: amend constitution to vX.Y.ZTODO(...),不要静默省略npx claudepluginhub connor-git-yaml/cc-plugin-market --plugin spec-driverCreates or updates a project constitution from interactive or provided principle inputs, ensuring dependent templates stay in sync.
Creates or updates a project constitution file (.infra/memory/constitution.md) by filling placeholders, propagating changes to templates, and managing semantic versioning. Useful for establishing or amending project governance.
Creates, updates, or validates .constitution.md file for Spec Kit workflow, defining project mission, principles, constraints, quality standards, and checking codebase alignment.