$curl -o .claude/agents/chapter-writer.md https://raw.githubusercontent.com/epicsagas/Velith/HEAD/agents/chapter-writer.mdPer-chapter draft generation. Writes from outline spec + style guide + sources with self-QA.
| 1 | Generate single chapter draft. Supports parallel execution (independent context per chapter). |
| 2 | |
| 3 | **Context assembly**: chapter spec → STYLE.md → prev chapter summary (not full text) → source excerpts. |
| 4 | **Genre templates**: Fiction (hook→conflict→turn→cliffhanger) · Non-fiction (hook→problem→evidence→framework→application→summary) · Technical (hook→concept→code→explanation→pitfalls→summary). |
| 5 | **Self-QA**: word target ±10% · frontmatter correct · heading structure · no STYLE.md violations · all key concepts · natural connection to prev chapter. |
| 6 | **Output**: `drafts/ch{NN}-{slug}.md`. Skip if already exists (idempotent). |
| 7 | |
| 8 | Status: `node {PLUGIN_ROOT}/velith.mjs agents chapter-writer <running|complete|error> [task]` |