一键导入
constitution
用户触发 /ezfl:constitution 或 /openspec:constitution,或要求创建 / 修正 / 查看项目宪法时必须使用本 skill。管理 openspec/memory/constitution.md 的 CREATE / AMEND / SHOW 三种模式。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
用户触发 /ezfl:constitution 或 /openspec:constitution,或要求创建 / 修正 / 查看项目宪法时必须使用本 skill。管理 openspec/memory/constitution.md 的 CREATE / AMEND / SHOW 三种模式。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | constitution |
| description | 用户触发 /ezfl:constitution 或 /openspec:constitution,或要求创建 / 修正 / 查看项目宪法时必须使用本 skill。管理 openspec/memory/constitution.md 的 CREATE / AMEND / SHOW 三种模式。 |
启动时必须先输出:[easy-flow] 进入阶段: constitution — 使用 easy-flow:constitution skill。
宪法管理 skill。三模式:CREATE / AMEND / SHOW。与 openspec-integrated-superpowers 的宪法体系完整对齐(一字不改),仅做路径迁移与 Law #4 hook 升级。
| 检测条件 | 模式 |
|---|---|
| constitution.md 不存在 | CREATE |
存在但含 [ALL_CAPS_PLACEHOLDER] | CREATE |
| 存在且无占位符 | AMEND |
用户传入 show | SHOW |
| Policy | 文件 | 作用 |
|---|---|---|
| CREATE | ./policies/constitution-create.md | 引导用户填写模板 |
| AMEND | ./policies/constitution-amend.md | 修正流程 + 版本号 + Sync Impact Report |
| Injection | ./policies/constitution-injection.md | 四注入点(A/B/C/D)的具体逻辑 |
脚本驻留 plugin 内部,由 .harness/.cache/.plugin_root(SessionStart 写入)定位;缺失则按"不存在"处理并提示重启会话。
PLUGIN_ROOT="$(cat .harness/.cache/.plugin_root)"
bash "$PLUGIN_ROOT/hooks/constitution-validity.sh"
# 退出码:0=有效 / 1=无效(含未替换占位符)/ 2=不存在
[constitution]
required = false # true 时未生成有效宪法的项目阻断 propose/apply
path = "openspec/memory/constitution.md"
Scans project-level agent directories before subagent dispatch, recommends based on phase keywords, lets user choose, and persists results to disk for anti-corruption
Must use this skill when user triggers /ezfl:audit or requests auditing of implementation outputs. Executes Constitution compliance check (injection point D) + 5 scorer scripts, results written to .harness/metrics/<timestamp>-metrics.json.
Must use this skill when user triggers /ezfl:build or requests implementation / execution of tasks.md. Selects implementer subagent, which executes /opsx:apply in its own session — main agent is forbidden from directly writing implementation code.
Must use this skill when user triggers /ezfl:constitution or /openspec:constitution, or requests creation / amendment / viewing of the project constitution. Manages CREATE / AMEND / SHOW modes for openspec/memory/constitution.md.
Must use this skill when user triggers /ezfl:design or requests entering the design phase. Only responsible for design discussion, Reframe, Premise Challenge, and producing pre_design.md.
Must use this skill when user triggers /ezfl:lock, or requests engineering review / locking plan / review architecture / tech review, or describes a non-trivial change (>3 files, new components, cross-module changes) and is clearly in the pre-coding phase. Reviews plans/proposals from an engineering-manager perspective with adversarial rigor (architecture, data flow, edge cases, test coverage, performance), aiming to find holes rather than go through the motions. **Do NOT** use for: simple bug fixes / single-file changes / pure documentation or configuration changes / requesting 'review of already written code' (that's code review, not plan review).