$npx -y skills add epicsagas/Velith --skill book-draftPhase 3: Drafting. Plan-Then-Execute chapter generation with parallel writing and continuity validation.
| 1 | # Phase 3: Drafting |
| 2 | |
| 3 | **Plan-Then-Execute**: pass chapter spec + previous chapter summary + relevant STYLE.md rules + source refs. Omit full prior chapter text, other chapters, full outline. |
| 4 | |
| 5 | 1. **Idempotency**: skip existing chapters meeting min line count |
| 6 | 2. **Context build**: extract spec → prev summary → STYLE rules → source refs |
| 7 | 3. **Write**: `ch{NN}-{slug}.md` with frontmatter (chapter, title, word_target, status, dates) |
| 8 | 4. **QA**: word count ±10% · frontmatter present · STYLE rules · heading H1→H2→H3 · hook matches spec |
| 9 | |
| 10 | **Parallel**: up to 4 concurrent chapters when prereqs done, no mutual refs. |
| 11 | |
| 12 | **Continuity** (every 3-5 chapters): term consistency, logic flow, character/code compat, reference integrity. |
| 13 | |
| 14 | Gate: all chapters exist, ±10% word target, continuity passed. |
| 15 | |
| 16 | |
| 17 | ## Post-Completion |
| 18 | |
| 19 | Update the project dashboard status: |
| 20 | |
| 21 | ```bash |
| 22 | node {PLUGIN_ROOT}/velith.mjs scan [project-dir] --plugin-root={PLUGIN_ROOT} |
| 23 | ``` |