create-control-manifest
它能做什么
这个技能把架构决策转化为程序员使用的简单规则表。适合需要快速、清晰编码规则的开发者。
适用场景
- ✓当架构决策已被接受,程序员需要一份快速规则表的时候。
- ✓当某项架构决策发生变化,规则表需要更新的时候。
- ✓当你想要一份关于该做什么、绝不能做什么的速查表的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/create-control-manifest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我们已接受的架构决策整理成程序员可以遵循的规则表。”
每周 5 个新技能,1 分钟读完。
工作原理
它会加载已接受的决策记录、项目的技术偏好以及引擎参考文档。然后它会在你批准后,按架构层次分组,写出一份扁平的必做和禁做规则列表。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys review_mode,review_gate,automation
Resolved above — use as-is; --review overrides review_mode for this run. No
block → defaults in .claude/docs/config-resolution.md.
Ask with the question tool. Without one, list the options numbered and end your turn to wait. A skipped or dismissed question is not an answer: ask again in plain text.
Create Control Manifest
The control manifest is a flat rules sheet for programmers: what to do and what never to do, by architectural layer, taken from the Accepted ADRs, the project's technical preferences and the engine reference docs. The ADRs say why; the manifest says what.
Writes: docs/architecture/control-manifest.md, after the user's yes.
When: after /architecture-review passes and the ADRs are Accepted. Run it
again whenever an ADR is accepted or revised.
Asks follow .claude/docs/automation-modes.md (collaborative always asks, guided
asks on major choices, autonomous logs and goes on; automation_always_ask
categories always ask).
Phase 1: Load the inputs
ADRs
bash .claude/scripts/adr-status.sh reads every docs/architecture/adr-*.md in one
pass: the counts first (adrs, then accepted, proposed, deprecated,
superseded, unfilled, other, no_status), then one row per ADR with its
status and layer. Establish the denominator first: decide from the counts, before
reading any ADR:
| Counts | Meaning | Action |
|---|---|---|
adrs 0 |
No ADRs. | "No ADRs found — run /architecture-decision before building a control manifest." Stop. |
accepted ≥ 1 |
Normal. | The Accepted rows are the set A. Name every other ADR, with its status, in the Phase 4 preview: the user approves a manifest knowing what it leaves out. |
accepted 0, some with a status |
No Accepted ADRs. | "[N] ADRs found, none Accepted. A manifest built from Proposed ADRs would encode decisions that may still change." Ask whether to go on with the Proposed ones or stop. Never write an empty manifest silently. |
every ADR no_status |
Malformed ADRs, not an empty Accepted set. | "[N] ADRs found, none has a ## Status section, so acceptance cannot be told. Run /architecture-decision retrofit [file] on each." Stop. Never treat them as Accepted. |
Each stop above ends with Verdict: BLOCKED — [the reason]. Note the number and
title of every ADR a rule comes from.
Project config
naming.*andperformance.*fromproject.yaml; for any key absent or empty,.claude/docs/technical-preferences.md.- Approved libraries and forbidden patterns from
.claude/docs/technical-preferences.md(not migrated toproject.yaml).
Engine reference
docs/engine-reference/[engine]/VERSION.mdfor the engine and version.docs/engine-reference/[engine]/deprecated-apis.md: these become forbidden APIs.docs/engine-reference/[engine]/current-best-practices.md, when it exists.
What exists already
docs/architecture/control-manifest.md present: this run regenerates it; read it
before the Phase 5 write, which replaces it. production/epics/*/EPIC.md present:
epics exist. Phase 6 picks its next step from both.
Report: "Loaded [A] Accepted ADRs of [N], engine: [name + version]."
Phase 2: Extract the rules from each ADR
For each ADR in A, read only four sections, never the whole file:
bash .claude/scripts/md-section.sh extract docs/architecture/[adr-file].md "Decision"
and the same for Alternatives Considered, Performance Implications and Engine Compatibility. Context, Consequences, Migration Plan and Validation Criteria say why
a decision was made; the manifest records what to do. A section an ADR lacks: note
it for that ADR and go on. A section missing from every ADR in A: report "No
Accepted ADR has a [section] section — the manifest's [category] rules will be
empty. Verify this is intended." Read beyond the four only when a section points
outside itself ("subject to the constraints in Context"), and then that one section.
From each ADR:
- Required patterns (Decision): every "must", "should", "required to",
"always", and every pattern or approach it mandates, including any
### Implementation Guidelinesinside it. Never look for that sub-heading alone: many ADRs state their mandates directly under Decision, and a scan for the sub-heading alone yields an empty section. - Forbidden approaches (Alternativ
常见问题
决策记录和这份清单有什么区别?
决策记录解释原因,而清单说明应该怎么做。
什么时候应该重新生成它?
每当有决策被接受或修订时,就应该重新运行。
它会不经询问就写入文件吗?
不会。你同意后才会写入文件,不过自动化设置可能会改变询问的频率。
详情
作者的原始描述
Builds a short list of must-do and never-do coding rules per system from accepted ADRs. Use when the user wants programmer rules or a cheat sheet from the ADRs, or needs it regenerated after ADR changes.
热度
- GitHub 星标
- 33k
- 排名
- #8449
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …