dawn840705/codex-code-studios/create-architecture
Claude Code and agent skill by dawn840705/codex-code-studios
- community
Checking that the SKILL.md file is still in the repository.
Guided, section-by-section authoring of the master architecture document for the game. Reads all GDDs, the systems index, existing ADRs, and the engine reference library to produce a complete architecture blueprint before any code is written. Engine-version-aware: flags knowledge gaps and validates decisions against the pinned engine version.
Install
npx vskill@latest install dawn840705/codex-code-studios/create-architectureSKILL.md
The same SKILL.md was published earlier as dawn840705/codex-code-studios/create-architecture.
Track check — this skill is game-framed. Resolveproduction/track.txt(or thesession'sPROJECT_TYPEline) before Phase 0.- `game` — run as written.- `product` (web / mobile / service) — substitute as you read: player becomes user,game becomes product, GDD becomes PRD (design/gdd/→product/prd/), engine becomesthe stack pinned in.codex/studio/technical-preferences.md. Readproduct/prd/product-concept.mdand everyproduct/prd/prd-*.mdin place ofdesign/gdd/game-concept.mdand the GDDs. There is no systems-index; the concept's scope tiers bound the layers. The engine section becomes the pinned stack — framework, hosting, data store.- Unresolved — ask which track this is before doing anything. A greenfield projecthas no signal either way; do not infer one from the repository contents.
Create Architecture
This skill produces docs/architecture/architecture.md — the master architecture document that translates all approved GDDs into a concrete technical blueprint. It sits between design and implementation, and must exist before sprint planning begins.
Distinct from `$architecture-decision`: ADRs record individual point decisions. This skill creates the whole-system blueprint that gives ADRs their context.
Resolve the review mode (once, store for all gate spawns this run):
- If
--review [full|lean|solo]was passed → use that - Else read
production/review-mode.txt→ use that value - Else → default to
lean
See ../../docs/director-gates.md for the full check pattern.
Argument modes:
- No argument / `full`: Full guided walkthrough — all sections, start to finish
- `layers`: Focus on the system layer diagram only
- `data-flow`: Focus on data flow between modules only
- `api-boundaries`: Focus on API boundary definitions only
- `adr-audit`: Audit existing ADRs for engine compatibility gaps only
Phase 0: Load All Context
Before anything else, load the full project context in this order:
0a. Engine Context (Critical)
Read the engine reference library completely:
docs/engine-reference/[engine]/VERSION.md
→ Extract: engine name, version, LLM cutoff, post-cutoff risk levels
docs/engine-reference/[engine]/breaking-changes.md
→ Extract: all HIGH and MEDIUM risk changes
docs/engine-reference/[engine]/deprecated-apis.md
→ Extract: APIs to avoid
docs/engine-reference/[engine]/current-best-practices.md
→ Extract: post-cutoff best practices that differ from training data
- All files in
docs/engine-reference/[engine]/modules/
→ Extract: current API patterns per domain
If no engine is configured, stop and prompt:
"No engine is configured. Run$setup-enginefirst. Architecture cannot bewritten without knowing which engine and version you are targeting."
0b. Design Context + Technical Requirements Extraction
Read all approved design documents and extract technical requirements from each:
design/gdd/game-concept.md— game pillars, genre, core loopdesign/gdd/systems-index.md— all systems, dependencies, priority tiers.codex/studio/technical-preferences.md— naming conventions, performance budgets,
allowed libraries, forbidden patterns
- Every GDD in `design/gdd/` — for each, extract technical requirements:
- Data structures implied by the game rules
- Performance constraints stated or implied
- Engine capabilities the system requires
- Cross-system communication patterns (what talks to what, how)
- State that must persist (save/load implications)
- Threading or timing requirements
Build a Technical Requirements Baseline — a flat list of all extracted requirements across all GDDs, numbered TR-[gdd-slug]-[NNN]. This is the complete set of what the architecture must cover. Present it as:
This baseline feeds into every subsequent phase. No GDD requirement should be left without an architectural decision to support it by the end of this session.
0c. Existing Architecture Decisions
Read all files in docs/architecture/ to understand what has already been decided. List any ADRs found and their domains.
0d. Generate Knowledge Gap Inventory
Before proceeding, display a structured summary:
Ask: "This inventory identifies [N] systems in HIGH RISK engine domains. Shall I continue building the architecture with these warnings flagged throughout?"
Phase 1: System Layer Mapping
Map every system from systems-index.md into an architecture layer. The standard game architecture layers are:
For each GDD system, ask:
- Which layer does it belong to?
- What are its module boundaries?
- What does it own exclusively? (data, state, behaviour)
Present the proposed layer assignment and ask for approval before proceeding to the next section. Write the approved layer map immediately to the skeleton file.
Engine awareness check: For each system assigned to the Core and Foundation layers, flag if it touches a HIGH or MEDIUM risk engine domain. Show the relevant engine reference excerpt inline.
Phase 2: Module Ownership Map
For each module defined in Phase 1, define ownership:
- Owns: what data and state this module is solely responsible for
- Exposes: what other modules may read or call
- Consumes: what it reads from other modules
- Engine APIs used: which specific engine classes/nodes/signals this module
calls directly (with version and risk level noted)
Format as a table per layer, then as an ASCII dependency diagram.
Engine awareness check: For every engine API listed, verify against the relevant module reference doc. If an API is post-cutoff, flag it:
Get user approval on the ownership map before writing.
Phase 3: Data Flow
Define how data moves between modules during key game scenarios. Cover at minimum:
- Frame update path: Input → Core systems → State → Rendering
- Event/signal path: How systems communicate without tight coupling
- Save/load path: What state is serialised, which module owns serialisation
- Initialisation order: Which modules must boot before others
Use ASCII sequence diagrams where helpful. For each data flow:
- Name the data being transferred
- Identify the producer and consumer
- State whether this is synchronous call, signal/event, or shared state
- Flag any data flows that cross thread boundaries
Get user approval per scenario before writing.
Phase 4: API Boundaries
Define the public contracts between modules. For each boundary:
- What is the interface a module exposes to the rest of the system?
- What are the entry points (functions/signals/properties)?
- What invariants must callers respect?
- What must the module guarantee to callers?
Write in pseudocode or the project's actual language (from technical preferences). These become the contracts programmers implement against.
Engine awareness check: If any interface uses engine-specific types (e.g. Node, Resource, Signal in Godot), flag the version and verify the type exists and has not changed signature in the target engine version.
Phase 5: ADR Audit + Traceability Check
Review all existing ADRs from Phase 0c against both the architecture built in Phases 1-4 AND the Technical Requirements Baseline from Phase 0b.
ADR Quality Check
For each ADR:
- [ ] Does it have an Engine Compatibility section?
- [ ] Is the engine version recorded?
- [ ] Are post-cutoff APIs flagged?
- [ ] Does it have a "GDD Requirements Addressed" section?
- [ ] Does it conflict with the layer/ownership decisions made in this session?
- [ ] Is it still valid for the pinned engine version?
| ADR | Engine Compat | Version | GDD Linkage | Conflicts | Valid | |
|---|---|---|---|---|---|---|
| ADR-0001: [title] | ✅/❌ | ✅/❌ | ✅/❌ | None/[conflict] | ✅/⚠️ |
Traceability Coverage Check
Map every requirement from the Technical Requirements Baseline to existing ADRs. For each requirement, check if any ADR's "GDD Requirements Addressed" section or decision text covers it:
| Req ID | Requirement | ADR Coverage | Status | |
|---|---|---|---|---|
| TR-combat-001 | Hitbox detection per-frame | ADR-0003 | ✅ | |
| TR-combat-002 | Combo state machine | — | ❌ GAP |
Count: X covered, Y gaps. For each gap, it becomes a Required New ADR.
Required New ADRs
List all decisions made during this architecture session (Phases 1-4) that do not yet have a corresponding ADR, PLUS all uncovered Technical Requirements. Group by layer — Foundation first:
Foundation Layer (must create before any coding):
$architecture-decision [title]→ covers: TR-[id], TR-[id]
Core Layer:
$architecture-decision [title]→ covers: TR-[id]
Phase 6: Missing ADR List
Based on the full architecture, produce a complete list of ADRs that should exist but don't yet. Group by priority:
Must have before coding starts (Foundation & Core decisions):
- [e.g. "Scene management and scene loading strategy"]
- [e.g. "Event bus vs direct signal architecture"]
Should have before the relevant system is built:
- [e.g. "Inventory serialisation format"]
Can defer to implementation:
- [e.g. "Specific shader technique for water"]
Phase 7: Write the Master Architecture Document
Once all sections are approved, write the complete document to docs/architecture/architecture.md.
Ask: "May I write the master architecture document to docs/architecture/architecture.md?"
The document structure:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/create-architecture/SKILL.md
Popularity
- Repository stars
- 17
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawn840705/codex-code-studios/create-architecture)