Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Skill Test Spec: /create-epics
Skill Summary
/create-epics reads in-scope GDDs, the architecture document, Accepted ADRs and
the TR registry, and turns each system into one epic mapped to an architectural
module. Systems are processed in layer order (Foundation → Core → Feature →
Presentation), and within a layer in systems-index.md order. Each epic is
presented (layer, GDD, architecture module, governing ADRs, engine risk, ADR
coverage, untraced requirements) and the user is asked "Shall I create Epic:
[name]?" before anything is written.
Epics are written to production/epics/[epic-slug]/EPIC.md, each after its own
"May I write production/epics/[epic-slug]/EPIC.md and add its row to
production/epics/index.md (creating it if absent)?" ask, which names the index
it then creates or updates. An EPIC.md that already exists
is never overwritten: the user chooses update-in-place (its Stories table kept) or
skip. In full review mode the
PR-EPIC gate (producer) runs after all epics for the layer are defined and before
any file is written; in lean and solo it is skipped with a note. Review mode
comes from resolve_config (review_mode), overridable per run with --review.
Verdicts: COMPLETE (N epics written) or BLOCKED (user declined all epics, stopped
at the gate, or no eligible systems found).
Static Assertions (Structural)
Checked against the SKILL.md by /skill-test spec — no fixture needed.
- Has required frontmatter fields:
name,description,argument-hint,user-invocable,allowed-tools - Has ≥2 phase headings
- Contains verdict keywords: COMPLETE, BLOCKED
- Contains "May I write" collaborative protocol language (per-epic approval)
- Has a next-step handoff at the end (
/create-stories [epic-slug]) - Documents PR-EPIC gate behavior: runs in full mode; skipped in lean/solo
Director Gate Checks
In full mode: PR-EPIC (producer, .claude/docs/director-gates/pr-epic.md)
runs once all epics for the current layer are defined and before any epic file is
written. Verdicts: REALISTIC → proceed to the write asks; CONCERNS →
AskUserQuestion with [A] Proceed as planned / [B] Revise epic boundaries /
[C] Stop; UNREALISTIC → offer to split or merge epics, revise, present the
revised epics again, and re-run the gate before writing. CONCERNS [B] likewise
re-presents the revised epics before the gate re-runs. NOT ASSESSED [missing
input] → never read as REALISTIC: the input is supplied and the gate re-run, or
the run goes on with PR-EPIC: NOT ASSESSED — [input] stated in the output and
the Verdict line.
In lean mode: PR-EPIC is skipped. Output notes: "PR-EPIC skipped — Lean mode."
In solo mode: PR-EPIC is skipped. Output notes: "PR-EPIC skipped — Solo mode."
Fixture Defaults
Every case's project.yaml sets modes.rigor: minimal and
modes.automation: collaborative, with no project.local.yaml, unless its own
Fixture says otherwise. Rules: studio-tests/CLAUDE.md §
Fixture defaults.
Test Cases
Case 1: Happy Path — Two approved GDDs create two epics
Fixture:
project.yaml:engine.name: Godot,modes.workflow: full,modes.review_mode: leandesign/gdd/systems-index.mdlists 2 Foundation systems- Both systems have Approved GDDs in
design/gdd/, each with a## Summary docs/architecture/architecture.mdhas a module for each system- Accepted ADRs cover every TR-ID for both systems in
docs/architecture/tr-registry.yaml; the first system has two governing ADRs whose Engine Compatibility rates Knowledge Risk LOW and HIGH docs/architecture/control-manifest.mdexists- No
production/epics/directory
Input: /create-epics layer: foundation
Expected behavior:
- Globs
design/gdd/*.md(excluding systems-index and other non-system docs) to establish N, then Greps^## Summaryto scope the Foundation systems - Reads the 2 in-scope GDDs,
architecture.md, the Decision / GDD Requirements Addressed / Engine Compatibility sections of the in-scope ADRs, the TR registry and the manifest header; reports "Loaded 2 GDDs, [M] ADRs, engine: …" - For each system: presents the epic block and asks "Shall I create Epic: [name]?"
- Notes "PR-EPIC skipped — Lean mode."
- For each epic: asks "May I write
production/epics/[epic-slug]/EPIC.mdand add its row toproduction/epics/index.md(creating it if absent)?" and writes both after approval - Creates or updates
production/epics/index.md - Verdict: COMPLETE — 2 epic(s) written; next step
/create-stories [epic-slug]
Assertions:
- Each epic block is shown and "Shall I create Epic: [name]?" asked before any write ask
- "May I write" is asked per epic (not once for both)
- Files land at
production/epics/[epic-slug]/EPIC.md - Each EPIC.md contains Layer, GDD path, Architecture Module, Governing ADRs table, GDD Requirements table, Definition of Done
- The first epic's Engine Risk is HIGH — the highest among its governing ADRs, not the first or the average
- The Definition of Done asks Logic and Integration stories for passing tests under
tests/(the Godot test root) and Visual/Feel and UI stories for retained screenshots inproduction/qa/evidence/— each screen touched for UI, plus a lead sign-off for Visual/Feel - "PR-EPIC skipped — Lean mode." appears; no producer is spawned
-
production/epics/index.mdis created or updated after writing, and only after an ask that named it - Verdict is COMPLETE and names
/create-stories [epic-slug]
Case 2: Failure Path — No system GDDs found
Fixture:
project.yaml:modes.workflow: fulldesign/gdd/contains onlygame-concept.mdandsystems-index.md(no system GDDs)
Input: /create-epics all
Expected behavior:
- Globs
design/gdd/*.mdexcluding the non-system docs — N = 0 - Reports "No system GDDs found in
design/gdd/— run/design-systemfirst" and stops - No epic is presented, no gate runs, no file is written
Assertions:
-
game-concept.mdandsystems-index.mdare not counted as system GDDs - The "No system GDDs found … run
/design-systemfirst" message is printed - No "Shall I create Epic" or "May I write" ask is shown and no EPIC.md or index.md is written
- Verdict is BLOCKED (no eligible systems found), not COMPLETE
Case 3: Director Gate — Full mode spawns PR-EPIC before writing
Fixture:
- 2 Approved GDDs, architecture, ADRs, TR registry and control manifest as in Case 1
project.yaml:modes.workflow: full,modes.review_mode: full— the workflow is pinned because an unset one resolves tominimal, where the skill reads the brief instead of the GDDs and the gate never comes into play- PR-EPIC returns REALISTIC
Input: /create-epics layer: foundation
Full mode expected behavior:
- Both epics are presented and accepted via "Shall I create Epic: [name]?"
produceris spawned viaAgentwith gate PR-EPIC, receiving the epic structure summary, the layer, milestone timeline and team capacity- On REALISTIC: the per-epic "May I write" asks proceed
- Epic files are written after approval
Assertions (full mode):
- PR-EPIC is spawned once, after both epics are defined
- PR-EPIC runs before any "May I write" ask
- No EPIC.md is written before PR-EPIC resolves
Fixture (per-run override):
- Same project,
modes.workflow: full,modes.review_mode: full - Input:
/create-epics layer: foundation --review lean
Override expected behavior:
--review leanoverrides the resolvedfull- PR-EPIC is skipped — noted in output
- "May I write" asks proceed directly
Assertions (override):
- "PR-EPIC skipped — Lean mode." appears in output
- No producer agent is spawned and the write asks follow the epic definitions directly
Case 4: Edge Case — Untraced requirements at full workflow
Fixture:
project.yaml:modes.workflow: full,modes.review_mode: solo- One Approved Foundation GDD whose system has 5 TR-IDs in
tr-registry.yaml; Accepted ADRs cover 3 of them (2 untraced)
Input: /create-epics [system-name]
Expected behavior:
- Epic block shows "GDD Requirements Covered by ADRs: 3 / 5" and lists the 2 untraced TR-IDs under "Untraced Requirements"
- Warns: "⚠️ 2 requirements in [system] have no ADR. The epic can be created, but
/create-storieswill write their stories with no governing ADR (ADR: N/A) andStatus: Ready— nothing downstream blocks them, so they would be implemented without architectural guidance. Run/architecture-decisionfirst if they need a decision, or proceed and accept the gap." - Asks "Shall I create Epic: [name]?" with
[A] Yes, create it/[B] Skip this epic/[C] Pause — I need to write ADRs first - On [A]: notes "PR-EPIC skipped — Solo mode.", asks "May I write", and the
EPIC.md GDD Requirements table marks the 2 rows
❌ No ADR
Assertions:
- Coverage count and the 2 untraced TR-IDs are shown before the create ask
- The untraced-requirements warning names
/architecture-decisionand says what actually happens downstream: the stories are writtenReadywith no governing ADR — it does not claim they will be Blocked - Option
[C] Pause — I need to write ADRs firstis offered - The written EPIC.md marks the untraced rows
❌ No ADR(not silently dropped)
Case 5: Director Gate — PR-EPIC returns CONCERNS
Fixture:
- 2 Approved GDDs, architecture, ADRs, TR registry and control manifest as in Case 1
project.yaml:modes.workflow: full,modes.review_mode: full- PR-EPIC returns CONCERNS (one epic's scope is too large)
Input: /create-epics layer: foundation
Expected behavior:
- PR-EPIC is spawned and returns CONCERNS with specific feedback
- Skill presents the producer's assessment before any write ask
AskUserQuestion: "Producer raised concerns about the epic structure. How do you want to proceed?" with[A] Proceed as planned — I accept the producer's concerns/[B] Revise epic boundaries — split or merge as recommended/[C] Stop — I want to reconsider the scope- [B]: epic definitions are revised from Step 4 and PR-EPIC is re-run
- [C]: stops with Verdict: BLOCKED — user wants to reconsider epic scope
Assertions:
- The producer's CONCERNS are shown to the user before any "May I write" ask
- Skill does NOT write epics while the gate is unresolved
- All three options ([A] proceed / [B] revise / [C] stop) are offered
- Choosing [B] re-presents the revised epics and re-runs PR-EPIC before any write ask
- Choosing [C] ends with Verdict: BLOCKED and no files written
Case 6: Edge Case — An EPIC.md already exists for one system
Fixture:
- As Case 1 (
modes.workflow: full,modes.review_mode: lean) production/epics/[first-slug]/EPIC.mdalready exists, with**Stories**: 3 storiesin its header and a 3-row## Storiestable;production/epics/index.mdhas its row with3 stories- The second system has no EPIC.md
Input: /create-epics layer: foundation
Expected behavior:
- Both epics are presented and accepted via "Shall I create Epic: [name]?"
- For the first system the skill does not overwrite: it asks "An EPIC.md already
exists for [name]. Update it in place, or skip it?" with
[A] Update in place — keep its Stories table/[B] Skip this epic; the user picks [A] - The update rewrites the header fields other than
Stories, the Overview, Governing ADRs, GDD Requirements and Definition of Done, and leaves the**Stories**line and the## Storiestable as they were - For the second system the normal "May I write
…/EPIC.mdand add its row toproduction/epics/index.md…?" ask follows production/epics/index.mdkeeps one row for the first epic, still3 stories, and gains a row for the second
Assertions:
- The existing file is detected before any write, and update / skip is offered — it is not overwritten
- After the update, the
**Stories**header line and all 3## Storiesrows are unchanged - The index has no duplicate row for the first epic and does not reset it to
Not yet created - The second system's EPIC.md is written only after its own "May I write" ask
Case 7: Standard tier — GDDs without ## Summary, one untraced non-critical requirement
Fixture:
project.yaml:modes.workflow: standard,modes.review_mode: solodesign/gdd/systems-index.mdlists one Foundation and one Core system; both GDDs predate## Summary(the Summary scan matches none of them)docs/architecture/architecture.mdhas a module for each system, anddocs/architecture/tr-registry.yamlholds both systems' TR-IDs- The Foundation system's TR-IDs are covered by an Accepted Foundation-layer ADR; one of the Core system's TR-IDs has no ADR
docs/architecture/control-manifest.mddoes not exist
Input: /create-epics all
Expected behavior:
- Globs
design/gdd/*.mdfor N = 2; the^## Summaryscan returns 0 matches - Notes once: "No
## Summarysections found across 2 GDDs — scoping fromsystems-index.mdinstead of Summary." and full-reads both in-scope GDDs - Proceeds without the control manifest (read if present, not required at
standard) - The Core epic lists its untraced TR-ID under "Untraced Requirements" as information only — no ⚠️ untraced-requirements warning, nothing blocked
- Notes "PR-EPIC skipped — Solo mode."; each epic is written after its own ask
Assertions:
- A zero-match Summary scan is reported as such and both systems stay in scope — it is not read as "nothing in scope"
- The missing control manifest does not stop the run at
standard - The untraced non-critical requirement is listed, but the ⚠️ warning is not emitted
- Both epics are written, each after its own "May I write" ask
Protocol Compliance
- Epic definitions shown to user before any "May I write" ask
- "May I write" asked per epic, not once for the entire batch
- An existing EPIC.md is updated in place or skipped by the user's choice — never overwritten
- PR-EPIC gate (if active) runs before write asks — not after
- Skipped gates noted by name and mode in output
- EPIC.md content sourced only from GDDs, ADRs, and architecture docs — nothing invented
- Never creates stories; ends with next-step handoff
/create-stories [epic-slug]per created epic
Coverage Notes
- Feature and Presentation layers follow the same per-epic pattern as Foundation and Core — layer-specific ordering is not independently tested.
- The
minimaltier (optional; decomposes fromdesign/game-brief.md, stops without one) is not given a fixture. - The
## Summarypartial-adoption row (0 < M < N) is not separately tested; the zero-match row is Case 7. - PR-EPIC UNREALISTIC handling (revise, present the revised epics again, re-run the gate), a NOT ASSESSED gate answer, and the no-argument "Which layer or system…" ask are not separately tested.