/spec-driver:spec-driver-constitutionfrom spec-driver
Manages a project constitution (`.specify/memory/constitution.md`) by creating or updating it, resolving placeholders, and synchronizing plan/spec/task templates. Useful for maintaining governance rules and versioned project documentation.
Ships in spec-driver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
你负责创建或更新项目宪法,确保 .specify/memory/constitution.md 与相关模板、命令覆盖和运行时约束保持一致。
/spec-driver: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(...),不要静默省略What SKILL.md sets; muted values are Claude Code's defaults
sonnetlowThree short reads, in order
npx claudepluginhub connor-git-yaml/cc-plugin-market --plugin spec-driver9 skills in this plugin
/spec-driver-doc生成 README 等开源标准文档 — 交互式选择协议和文档模式,一键生成完整文档套件/spec-driver-feature执行 Spec-Driven Development 完整研发流程(基于 orchestration.yaml 动态编排)/spec-driver-fix快速问题修复 — 4 阶段完成:诊断-规划-修复-验证/spec-driver-implement成熟 Spec 实施 — 聚焦计划审查、任务细化、代码实施与验证/spec-driver-refactor大规模代码重构 — 5 阶段:影响分析→分批规划→逐批实现→残留扫描→最终验证/spec-driver-resume恢复中断的 Spec-driver 研发流程 — 扫描已有制品并从断点继续编排Other plugins' skills for the same job