narrative-writing
Domain skill for narrative structure extraction.
Entity Types
| Type |
Description |
story |
Main narrative container |
chapter |
Individual story chapter |
act |
Major story division (three-act structure) |
episode |
Story episode or subdivision |
prologue |
Introduction, backstory setup |
epilogue |
Conclusion, aftermath |
plot_branch |
Story branch or divergence |
branch_point |
Decision point in narrative |
alternate_reality |
Alternative timeline or reality |
consequence |
Outcome of a decision or event |
ending |
Story ending variant |
campaign |
Multi-story campaign container |
event |
Narrative event or incident |
event_chain |
Sequence of linked events |
Extraction Rules
- Identify narrative structure: Is this a new story or continuation? What act/chapter/episode?
- Extract hierarchy: Stories contain acts, acts contain chapters, chapters contain episodes
- Track branching: Decision points, alternative paths, multiple outcomes
- Link events: Events chain together; track cause-and-effect sequences
- Note pacing: Where acts break, where tension rises/falls
Output Format
Write to entities/narrative.json:
{
"stories": [
{
"id": 1,
"world_id": 1,
"name": "The Shadow War",
"description": "...",
"story_type": "linear",
"content": "...",
"choice_ids": [],
"connected_world_ids": [],
"is_active": true,
"created_at": "2026-02-14T10:00:00+00:00",
"updated_at": "2026-02-14T10:00:00+00:00",
"version": 1
}
],
"events": [
{
"id": 2,
"world_id": 1,
"name": "The Great Battle",
"description": "...",
"start_date": "2026-02-14T10:00:00+00:00",
"end_date": null,
"outcome": "ongoing",
"participant_ids": [3],
"created_at": "2026-02-14T10:00:00+00:00",
"updated_at": "2026-02-14T10:00:00+00:00",
"version": 1
}
],
"next_id": 3
}
Key Considerations
- Continuity: Chapter numbers and story references must be consistent
- Hierarchy: All chapters reference their story; episodes reference chapters
- Branching: Capture all possible narrative paths at branch points
- Events own characters by reference: Characters mentioned in events must appear in
participant_ids.
1---2name: narrative-writing3description: Extract narrative structure entities from text. Use when analyzing stories, chapters, acts, episodes, prologues, epilogues, plot branches, campaigns, events, and story arc progression.4---5# narrative-writing
6
7Domain skill for narrative structure extraction.
8
9## Entity Types
10
11| Type | Description |
12|------|-------------|
13| `story` | Main narrative container |
14| `chapter` | Individual story chapter |
15| `act` | Major story division (three-act structure) |
16| `episode` | Story episode or subdivision |
17| `prologue` | Introduction, backstory setup |
18| `epilogue` | Conclusion, aftermath |
19| `plot_branch` | Story branch or divergence |
20| `branch_point` | Decision point in narrative |
21| `alternate_reality` | Alternative timeline or reality |
22| `consequence` | Outcome of a decision or event |
23| `ending` | Story ending variant |
24| `campaign` | Multi-story campaign container |
25| `event` | Narrative event or incident |
26| `event_chain` | Sequence of linked events |
27
28## Extraction Rules
29
301. **Identify narrative structure**: Is this a new story or continuation? What act/chapter/episode?
312. **Extract hierarchy**: Stories contain acts, acts contain chapters, chapters contain episodes
323. **Track branching**: Decision points, alternative paths, multiple outcomes
334. **Link events**: Events chain together; track cause-and-effect sequences
345. **Note pacing**: Where acts break, where tension rises/falls
35
36## Output Format
37
38Write to `entities/narrative.json`:
39
40```json
41{
42 "stories": [
43 {
44 "id": 1,
45 "world_id": 1,
46 "name": "The Shadow War",
47 "description": "...",
48 "story_type": "linear",
49 "content": "...",
50 "choice_ids": [],
51 "connected_world_ids": [],
52 "is_active": true,
53 "created_at": "2026-02-14T10:00:00+00:00",
54 "updated_at": "2026-02-14T10:00:00+00:00",
55 "version": 1
56 }
57 ],
58 "events": [
59 {
60 "id": 2,
61 "world_id": 1,
62 "name": "The Great Battle",
63 "description": "...",
64 "start_date": "2026-02-14T10:00:00+00:00",
65 "end_date": null,
66 "outcome": "ongoing",
67 "participant_ids": [3],
68 "created_at": "2026-02-14T10:00:00+00:00",
69 "updated_at": "2026-02-14T10:00:00+00:00",
70 "version": 1
71 }
72 ],
73 "next_id": 3
74}
75```
76
77## Key Considerations
78
79- **Continuity**: Chapter numbers and story references must be consistent
80- **Hierarchy**: All chapters reference their story; episodes reference chapters
81- **Branching**: Capture all possible narrative paths at branch points
82- **Events own characters by reference**: Characters mentioned in events must appear in `participant_ids`.