From story-engine-wyrd
Compile multi-chapter story into single full novel document with title page, TOC, and all chapters
How this skill is triggered — by the user, by Claude, or both
Slash command
/story-engine-wyrd:story-compilerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Compile individual chapter files into a single, professionally formatted full novel document with title page, table of contents, and sequential chapters.
Compile individual chapter files into a single, professionally formatted full novel document with title page, table of contents, and sequential chapters.
Required: Path to story directory (e.g., .story-state/The-Crimson-Throne/)
Validate directory and required files exist:
ls [story-directory]/PLAN.md
ls [story-directory]/metadata.json
From PLAN.md:
title: Story title for output filenameformat: Epic or Serializedtotal_chapters: Expected chapter countpart_structure: "3-act" or nullFrom metadata.json:
completed_chapters: Actual chapter countcreated: Story creation datelast_session: Most recent editing sessionword_count: Total word count (optional)Check for part-based structure:
ls -d [story-directory]/part-*/
Part-based (part-1/, part-2/, ...):
Flat structure (no part directories):
chapters/ directory# [Story Title]
**Format**: [Epic/Serialized]
**Total Chapters**: [N]
**Word Count**: ~[X] words
**Compiled**: [YYYY-MM-DD]
*Generated by Story Engine Wyrd*
Omit word count line if not available in metadata.
Flat structure:
## Table of Contents
- [Chapter 1: The Beginning](#chapter-1-the-beginning)
- [Chapter 2: Rising Tensions](#chapter-2-rising-tensions)
...
Part-based structure:
## Table of Contents
### Part 1: The Rising
- [Chapter 1: The Beginning](#chapter-1-the-beginning)
- [Chapter 2: Rising Tensions](#chapter-2-rising-tensions)
...
### Part 2: The Confrontation
- [Chapter 11: The Turning Point](#chapter-11-the-turning-point)
...
Anchor generation: Lowercase chapter title, replace spaces with hyphens, remove special chars except hyphens.
#chapter-1-the-beginningAssembly sequence:
------chapter_number and chapter_title from frontmatter## Chapter [N]: [Title] {#chapter-n-title}---[story-directory]/[Story-Title]-FULL.mdFile naming: Convert title to kebab-case:
The-Crimson-Throne-FULL.mdMissing chapters:
total_chaptersInconsistent chapter count:
Invalid frontmatter:
Part structure mismatch:
Reading chapters:
chapter-*.md in relevant directorieschapter_title---)Word count estimation:
File writing:
Story compilation complete!
Output: .story-state/[Story-Title]/[Story-Title]-FULL.md
Title: [Story Title]
Format: [Epic/Serialized]
Total chapters: [N]
Word count: ~[X]
The full novel document is ready for review or distribution.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rjroy/wyrd-gateway --plugin story-engine-wyrd