create-control-manifest
Skill5 starsChanged 4 months agoMITView on GitHub
Generate the programmer control manifest from accepted ADRs, technical preferences, and engine rules.
We split this skill into the rules it gives an agent
20 rules. 10 are common, 2 are distinctive, and 8 are very specific to this project.
10
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Before default delegation, run python3 ../../../tools/codex_studio/agent_delegation.py resolve --project-root <project-root> --role <role> …
- Very specific: line 25
When to run: After $architecture-review passes and ADRs are in Accepted status.
- Very specific: line 33
Search for files matching docs/architecture/adr-*.md and read every file
- Very specific: line 44
Read ../../../docs/engine-reference/[engine]/VERSION.md for engine + version
- Very specific: line 45
Read ../../../docs/engine-reference/[engine]/deprecated-apis.md — these become forbidden API entries
- Very specific: line 47
Read ../../../docs/engine-reference/[engine]/current-best-practices.md if it exists
- Common: line 58
Every "must", "should", "required to", "always" statement
- Common: line 59
Every specific pattern or approach mandated
- Common: line 62
Every alternative that was explicitly rejected — *why* it was rejected becomes the rule ("never use X because Y")
- Common: line 82
If an ADR spans multiple layers, duplicate the rule into each relevant layer.
- Common: line 95
All deprecated APIs → Forbidden API entries
- Common: line 107
Before writing the manifest, present a summary to the user:
- Distinctive: line 121
Ask one concise question and wait for the answer:
- Very specific: line 133
Read and resolve review_mode from .codex/studio.toml before applying this mode check.
- Distinctive: line 135
If the canonical setting is missing or unreadable, stop and surface the blocker instead of guessing a mode.
- Common: line 148
All mandatory ADR patterns are captured and accurately stated
- Common: line 150
No rules were added that lack a source ADR or preference document
- Common: line 281
After writing the manifest:
- Very specific: line 283
If epics/stories don't exist yet: "Run $create-epics layer: foundation then $create-stories [epic-slug] — programmers can now use this …
- Common: line 285
If this is a regeneration (manifest already existed): "Updated.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- codex-studio-delegation: governed -->Resolve every role through ../../../.codex/docs/plugin-agent-delegation.md;
do not require a repository-local .codex/agents/ or .codex/agent-packs/ tree.
Before default delegation, run python3 ../../../tools/codex_studio/agent_delegation.py resolve --project-root <project-root> --role <role> and use only its returned role contract.
Codex-native operating rules
Preserve TR-ID, ADR status, traceability, and control-manifest version contracts. Ask at most one user question per turn and wait for the answer. Delegate material architecture choices or conflicts to the technical-director Sol Codex custom-agent role. Before writing, show the complete approved artifact changeset and paths once; then write that approved changeset without per-line prompts.
Create Control Manifest
The Control Manifest is a flat, actionable rules sheet for programmers. It answers "what do I do?" and "what must I never do?" — organized by architectural layer, extracted from all Accepted ADRs, technical preferences, and engine reference docs. Where ADRs explain why, the manifest tells you what.
Output: docs/architecture/control-manifest.md
When to run: After $architecture-review passes and ADRs are in Accepted
status. Re-run whenever new ADRs are accepted or existing ADRs are revised.
1. Load All Inputs
ADRs
- Search for files matching
docs/architecture/adr-*.mdand read every file - Filter to only Accepted ADRs (Status: Accepted) — skip Proposed, Deprecated, Superseded
- Note the ADR number and title for every rule sourced
Technical Preferences
- Read
.codex/docs/technical-preferences.md - Extract: naming conventions, performance budgets, approved libraries/addons, forbidden patterns
Engine Reference
- Read
../../../docs/engine-reference/[engine]/VERSION.mdfor engine + version - Read
../../../docs/engine-reference/[engine]/deprecated-apis.md— these become forbidden API entries - Read
../../../docs/engine-reference/[engine]/current-best-practices.mdif it exists
Report: "Loaded [N] Accepted ADRs, engine: [name + version]."
2. Extract Rules from Each ADR
For each Accepted ADR, extract:
Required Patterns (from "Implementation Guidelines" section)
- Every "must", "should", "required to", "always" statement
- Every specific pattern or approach mandated
Forbidden Approaches (from "Alternatives Considered" sections)
- Every alternative that was explicitly rejected — why it was rejected becomes the rule ("never use X because Y")
- Any anti-patterns explicitly called out
Performance Guardrails (from "Performance Implications" section)
- Budget constraints: "max N ms per frame for this system"
- Memory limits: "this system must not exceed N MB"
Engine API Constraints (from "Engine Compatibility" section)
- Post-cutoff APIs that require verification
- Verified behaviours that differ from default LLM assumptions
- API fields or methods that behave differently in the pinned engine version
Layer Classification
Classify each rule by the architectural layer of the system it governs:
- Foundation: Scene management, event architecture, save/load, engine init
- Core: Core gameplay loops, main player systems, physics/collision
- Feature: Secondary systems, secondary mechanics, AI
- Presentation: Rendering, audio, UI, VFX, shaders
If an ADR spans multiple layers, duplicate the rule into each relevant layer.
3. Add Global Rules
Combine rules that apply to all layers:
From technical-preferences.md:
- Naming conventions (classes, variables, signals/events, files, constants)
- Performance budgets (target framerate, frame budget, draw call limits, memory ceiling)
From deprecated-apis.md:
- All deprecated APIs → Forbidden API entries
From current-best-practices.md (if available):
- Engine-recommended patterns → Required entries
From technical-preferences.md forbidden patterns:
- Copy any "Forbidden Patterns" entries directly
4. Present Rules Summary Before Writing
Before writing the manifest, present a summary to the user:
## Control Manifest Preview
Engine: [name + version]
ADRs covered: [list ADR numbers]
Total rules extracted:
- Foundation layer: [N] required, [M] forbidden, [P] guardrails
- Core layer: [N] required, [M] forbidden, [P] guardrails
- Feature layer: ...
- Presentation layer: ...
- Global: [N] naming conventions, [M] forbidden APIs, [P] approved librariesAsk one concise question and wait for the answer:
- Prompt: "Does this rule summary look complete?"
- Options:
[A] Yes — looks good, run the director review and write the manifest[B] Add rules — I have additional rules to include before writing[C] Remove rules — some extracted rules should be dropped[D] Stop here — I need to review the ADRs first
4b. Director Gate — Technical Review
Read and resolve review_mode from .codex/studio.toml before applying this
mode check. Treat review_mode = "phase-gated" as lean optional-review depth.
If the canonical setting is missing or unreadable, stop and surface the blocker
instead of guessing a mode.
Review mode check — apply before delegating to TD-MANIFEST:
solo→ skip. Note: "TD-MANIFEST skipped — Solo mode." Proceed to Phase 5.lean→ skip. Note: "TD-MANIFEST skipped — Lean mode." Proceed to Phase 5.full→ delegate normally.
Delegate to technical-director through Codex custom-agent delegation using gate TD-MANIFEST (../../../.codex/docs/director-gates.md).
Pass: the Control Manifest Preview from Phase 4 (rule counts per layer, full extracted rule list), the list of ADRs covered, engine version, and any rules sourced from technical-preferences.md or engine reference docs.
The technical-director reviews whether:
- All mandatory ADR patterns are captured and accurately stated
- Forbidden approaches are complete and correctly attributed
- No rules were added that lack a source ADR or preference document
- Performance guardrails are consistent with the ADR constraints
Apply the verdict:
- APPROVE → proceed to Phase 5
- CONCERNS → surface with one concise question, then wait for the answer with options:
Revise flagged rules/Accept and proceed/Discuss further - REJECT → do not write the manifest; fix the flagged rules and re-present the summary
5. Write the Control Manifest
Ask one concise question and wait for the answer:
- Prompt: "May I write the Control Manifest?"
- Options:
[A] Yes — write to docs/architecture/control-manifest.md[B] Show me the full draft first, then ask again[C] Not yet — I want to make more changes
Format:
# Control Manifest
> **Engine**: [name + version]
> **Last Updated**: [date]
> **Manifest Version**: [date]
> **ADRs Covered**: [ADR-NNNN, ADR-MMMM, ...]
> **Status**: [Active — regenerate with `$create-control-manifest update` when ADRs change]
`Manifest Version` is the date this manifest was generated. Story files embed
this date when created. `$story-readiness` compares a story's embedded version
to this field to detect stories written against stale rules. Always matches
`Last Updated` — they are the same date, serving different consumers.
This manifest is a programmer's quick-reference extracted from all Accepted ADRs,
technical preferences, and engine reference docs. For the reasoning behind each
rule, see the referenced ADR.
---
## Foundation Layer Rules
*Applies to: scene management, event architecture, save/load, engine initialisation*
### Required Patterns
- **[rule]** — source: [ADR-NNNN]
- **[rule]** — source: [ADR-NNNN]
### Forbidden Approaches
- **Never [anti-pattern]** — [brief reason] — source: [ADR-NNNN]
### Performance Guardrails
- **[system]**: max [N]ms/frame — source: [ADR-NNNN]
---
## Core Layer Rules
*Applies to: core gameplay loop, main player systems, physics, collision*
### Required Patterns
...
### Forbidden Approaches
...
### Performance Guardrails
...
---
## Feature Layer Rules
*Applies to: secondary mechanics, AI systems, secondary features*
### Required Patterns
...
### Forbidden Approaches
...
---
## Presentation Layer Rules
*Applies to: rendering, audio, UI, VFX, shaders, animations*
### Required Patterns
...
### Forbidden Approaches
...
---
## Global Rules (All Layers)
### Naming Conventions
| Element | Convention | Example |
|---------|-----------|---------|
| Classes | [from technical-preferences] | [example] |
| Variables | [from technical-preferences] | [example] |
| Signals/Events | [from technical-preferences] | [example] |
| Files | [from technical-preferences] | [example] |
| Constants | [from technical-preferences] | [example] |
### Performance Budgets
| Target | Value |
|--------|-------|
| Framerate | [from technical-preferences] |
| Frame budget | [from technical-preferences] |
| Draw calls | [from technical-preferences] |
| Memory ceiling | [from technical-preferences] |
### Approved Libraries / Addons
- [library] — approved for [purpose]
### Forbidden APIs ([engine version])
These APIs are deprecated or unverified for [engine + version]:
- `[api name]` — deprecated since [version] / unverified post-cutoff
- Source: `Codex Game Studios bundled engine reference: [engine]/deprecated-apis.md`
### Cross-Cutting Constraints
- [constraint that applies everywhere, regardless of layer]6. Suggest Next Steps
After writing the manifest:
- If epics/stories don't exist yet: "Run
$create-epics layer: foundationthen$create-stories [epic-slug]— programmers can now use this manifest when writing story implementation notes." - If this is a regeneration (manifest already existed): "Updated. Recommend notifying the team of changed rules — especially any new Forbidden entries."
Collaborative Protocol
- Load silently — read all inputs before presenting anything
- Show the summary first — let the user see the scope before writing
- Ask before writing — always confirm before creating or overwriting the manifest. On write: Verdict: COMPLETE — control manifest written. On decline: Verdict: BLOCKED — user declined write.
- Source every rule — never add a rule that doesn't trace to an ADR, a technical preference, or an engine reference doc
- No interpretation — extract rules as stated in ADRs; do not paraphrase in ways that change meaning
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 8
- Donchitos/Claude-Code-Game-Studios★ 27k14% same
- striderZA/OpenCodeGameStudios★ 9388% same
- dawn840705/codex-code-studios★ 1790% same
- lilangMax/ClaudeCodeGameStudios★ 888% same
- dawn840705/claude-code-studios★ 188% same
- HunLuanZhiZhu/Game-Studios-Plugin★ 189% same
- venus2099/codex-game-studios★ 147% same
- ShiningPlague/shiningplague-studio★ 084% same
Wrote their own version · 1
- cenconq25/claude-code-app-studio★ 40same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Codex Studio Testing Framework/AGENTS.mdAGENTS.md
- prototypes/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- adoptSkill
- architecture-decisionSkill
- architecture-reviewSkill
- art-bibleSkill
- asset-auditSkill
- asset-specSkill
- balance-checkSkill
- brainstormSkill
- bug-reportSkill
- bug-triageSkill
- changelogSkill
- code-reviewSkill
- consistency-checkSkill
- content-auditSkill
- create-architectureSkill
- create-epicsSkill
- create-storiesSkill
- day-one-patchSkill
- design-reviewSkill
- design-systemSkill
- dev-storySkill
- estimateSkill
- gate-checkSkill
- helpSkill
- hotfixSkill
- launch-checklistSkill
- localizeSkill
- map-systemsSkill
- milestone-reviewSkill
- onboardSkill
- patch-notesSkill
- perf-profileSkill
- playtest-reportSkill
- project-stage-detectSkill
- propagate-design-changeSkill
- prototypeSkill
- qa-planSkill
- quick-designSkill
- regression-suiteSkill
- release-checklistSkill
- retrospectiveSkill
- reverse-documentSkill
- review-all-gddsSkill
- scope-checkSkill
- security-auditSkill
- setup-engineSkill
- skill-improveSkill
- skill-testSkill
- smoke-checkSkill
- soak-testSkill
- sprint-planSkill
- sprint-statusSkill
- startSkill
- story-doneSkill
- story-readinessSkill
- team-audioSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

