quest-narrative-coherence · diff
git:20261114.b353ad0 to git:20261114.3ad6f18
42 added, 106 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: quest-narrative-coherence
- description: >-
- Use when creating any quest, mission, or story content — enforces the 5-step narrative coherence check: lore validation, conflict detection, quest registry, and contradiction prevention. Triggers: coherence check, lore validation, quest registry, narrative consistency.
+ description: Checks a quest, mission or story beat against the world-lore document and the quest registry before it is written, then records it. Use when adding or changing any quest or story beat in a game that keeps world lore, so the new content does not contradict lore, double-book an NPC or inflate rewards.
---
# Quest Narrative Coherence
- ## Purpose
-
- Standalone enforcement skill: ensures every quest, mission, or story beat is consistent with existing world lore, prior quests, and active story arcs. No orphan quests. Ever.
-
- ## When to Use
-
- Trigger: quest creation, mission design, story beat, narrative content, new quest, quest writing, lore check, narrative consistency, story coherence
-
- MANDATORY: This skill must be read BEFORE `quest-mission-design`, `worldbuilding`, `story-structure-game`, or `character-design-narrative` when creating any narrative content.
-
- ## Prerequisites
-
- None — this is a foundational enforcement skill.
-
- ## Core Principles (cite Ken Levine: "world-as-story", Hidetaka Miyazaki: "environmental storytelling")
-
- 1. Every quest must reference at least one previously established lore element
- 2. No quest can contradict established world history or character motivations
- 3. Quest rewards must be consistent with the game economy (cross-ref `game-economy-design`)
- 4. Characters in quests must match their established personality and arc
- 5. Locations must exist in the world map or be explicitly introduced
- 6. Faction involvement must respect existing faction relationships
- 7. Quest difficulty must fit the intended progression curve
- 8. Temporal consistency — events must respect the world's timeline
-
- ## Step-by-Step Instructions — The 5-Step Coherence Check
-
- ### MANDATORY BEFORE WRITING ANY QUEST:
-
- **Step 1: Load Current World State**
-
- Read `world-lore.md` (or equivalent lore document) to understand:
-
- - Established factions, their relationships, and current state
- - Major characters and their last known status
- - World geography and accessible locations
- - Active conflicts, alliances, and treaties
- - Timeline of significant events
-
- **Step 2: Check Quest Registry**
-
- Read `quest-registry.md` to understand:
-
- - All existing quests and their status (active, completed, planned)
- - Quest chains and dependencies
- - Which NPCs are already involved in quests
- - Which locations are already quest hubs
- - Reward amounts already distributed (to prevent economy inflation)
-
- **Step 3: Validate Against Existing Content**
-
- Before writing the quest, verify:
-
- - [ ] No faction/character/location conflicts with existing quests
- - [ ] No contradictions with established lore
- - [ ] Referenced characters are alive and available
- - [ ] Referenced locations exist and are accessible
- - [ ] Reward scale is consistent with existing economy
- - [ ] Difficulty fits the progression curve
-
- **Step 4: Reference Existing Lore**
-
- The quest MUST:
-
- - Reference at least one established lore element (character, event, location, faction)
- - Build upon or advance at least one existing narrative thread
- - Not introduce entirely disconnected storylines without world-building justification
+ This skill owns the coherence check, the quest registry format and the world-lore sections. `quest-mission-design` and the `game-quest` command apply it and do not restate it.
- **Step 5: Register the Quest**
+ The registry is the only record of which NPCs are busy, which locations are hubs and how much reward the game has issued. A quest written without reading it contradicts something. Reject a quest that skipped the check.
- After creating the quest, add it to `quest-registry.md` with:
+ Files, in the game project:
- - Quest ID, name, and brief description
- - NPCs involved
- - Locations used
- - Factions affected
- - Rewards given
- - Prerequisites (other quests that must be complete)
- - Story arc it belongs to
+ - `docs/world-lore.md`: the world as established. Copy `templates/world-lore.md` when the file does not exist. Read it when you need the section list.
+ - `docs/quest-registry.md`: every quest, by status. Copy `templates/quest-registry.md` when the file does not exist. Read it when you need the column list.
+ - `templates/coherence-checklist.md`: copy it once per quest and tick it as you go.
- > An AI agent that skips this 5-step check has produced **invalid output**. The quest must be rejected.
+ ## The five-step check
- ## Code Examples
+ 1. **Load the world.** Read `docs/world-lore.md`. Note the factions and how they relate, the characters and their status, the locations, the active conflicts and the timeline. If the file is missing, stop and create it from the template first.
+ 2. **Load the registry.** Read `docs/quest-registry.md`. Note the NPCs already giving quests, the locations already used as hubs, the rewards already issued (the Economy Impact Log), the chains and the arcs.
+ 3. **Validate.** Tick each item or flag it:
+ - No faction, character or location clashes with another quest.
+ - No contradiction with lore, including character motives and the timeline.
+ - Every NPC in the quest is alive and free. One NPC cannot give two quests in two places.
+ - Every location exists, or the quest introduces it and says so.
+ - Faction involvement fits current faction relations.
+ - Rewards fit the economy and the quests already in the registry (`game-economy-design`).
+ - Difficulty fits the progression curve.
+ 4. **Anchor.** The quest names at least one established lore element (character, faction, location or event) and advances at least one existing thread. A new element needs a reason in the world, and an entry in `docs/world-lore.md`.
+ 5. **Register.** Append one row to the Active Quests table in `docs/quest-registry.md`. Use a Planned row while the quest is a draft. Fill every column. Append one row to the Economy Impact Log. When a quest completes, move its row to Completed and write its world consequence (a death, a changed faction relation) into `docs/world-lore.md`.
- Reference `templates/` for registry format and validation checklist:
+ If step 3 flags anything, stop. Describe the conflict, propose a fix and wait for the user.
- - `templates/world-lore.md` — empty world lore document with required sections
- - `templates/quest-registry.md` — empty quest registry with required fields
- - `templates/coherence-checklist.md` — per-quest validation checklist
+ ## Registry columns
- ## Cross-References
+ Every quest table (Active, Completed, Planned) uses these columns, in this order:
- - `quest-mission-design` — uses this skill as prerequisite
- - `worldbuilding` — provides the lore this skill validates against
- - `character-design-narrative` — character consistency checks
- - `story-structure-game` — narrative arc alignment
- - `game-economy-design` — reward consistency
+ `Quest ID | Name | Type | Quest Giver NPC | Primary Location | Factions Affected | Rewards Summary | Prerequisites | Story Arc`
- ## Pitfalls & Anti-Patterns
+ `Type` takes one value from the type list in `quest-mission-design`. The table a row sits in (Active, Completed, Planned) is its status, so there is no Status column.
- - **"Cool quest, no context"** — writing a quest because it sounds fun without checking if it fits the world
- - **"Lore amnesia"** — forgetting what was established and contradicting it
- - **"Economy inflation"** — giving rewards that break the game economy
- - **"Character assassination"** — making a character act against their established personality
- - **"Orphan quest"** — quest that connects to nothing and advances no narrative
- - **"Timeline paradox"** — events that can't coexist chronologically
+ The Economy Impact Log is a separate table: `Quest ID | Currency Given | Items Given | Estimated Player Level`.
- ## Designer Philosophy
+ ## World-lore sections
- **Ken Levine** (BioShock): "The world IS the story." Every quest must feel like a natural part of the world, not a gameplay task glued onto it. If a quest doesn't make the world feel more real, it shouldn't exist.
+ `docs/world-lore.md` has these sections, in this order: World Overview, Factions, Locations, Characters / Notable NPCs, History / Timeline, Active Conflicts, Rules and Constraints. Step 1 reads all of them.
- **Hidetaka Miyazaki** (Dark Souls, Elden Ring): Environmental storytelling means every element tells a story. Quests should reveal world history, not just provide objectives. Cryptic doesn't mean incoherent — every mystery should have a consistent answer in the lore.
+ ## Pitfalls
- **Hideo Kojima** (Metal Gear): Meta-awareness of the player's role. Quests can acknowledge the nature of the game world without breaking immersion, but they must always respect internal logic.
+ - Writing a quest because it sounds fun, without a lore anchor (orphan quest).
+ - Forgetting what is established and contradicting it.
+ - Making a character act against their established motive.
+ - Rewards that break the economy.
+ - Events that cannot coexist in time.
+ - A world whose own logic contradicts itself. Keep the world's rules consistent from quest to quest.
- ## Sources
+ ## Related
- - "Building Worlds" — GDC 2019 Ken Levine
- - "Designing Dark Souls" — GDC 2012 Hidetaka Miyazaki
- - "The Art of Game Design" — Jesse Schell, Chapter on World Building
- - "Narrative Design for Indie Games" — GDC 2020
+ - `references/sources.md`: read when you need the book support for this skill.
+ - `quest-mission-design`: type list, objective trees, rewards. Read it after this check passes.
+ - `worldbuilding`: creates the lore this check reads.
+ - `character-design-narrative`: character motives for step 3.
+ - `story-structure-game`: arc alignment for step 4.
+ - `game-economy-design`: reward scale for step 3.