# zenstory-ai/novel-to-game architecture

> Architecture diagram of the GitHub repository zenstory-ai/novel-to-game, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zenstory-ai/novel-to-game
- Repository: https://github.com/zenstory-ai/novel-to-game

## Overview

NovelToGame is a bundle of seven coding-agent skills for adapting a novel into a playable game. The principal workflow begins with the novel and a product brief, then proceeds through cited source analysis, concept selection, world and art direction, a runtime-locked build, and evidence-based QA. The graph captures the documented skill stages and their artifacts; source excerpts are limited to repository validation and deployment-observation scripts, so internal skill-to-skill dispatch is based on README documentation rather than sampled runtime code.

Main entry points: [`skills/novel-to-game/SKILL.md`](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-to-game/SKILL.md) (Novel-to-game workflow), [`skills/game-build/SKILL.md`](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-build/SKILL.md) (Runtime build), [`skills/novel-game-analyze/SKILL.md`](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-game-analyze/SKILL.md) (Novel analysis), [`skills/game-qa/SKILL.md`](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-qa/SKILL.md) (Evidence-based QA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Adaptation workflow"]
  node_orchestrator["Novel-to-game workflow<br/>[SKILL.md]"]
  node_brief["Product brief<br/>[SKILL.md]"]
end

subgraph group_design["Game design"]
  node_concept["Game concept<br/>[SKILL.md]"]
  node_world["World design<br/>[SKILL.md]"]
  node_art["Art direction<br/>[SKILL.md]"]
end

subgraph group_production["Build and verification"]
  node_build["Runtime build<br/>[SKILL.md]"]
  node_qa["Evidence-based QA<br/>[SKILL.md]"]
end

subgraph group_evidence["Source and evidence"]
  node_analysis["Novel analysis<br/>[SKILL.md]"]
  node_sourcebible["Source bible<br/>[SKILL.md]"]
end

node_agent(("Coding agent"))
node_novel["Novel source"]
node_platform(("Target platform"))

node_agent -->|"invokes"| node_orchestrator
node_novel -->|"provides source"| node_orchestrator
node_platform -->|"sets target"| node_brief
node_orchestrator -->|"drafts first"| node_brief
node_orchestrator -->|"runs stage"| node_analysis
node_analysis -->|"writes evidence"| node_sourcebible
node_orchestrator -->|"runs stage"| node_concept
node_orchestrator -->|"runs stage"| node_world
node_orchestrator -->|"runs stage"| node_art
node_orchestrator -->|"runs stage"| node_build
node_brief -->|"locks runtime"| node_build
node_orchestrator -->|"runs stage"| node_qa
node_build -->|"provides playable build"| node_qa

click node_orchestrator "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-to-game/SKILL.md"
click node_brief "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-to-game/SKILL.md"
click node_analysis "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-game-analyze/SKILL.md"
click node_sourcebible "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-game-analyze/SKILL.md"
click node_concept "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-concept/SKILL.md"
click node_world "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-world-design/SKILL.md"
click node_art "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-art-direction/SKILL.md"
click node_build "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-build/SKILL.md"
click node_qa "https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-qa/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_orchestrator,node_brief toneBlue
class node_concept,node_world,node_art toneAmber
class node_build,node_qa toneMint
class node_analysis,node_sourcebible toneRose
class node_agent,node_novel,node_platform toneIndigo
```

## Components

### Adaptation workflow

- [Novel-to-game workflow](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-to-game/SKILL.md): `skills/novel-to-game/SKILL.md`
- [Product brief](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-to-game/SKILL.md): `skills/novel-to-game/SKILL.md`

### Game design

- [Game concept](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-concept/SKILL.md): `skills/game-concept/SKILL.md`
- [World design](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-world-design/SKILL.md): `skills/game-world-design/SKILL.md`
- [Art direction](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-art-direction/SKILL.md): `skills/game-art-direction/SKILL.md`

### Build and verification

- [Runtime build](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-build/SKILL.md): `skills/game-build/SKILL.md`
- [Evidence-based QA](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/game-qa/SKILL.md): `skills/game-qa/SKILL.md`

### Source and evidence

- [Novel analysis](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-game-analyze/SKILL.md): `skills/novel-game-analyze/SKILL.md`
- [Source bible](https://github.com/zenstory-ai/novel-to-game/blob/main/skills/novel-game-analyze/SKILL.md): `skills/novel-game-analyze/SKILL.md`

### Other components

- **Coding agent**
- **Novel source**
- **Target platform**

## Connections

- Coding agent → Novel-to-game workflow: invokes (evidence: `README.md`)
- Novel source → Novel-to-game workflow: provides source (evidence: `README.md`)
- Target platform → Product brief: sets target (evidence: `README.md`)
- Novel-to-game workflow → Product brief: drafts first (evidence: `README.md`)
- Novel-to-game workflow → Novel analysis: runs stage (evidence: `README.md`)
- Novel analysis → Source bible: writes evidence (evidence: `README.md`)
- Novel-to-game workflow → Game concept: runs stage (evidence: `README.md`)
- Novel-to-game workflow → World design: runs stage (evidence: `README.md`)
- Novel-to-game workflow → Art direction: runs stage (evidence: `README.md`)
- Novel-to-game workflow → Runtime build: runs stage (evidence: `README.md`)
- Product brief → Runtime build: locks runtime (evidence: `README.md`)
- Novel-to-game workflow → Evidence-based QA: runs stage (evidence: `README.md`)
- Runtime build → Evidence-based QA: provides playable build (evidence: `README.md`)
