mirror of
https://github.com/Donchitos/Claude-Code-Game-Studios.git
synced 2026-10-16 01:37:05 +00:00
Release 1.1.3 — long skills keep their later steps
Fix release for 1.1.2: the 14 longest skills keep their later phases after a compaction, a question nobody answered is never taken as an answer, settings read the same from a subfolder, the commit check works for a project in a subfolder of a larger repository, every skill opens with a title, and the shipped allow rules no longer approve deleting a branch or writing files without asking. Details in CHANGELOG.md; upgrade steps in UPGRADING.md (v1.1.2 → v1.1.3). Refs #83 Refs #133 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185en4t76fPn7315q4c3nko
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b21fa0f7f2
commit
be8993bbc5
@@ -0,0 +1,189 @@
|
||||
# /create-architecture — Phase 0: Load All Context
|
||||
|
||||
> Part of `/create-architecture`. `SKILL.md` names when to read this file; the settings it
|
||||
> resolved and the rules under its later headings still apply here.
|
||||
|
||||
## Phase 0: Load All Context
|
||||
|
||||
**In this file:**
|
||||
|
||||
- 0a. Engine Context (Critical)
|
||||
- 0b. Design Context + Technical Requirements Extraction
|
||||
- 0c. Existing Architecture Decisions
|
||||
- 0d. Generate Knowledge Gap Inventory
|
||||
- 0e. Existing Architecture Document
|
||||
|
||||
Before anything else, load the full project context in this order:
|
||||
|
||||
### 0a. Engine Context (Critical)
|
||||
|
||||
Read the four project-wide engine documents in full — they are small, and every
|
||||
part of each is used:
|
||||
|
||||
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
|
||||
|
||||
Then read **only the module docs whose domain this game actually uses** —
|
||||
not the whole `modules/` directory:
|
||||
|
||||
5. `docs/engine-reference/[engine]/modules/` — glob it to establish what exists,
|
||||
then match against the domains present in `design/gdd/systems-index.md`
|
||||
(the same domain vocabulary the ADR template uses: Physics, Rendering, UI,
|
||||
Audio, Navigation, Animation, Networking, Core, Input). Read the matching
|
||||
modules; skip the rest.
|
||||
→ Extract: current API patterns per domain
|
||||
|
||||
A game with no multiplayer system does not need the networking module loaded
|
||||
to write its architecture, and loading it costs the same as one that does.
|
||||
**If the domain match is ambiguous, read the module** — a missed engine
|
||||
constraint is far more expensive here than a redundant read, because this
|
||||
phase is where those constraints get baked into the architecture.
|
||||
|
||||
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
|
||||
|
||||
Load the 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
|
||||
|
||||
**Check both exist before reading either. Neither is optional here, and both
|
||||
need an absence branch** — §0a stops for an unconfigured engine, and these two
|
||||
matter just as much:
|
||||
|
||||
- **`systems-index.md` absent** — stop:
|
||||
> "No systems index found. Run `/map-systems` first. An architecture written
|
||||
> without it invents layers for systems nobody mapped, and every ADR, epic and
|
||||
> story downstream inherits that invention."
|
||||
At `minimal` the index is not required (§ tier note above) — say so and proceed
|
||||
from the brief instead.
|
||||
- **`game-concept.md` absent** — at `standard`/`full`, stop and point at
|
||||
`/brainstorm`. At `minimal`, read `design/game-brief.md` in its place; if that
|
||||
is absent too, stop — there is no design record to architect against.
|
||||
- **Either present but empty or still template placeholders** — treat as absent.
|
||||
Present-but-empty is the case that most looks like present.
|
||||
|
||||
Do not proceed on a partial read and note it later. This phase is where design
|
||||
assumptions get baked into ADRs, and an assumption made here is re-derived by
|
||||
everything downstream rather than re-checked.
|
||||
3. Project config — `naming.*` and `performance.*` from `project.yaml` (for any
|
||||
key absent or empty, fall back to `.claude/docs/technical-preferences.md`);
|
||||
allowed libraries and forbidden patterns from
|
||||
`.claude/docs/technical-preferences.md` (not migrated to project.yaml)
|
||||
4. **Every GDD in `design/gdd/`** — extract technical requirements from the
|
||||
sections that carry them, **not from whole files**. Establish the denominator
|
||||
first (glob `design/gdd/*.md`, count **N**), then:
|
||||
```
|
||||
Grep pattern="^## (Detailed Rules|Detailed Design|Formulas|Dependencies|Tuning Knobs|Acceptance Criteria)" glob="design/gdd/*.md" output_mode="content" -A 40
|
||||
```
|
||||
Overview and Player Fantasy are narrative and imply no architecture; the
|
||||
scanned set is where rules, numbers, and cross-system contracts live. Accept
|
||||
either `## Detailed Rules` or `## Detailed Design` — the design standard and
|
||||
the GDD template disagree on the name and they denote the same section.
|
||||
|
||||
Full-read a GDD when it matched **zero** sections (it predates the template —
|
||||
a zero-match means "unstructured", never "no requirements") or when a scanned
|
||||
section refers to material outside itself. **Never treat an absent section as
|
||||
an absent requirement**: report any GDD that contributed nothing, rather than
|
||||
letting it drop silently out of the baseline below.
|
||||
|
||||
For each, extract:
|
||||
- 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-[system]-[NNN]`, the TR registry's
|
||||
ID format. 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
|
||||
|
||||
To learn **what has already been decided and in which domain**, scan the ADR
|
||||
headers — do not full-read every ADR to produce a list of numbers and domains:
|
||||
```
|
||||
Grep pattern="^## (Status|Summary)" glob="docs/architecture/adr-*.md" output_mode="content" -A 4
|
||||
Grep pattern="\*\*Domain\*\*" glob="docs/architecture/adr-*.md" output_mode="content"
|
||||
```
|
||||
`## Summary` (a 2-sentence what-and-why) plus `## Status` and the Engine
|
||||
Compatibility `Domain` field are exactly "what was decided and its domain". List
|
||||
the ADRs found, their status, and their domains from the scan. Full-read a
|
||||
specific ADR only when a new decision this session would collide with it and you
|
||||
need its reasoning — not to build the inventory.
|
||||
|
||||
### 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`
|
||||
|
||||
### 0e. Existing Architecture Document
|
||||
|
||||
Glob `docs/architecture/architecture.md`. If it exists, this run updates it —
|
||||
it never replaces it unasked. Read its `## Document Status` block and its `##`
|
||||
headings, then use `AskUserQuestion`:
|
||||
- Prompt: "An architecture document already exists (v[N], [last updated]). What should this run do?"
|
||||
- Options: `[A] Update chosen sections in place` / `[B] Rewrite the whole document — replaces the existing file` / `[C] Stop`
|
||||
|
||||
On `[A]`, ask which sections. Phases 1–6 author only those and say which they
|
||||
skipped; Phase 7 replaces just those sections and raises `Version` to N+1,
|
||||
leaving every other section as it is. `[B]` runs the full walkthrough, and
|
||||
Phase 7's ask says it replaces the existing file.
|
||||
|
||||
A focus-area argument (`layers`, `data-flow`, `api-boundaries`, `adr-audit`)
|
||||
is `[A]` with that one section chosen: it runs only its phase (1, 3, 4 or 5),
|
||||
and Phase 7 writes that section. Phase 7b still runs on the updated document —
|
||||
an update is reviewed like a first draft, at the review modes that review one. With no existing document there is nothing to
|
||||
update — say so, and offer the full walkthrough instead.
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user