Novel Creator
Transform story ideas into complete novels with EPUB output through an interactive RPG-style workflow.
Workflow
[Story Concept] → [Interactive RPG] → [Writing Plan] → [Chapters] → [EPUB]
Phase 1 Phase 2 Phase 3 Phase 4 Phase 5
Phase 1: Story Setup
Use AskUserQuestion tool to gather:
| Element | Options | Default |
|---|---|---|
| Genre | 穿越/Fantasy/Romance/Mystery | 穿越 |
| Setting | Ancient palace/Modern/Fantasy world | Palace |
| Protagonist | Name, background, abilities | - |
| Goal | What to achieve | Survive and thrive |
| Length | Chapters × words | 10 × 5000 |
Load character personas from references/personas.md based on setting.
Phase 2: Interactive RPG
Run 10-15 decision points where user makes choices via AskUserQuestion:
[Vivid scene description]
↓
AskUserQuestion with 3-4 meaningful choices
↓
[Consequence + next scene]
Required elements to weave in:
- Tech/Knowledge: Modern knowledge as "magic" (phone→照妖镜, chemistry→炼丹)
- Fantasy: Special abilities (灵觉), artifacts (蓄雷珠), prophecies
- Romance: First meeting → mutual help → feelings → confession
Track throughout:
- Key plot points and decisions
- Relationship development stages
- Items and abilities acquired
- Foreshadowing seeds planted
Phase 3: Writing Plan
Create task_plan.md with:
markdown1# Writing Plan: [Title] 2 3## Characters 4| Name | Role | Traits | Arc | 5|------|------|--------|-----| 6 7## Foreshadowing Matrix 8| Element | Ch.1 Hint | Development | Payoff | 9|---------|-----------|-------------|--------| 10| Tech | [seed] | Ch.4 [use] | Ch.9 [climax] | 11| Fantasy | [seed] | Ch.6 [reveal] | Ch.9 [power] | 12| Romance | [meeting] | Ch.5 [feelings] | Ch.10 [love] | 13 14## Poetry Pairings (Chinese novels) 15| Ch | Ancient Poetry | Modern Lyrics | Theme | 16|----|----------------|---------------|-------| 17See references/poetry_pairs.md for suggestions. 18 19## Chapter Outline 20- [ ] Ch.1: [title] - [key scenes, ~5000 words] 21... 22 23## Progress 24| Ch | Status | Words | 25|----|--------|-------|
Phase 4: Chapter Writing
Write each chapter (~4000-5500 words) following this structure:
markdown1# 第X章:[押韵标题] 2 3> *[Ancient poetry quote]* 4> *——[Author]《[Title]》* 5 6--- 7 8## 一 9[Scene 1: Setting + action] 10 11## 二 12[Scene 2: Dialogue + conflict] 13 14## 三 15[Scene 3: Resolution + hook] 16 17--- 18 19(第X章完) 20 21--- 22 23> *"[Modern lyrics quote]"* 24> *——《[Song]》*
Writing checklist:
- Vivid sensory descriptions (sight, sound, smell, touch)
- Dialogue with subtext (what's said vs. what's meant)
- Internal monologue showing modern perspective
- Proper pacing (action → dialogue → reflection)
- Foreshadowing elements per plan
- Chapter-end hook
File naming: [##]_[章节标题].md (e.g., 01_梦回千年惊鸿起.md)
Update task_plan.md progress after each chapter.
Phase 5: EPUB Generation
Run:
bash1python3 scripts/create_epub.py
Script auto-detects chapter files in current directory and generates:
- Cover page with title/subtitle/author
- Introduction page
- All chapters with proper formatting
- Table of contents
- Chinese typography CSS
Output: [书名].epub
Quick Commands
| User says | Action |
|---|---|
| "写一部穿越小说" | Full workflow Phase 1-5 |
| "根据大纲写小说" + outline | Phase 3-5 |
| "把章节转成epub" | Phase 5 only |
| "继续写下一章" | Resume Phase 4 |
Resources
scripts/create_epub.py- EPUB generatorreferences/personas.md- Character templates by settingreferences/poetry_pairs.md- Poetry and lyrics pairings