Agent skill
narrative-writing
Extract narrative structure entities from text. Use when analyzing stories, chapters, acts, episodes, prologues, epilogues, plot branches, campaigns, events, and story arc progression.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/narrative-writing
SKILL.md
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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?