From omni
Creates or updates project constitution in .infra/memory/constitution.md by filling placeholders, versioning principles/governance, and syncing changes to design/tasks/spec templates. Invoke via /constitution for project setup.
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniThis skill uses the workspace's default tool permissions.
```text
Creates or updates project constitution template by filling placeholders from inputs or repo context, semantic versioning, and propagating changes to dependent artifacts.
Creates or updates .specify/memory/constitution.md by collecting governance principles, filling placeholders, semver versioning, and propagating changes to templates and agent configs. For initial governance setup, amendments, or syncing.
Authors enforceable project constitutions for greenfield projects with testable principles, enforcement mechanisms, rationale, and amendment processes.
Share bugs, ideas, or general feedback.
$ARGUMENTS
在继续之前, 你必须考虑用户的消息内容(如果不为空).
更新位于 .infra/memory/constitution.md 的项目章程。该文件为带方括号占位符的模板(如 [PROJECT_NAME]、[PRINCIPLE_1_NAME])。任务为:(a) 收集/推导具体值;(b) 精确填充模板;(c) 将修改传播到相关依赖项。
始终操作现有的 .infra/memory/constitution.md,不要创建新文件。
读取 .infra/memory/constitution.md:
[ALL_CAPS_IDENTIFIER] 占位符:输出 "章程已存在,跳过创建。" 并立即结束,不执行后续步骤。.infra/memory/constitution.md,识别所有 [ALL_CAPS_IDENTIFIER] 占位符。[PRINCIPLE_N_NAME] 与 [PRINCIPLE_N_DESCRIPTION] 章节。RATIFICATION_DATE 为原始采用日(未知则询问或标 TODO);LAST_AMENDED_DATE 若有修改则为今天,否则保留原值。CONSTITUTION_VERSION(语义化版本):
.infra/templates/design-template.md,确保「章程检查」与更新后原则一致。.infra/templates/tasks-template.md,确保任务分类反映原则(如可观测性、版本控制、测试纪律)。.infra/templates/spec-template.md,做范围/需求对齐;章程若增删强制部分或约束则同步更新。在更新后的章程文件顶部以 HTML 注释形式插入:
将完成的章程写回 .infra/memory/constitution.md(覆盖)。
向用户提供:
docs: amend constitution to vX.Y.Z (principle additions + governance update))。若关键信息缺失(如批准日期未知),在正文中插入 TODO(<FIELD_NAME>): explanation,并在同步影响报告的「延迟项」中列出。