game-quest · diff

git:20261114.3ad6f18 to git:20261114.81815b5

43 added, 68 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: game-quest
- description: Designs a single quest end-to-end — coherence check, objective tree, quest brief, and registry entry. Extract the quest name from the user's message. Requires docs/world-lore.md and docs/quest-registry.md.
+ description: Designs one quest from coherence check to objective tree, quest brief and registry entry, taking the quest name from `$ARGUMENTS` or the user's message. Use when you need a single new quest that fits the world lore, the existing quests and the economy.
argument-hint: quest name (e.g. "The Merchant's Debt", "Rescue at the Crossroads")
---
- # Game Quest — Quest Designer
+ # Game Quest: Quest Designer
## Requires
- `quest-narrative-coherence`
- `quest-mission-design`
+ - `game-economy-design`
- Before you apply a skill listed here, check that it is installed. If it is not, name it, give this install line, and stop: `bunx skills add fcsouza/agent-skills --skill <name>`.
+ Before you apply a skill listed here, check that it appears in your available skills list. If it is not, name it, give this install line, and stop: `bunx skills add fcsouza/agent-skills --skill <name>`.
## Prerequisites
- - Requires `docs/world-lore.md` in the project (run the `game-architect` skill (`/game-architect`) first, or create it manually)
+ - `docs/world-lore.md` in the project. Run `/game-architect` first, or create it by hand.
---
- ## Phase 0 — Context Load (silent, mandatory before producing any output)
+ ## Phase 0: Context load (silent, before any output)
Input: `$ARGUMENTS`. If it is empty, take it from the user's message. It holds the quest name or concept.
- Execute in this exact order:
-
- 1. READ `docs/world-lore.md`
- - If it does NOT exist: output `⛔ Cannot proceed. docs/world-lore.md not found. Run the game-architect skill (/game-architect) first to generate the world foundation, or create docs/world-lore.md manually.` and stop.
- 2. READ `docs/quest-registry.md`
- - If it does NOT exist: create it from the registry template of the `quest-narrative-coherence` skill (templates/quest-registry.md in that skill). Keep its headers. New quests go in the table under the `## Active Quests` heading.
- 3. Apply the `quest-narrative-coherence` skill
- 4. Apply the `quest-mission-design` skill
- 5. READ `docs/mvp-first-draft.md` if it exists (for economy and progression context — optional)
-
- ## Phase 1 — Coherence Check (mandatory — cannot be skipped under any circumstances)
-
- Apply the `quest-narrative-coherence` skill to the quest name. Phase 0 already loaded the world and the registry (its steps 1 and 2). Run its steps 3 and 4 and draft the registry row for step 5. Write the row in Phase 5, after the quest is final.
-
- Output a **Coherence Report** BEFORE proceeding to Phase 2:
+ 1. Read `docs/world-lore.md`. If it does not exist, output "Stopped: docs/world-lore.md not found. Run `/game-architect` to generate the world foundation, or create the file by hand." and stop.
+ 2. Read `docs/quest-registry.md`. If it does not exist, create it from the registry template of the `quest-narrative-coherence` skill (templates/quest-registry.md in that skill). Keep its headers. New quests go in the table under `## Active Quests`.
+ 3. Apply the `quest-narrative-coherence` skill.
+ 4. Apply the `quest-mission-design` skill.
+ 5. Read `docs/mvp-first-draft.md` if it exists. It gives economy and progression context.
- ```
- ## Coherence Report for: [quest name]
- ✅/🔴 Faction references: [valid — references [faction] | flagged — [issue]]
- ✅/🔴 Character availability: [valid | flagged — [character] is already in [quest]]
- ✅/🔴 Location exists: [valid — [location] confirmed in world-lore | flagged — [issue]]
- ✅/🔴 No timeline paradox: [valid | flagged — [issue]]
- ✅/🔴 Economy consistency: [valid — rewards within range | flagged — [issue]]
- ```
+ ## Phase 1: Coherence check (never skip)
- If ANY item is flagged 🔴: **STOP**. Describe the conflict clearly, propose a specific resolution, and wait for user confirmation before continuing. Do not proceed to Phase 2 until all conflicts are resolved.
+ A quest that skipped the check can contradict the lore or double-book an NPC, so reject it. Apply the `quest-narrative-coherence` skill to the quest name. Phase 0 already did its steps 1 and 2. Run its steps 3 and 4 and draft the registry row for step 5. Write the row in Phase 5, after the quest is final.
- ## Phase 2 — Quest Type Selection
+ Output a Coherence Report before Phase 2. Use the coherence checklist template of the `quest-narrative-coherence` skill (templates/coherence-checklist.md in that skill). It lists every item of step 3 and the anchor check of step 4. Mark each item "Valid" or "Conflict: [issue]".
- Based on the quest name/concept and world context, recommend one type from the list in `quest-mission-design`: `main`, `faction`, `side`, `chain`, `repeatable`, `discovery`, `social`, `timed`, `collection`, `escort`.
+ If any item is a conflict, stop. Describe the conflict, propose a specific fix, and wait for the user to confirm. Do not start Phase 2 until every conflict is resolved.
- Ask **at most 1 question** if the type is genuinely ambiguous. If the context makes it clear, proceed without asking.
+ ## Phase 2: Quest type
- ## Phase 3 — Objective Tree
+ Recommend one type from the list in `quest-mission-design`, based on the quest name and the world context. Ask at most one question, and only if the type is truly ambiguous.
- Apply the rules in `quest-mission-design`:
- - Main and faction quests have at least 2 ways to complete them
- - No fetch quests without narrative purpose
+ ## Phase 3: Objective tree
- Output a Mermaid flow diagram showing the objective tree:
+ Apply the rules in `quest-mission-design`. Output a Mermaid flow diagram of the objective tree:
```mermaid
flowchart TD
A["Objective 1: [description]"] --> B{"Choice Point"}
B --> C["Path A: [description]"]
B --> D["Path B: [description]"]
C --> E["Outcome A: [world consequence]"]
D --> F["Outcome B: [world consequence]"]
```
- Include sub-objectives (required vs optional bonus) where appropriate. If the quest is a simple `side` or `discovery` quest, a linear flow is acceptable — but note if it has no branching and explain why it's acceptable given the type.
+ Mark sub-objectives as required or optional bonus. A linear flow is fine for a simple `side` or `discovery` quest. Say that it has no branching and why that suits the type.
- ## Phase 4 — Quest Brief
+ ## Phase 4: Quest brief
- Output the complete quest brief in GDD section format:
+ Output the full brief in GDD section format:
```markdown
## Quest: [name]
**Type:** [from Phase 2]
- **Hook:** [1-sentence player-facing description — what draws them in]
+ **Hook:** [one player-facing sentence: what draws them in]
**Quest Giver NPC:** [name, faction, location where they can be found]
**Primary Location:** [where the quest takes place]
### Objectives
- [numbered list with branching paths — mirror the Mermaid diagram above]
+ [numbered list with branching paths, mirroring the Mermaid diagram]
1. [Required objective]
- 1a. [Choice A description + consequence]
- 1b. [Choice B description + consequence]
- 2. [Final objective — varies based on choice above]
+ 2. [Final objective, varies with the choice above]
### Rewards
- - [Currency type]: [amount] — [rationale: "consistent with [quest type] rewards in registry" OR "unverified — cross-check with game economy design when defined"]
+ - [Currency type]: [amount] - [rationale: "consistent with [quest type] rewards in registry" OR "unverified - cross-check with game economy design when defined"]
- [Items, if any]
- - [Relationship/reputation changes, if applicable]
+ - [Relationship or reputation changes, if any]
### World Consequences
- [What changes in the world after completion — NPC status, faction relationships, locations, lore]
+ [What changes after completion: NPC status, faction relations, locations, lore]
### Prerequisites
- [Other quests that must be complete first, or "None"]
+ [Quests that must be complete first, or "None"]
### Failure State
[What happens if the player abandons or fails the quest]
### Economy Note
- [Reward amount cross-referenced against mvp-first-draft.md economy params OR flagged as: "⚠️ Economy not yet defined — validate rewards when running the game-balance skill (/game-balance)"]
+ [Reward amount checked against the economy parameters in mvp-first-draft.md, or: "Economy not yet defined. Validate rewards when you run `/game-balance`."]
```
- ## Phase 5 — Register Quest
-
- Append the completed quest as a new row at the end of the table under the `## Active Quests` heading of `docs/quest-registry.md`, in the registry format. Do not add it to the Completed Quests or Planned Quests tables. Then append one row to the `## Economy Impact Log` table (`Quest ID | Currency Given | Items Given | Estimated Player Level`). The quest row:
+ ## Phase 5: Register the quest
- ```markdown
- | [QID] | [Quest Name] | [Type] | [Giver NPC] | [Location] | [Factions Affected] | [Rewards Summary] | [Prerequisites] | [Story Arc] |
- ```
+ Append the finished quest as a new row to the Active Quests table in `docs/quest-registry.md`, and one row to the Economy Impact Log, in the format `quest-narrative-coherence` owns. Do not add it to Completed Quests or Planned Quests.
- After writing the entry, output:
+ Then output: "Done: quest registered in docs/quest-registry.md".
- ```
- ✅ Quest registered in docs/quest-registry.md
- ```
+ If the quest introduces an NPC or location that `docs/world-lore.md` lacks, output:
- If the quest introduces any NPC or location not currently in `docs/world-lore.md`:
```
- ⚠️ New [NPC/Location] introduced: [name]
- → Run the game-lore skill (/game-lore) with `npc [name]` or `location [name]` to add them to world-lore.md
+ New [NPC/Location] introduced: [name]
+ Run `/game-lore` with `npc [name]` or `location [name]` to add it to world-lore.md
```
---
- ## Hard Constraints
+ ## Hard constraints
- 1. **Never skip Phase 1** — a quest without the coherence check is invalid output
- 2. **Never create an orphan quest** — must reference at least one existing lore element
- 3. **Never invent a new faction** without flagging it and getting user confirmation
- 4. **Rewards must be grounded** — either cross-referenced against economy params or explicitly flagged as unverified
- 5. **At least 2 completion paths** for `main` and `faction` quests only
- 6. **Register every quest** — Phase 5 is not optional
+ 1. Never skip Phase 1. The coherence check is what keeps the quest from contradicting the lore.
+ 2. Never create an orphan quest. It must reference at least one existing lore element.
+ 3. Never invent a new faction without flagging it and getting the user's confirmation.
+ 4. Ground every reward: check it against the economy parameters (`game-economy-design`) or mark it unverified.
+ 5. Require at least two completion paths for `main` and `faction` quests only.
+ 6. Register every quest. Phase 5 is not optional, because the registry is how later quests see this one.