create-architecture
This skill generates `docs/architecture/architecture.md`, the master technical blueprint that translates all game design documents into a concrete system architecture before implementation begins. Use it after all GDDs are approved and before sprint planning to establish the complete system layer diagram, data flow patterns, API boundaries, and architectural decisions in a single document, with built-in validation against the pinned engine version and existing architecture decision records.
git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios /tmp/create-architecture && cp -r /tmp/create-architecture/.claude/skills/create-architecture ~/.claude/skills/create-architectureSKILL.md
# 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): 1. If `--review [full|lean|solo]` was passed → use that 2. Else read `production/review-mode.txt` → use that value 3. Else → default to `lean` See `.claude/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: 1. `docs/engine-reference/[engine]/VERSION.md` → Extract: engine name, version, LLM cutoff, post-cutoff risk levels 2. `docs/engine-reference/[engine]/breaking-changes.md` → Extract: all HIGH and MEDIUM risk changes 3. `docs/engine-reference/[engine]/deprecated-apis.md` → Extract: APIs to avoid 4. `docs/engine-reference/[engine]/current-best-practices.md` → Extract: post-cutoff best practices that differ from training data 5. 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-engine` first. Architecture cannot be > written 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: 1. `design/gdd/game-concept.md` — game pillars, genre, core loop 2. `design/gdd/systems-index.md` — all systems, dependencies, priority tiers 3. `.claude/docs/technical-preferences.md` — naming conventions, performance budgets, allowed libraries, forbidden patterns 4. **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: ``` ## Technical Requirements Baseline Extracted from [N] GDDs | [X] total requirements | Req ID | GDD | System | Requirement | Domain | |--------|-----|--------|-------------|--------| | TR-combat-001 | combat.md | Combat | Hitbox detection per-frame | Physics | | TR-combat-002 | combat.md | Combat | Combo state machine | Core | | TR-inventory-001 | inventory.md | Inventory | Item persistence | Save/Load | ``` 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: ``` ## Engine Knowledge Gap Inventory Engine: [name + version] LLM Training Covers: up to approximately [version] Post-Cutoff Versions: [list] ### HIGH RISK Domains (must verify against engine reference before deciding) - [Domain]: [Key changes] ### MEDIUM RISK Domains (verify key APIs) - [Domain]: [Key changes] ### LOW RISK Domains (in training data, likely reliable) - [Domain]: [no significant post-cutoff changes] ### Systems from GDD that touch HIGH/MEDIUM risk domains: - [GDD system name] → [domain] → [risk level] ``` Use `AskUserQuestion`: - Prompt: "One or more engine domains are HIGH RISK — the LLM's knowledge may be unreliable for these areas. Architectural recommendations in these domains should be cross-referenced with the engine docs before being acted on. How would you like to proceed?" - Options: - `[A] Proceed — flag HIGH RISK domains throughout the output` - `[B] Let me check the engine reference first — pause here` - `[C] Show me which domains are HIGH RISK and why` --- ## Phase 1: System Layer Mapping Map every system from `systems-index.md` into an architecture layer. The standard game architecture layers are: ``` ┌─────────────────────────────────────────────┐ │ PRESENTATION LAYER │ ← UI, HUD, menus, VFX, audio ├─────────────────────────────────────────────┤ │ FEATURE LAYER │ ← gameplay systems, AI, quests ├─────────────────────────────────────────────┤ │ CORE LAYER │ ← physics, input, combat, movement ├─────────────────────────────────────────────┤ │ FOUNDATION LAYER │ ← engine integration, save/load, │ │ scene management, event bus ├─────────────────────────────────────────────┤ │ PLATFORM LAYER │ ← OS, hardware, engine API surface └─────────────────────────────────────────────┘ ``` 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 proce
The Accessibility Specialist ensures the game is playable by the widest possible audience. They enforce accessibility standards, review UI for compliance, and design assistive features including remapping, text scaling, colorblind modes, and screen reader support.
Brownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from /project-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills.
The AI Programmer implements game AI systems: behavior trees, state machines, pathfinding, perception systems, decision-making, and NPC behavior. Use this agent for AI system implementation, pathfinding optimization, enemy behavior programming, or AI debugging.
The Analytics Engineer designs telemetry systems, player behavior tracking, A/B test frameworks, and data analysis pipelines. Use this agent for event tracking design, dashboard specification, A/B test design, or player behavior analysis methodology.
Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR.
Validates completeness and consistency of the project architecture against all GDDs. Builds a traceability matrix mapping every GDD technical requirement to ADRs, identifies coverage gaps, detects cross-ADR conflicts, verifies engine compatibility consistency across all decisions, and produces a PASS/CONCERNS/FAIL verdict. The architecture equivalent of /design-review.
Guided, section-by-section Art Bible authoring. Creates the visual identity specification that gates all asset production. Run after /brainstorm is approved and before /map-systems or any GDD authoring begins.
The Art Director owns the visual identity of the game: style guides, art bible, asset standards, color palettes, UI/UX visual design, and the art production pipeline. Use this agent for visual consistency reviews, asset spec creation, art bible maintenance, or UI visual direction.