From omni
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/omni:constitution [原则描述或修订说明][原则描述或修订说明]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
```text
$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,并在同步影响报告的「延迟项」中列出。
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniCreates or updates a project constitution from interactive or provided principle inputs, ensuring dependent templates stay in sync.
Authors enforceable project constitutions for greenfield projects with testable principles, enforcement mechanisms, rationale, and amendment processes.
Creates, updates, or validates .constitution.md file for Spec Kit workflow, defining project mission, principles, constraints, quality standards, and checking codebase alignment.