Velith — AI-Native Publishing System
Overview
Build books like software. 6-phase pipeline from blank page to published book, with dedicated skills, agents, and quality gates at every stage.
Phase 0: Onboarding → Phase 1: Ideation → Phase 2: Outlining → Phase 3: Drafting → Phase 4: Editing → Phase 5: Publishing
Genre Support
| Genre |
Key Differences |
Reference File |
| Fiction |
Plot structure (Save the Cat!/Snowflake), character bible, scene beats |
book-fiction |
| Non-Fiction |
Problem-solution structure, persona-driven, evidence hierarchy |
book-nonfiction |
| Technical |
Concept progression (novice→expert), code examples, diagrams, API docs |
book-technical |
| Screenplay |
3-act + sequence method, dialogue/action, A/B story |
book-screenplay |
| Poetry |
Form-driven (sonnet/haiku/free verse), imagery systems, collection arc |
book-poetry |
| Game |
Quest trees, branching dialogue, lore bible, flag system |
book-game |
| Academic |
IMRAD, literature review, argument chains, citation practices |
book-academic |
| Custom |
Compose patterns from any genre via book-genre-creator |
book-genre-creator |
Phase Router
When /velith is invoked without arguments, detect current project state and route:
- No project exists → Run Phase 0 (Onboarding)
- Project exists, no outline → Run Phase 1 (Ideation)
- Outline exists, no drafts → Run Phase 2 (Outlining) validation, then Phase 3
- Drafts exist, incomplete → Continue Phase 3 (Drafting)
- All drafts complete → Run Phase 4 (Editing)
- Editing complete → Run Phase 5 (Publishing)
Detection: check for drafts/ directory, outline.md, STYLE.md, PRD.md in current project.
Phase Details
Phase 0: Onboarding (/velith onboard)
- Genre selection (fiction/non-fiction/technical/screenplay/poetry/game/academic/custom)
- Target audience definition
- Language selection
- Project directory setup
- Source material scan (existing notes, articles, code)
- Generate
STYLE.md (voice, tone, conventions)
- Generate
PRD.md (book requirements)
Phase 1: Ideation (/velith ideate)
- Market research (competing titles, gaps)
- Core concept distillation (elevator pitch)
- Unique value proposition
- Scope definition (chapters, word count, timeline)
- Save to
ideation.md
Phase 2: Outlining (/velith outline)
- Generate full chapter outline with dependencies
- Per-chapter specs: title, hook, key concepts, word target, difficulty level
- Cross-chapter reference map
- Save to
outline.md
- Agent:
book-architect validates structure
Phase 3: Drafting (/velith draft)
- Plan-Then-Execute pattern: chapter-by-chapter generation
- Each chapter gets: outline context + previous chapter summary + style guide
- Parallel chapter generation via subagents (max 4 concurrent)
- Agent:
scene-generator decomposes chapters into scenes first (fiction only)
- Agent:
chapter-writer generates each chapter (from scenes if available)
- Agent:
continuity-editor checks cross-chapter consistency
- Quality gate: line count, frontmatter, style compliance
Phase 4: Editing (/velith edit)
- 5-stage editing pipeline:
- Editorial Assessment (macro structure)
- Developmental Edit (flow, pacing, gaps)
- Line Edit (sentence-level clarity)
- Copy Edit (grammar, consistency)
- Proofread (final typos)
- Agent:
style-doctor enforces voice consistency
- Generate editing report with severity-ranked issues
Phase 5: Publishing (/book-publish)
- Format conversion (EPUB/PDF/MOBI/TXT/MD via Pandoc + Calibre)
- Agent:
cover-designer → concepts + image prompts
- Agent:
illustrator → interior illustration plan (optional, after drafting)
- Agent:
marketing-expert → launch strategy
- Metadata, title candidates, KDP checklist
Interior Illustrations (/book-illustrate)
- Can run after Phase 3 (Drafting) or during Phase 5 (Publishing)
- Agent:
illustrator → scene extraction, style bible, prompts
- Produces illustration plan with placement metadata
- Integrates image references into chapter drafts
Project Structure
{project-dir}/
├── PRD.md # Book requirements (Phase 0)
├── STYLE.md # Voice, tone, conventions (Phase 0)
├── ideation.md # Ideas, market research (Phase 1)
├── outline.md # Full chapter outline (Phase 2)
├── drafts/ # Chapter drafts (Phase 3)
│ ├── ch00-foreword.md
│ ├── ch01-xxx.md
│ └── ...
├── edits/ # Editing reports (Phase 4)
│ └── editorial-report.md
├── publish/ # Final outputs (Phase 5)
│ ├── book.epub
│ ├── book.pdf
│ └── metadata.yaml
└── sources/ # Source material references
Sub-Skills
Each phase has a dedicated skill in skills/book-{name}/SKILL.md:
| Skill |
Phase |
Description |
book-init |
0 |
Project setup, genre selection, STYLE.md + PRD.md |
book-ideation |
1 |
Market research, concept distillation, scope |
book-outline |
2 |
Chapter outline with dependencies and cross-references |
book-draft |
3 |
Plan-Then-Execute chapter generation |
book-edit |
4 |
5-stage editing pipeline |
book-publish |
5 |
EPUB/PDF/MOBI packaging, cover, marketing |
book-illustrate |
3-5 |
Interior illustrations, scene extraction, prompts |
book-status |
— |
Project status dashboard and web UI |
book-fiction |
— |
Fiction patterns (Save the Cat!, character bible) |
book-nonfiction |
— |
Non-fiction patterns (problem-solution, persona) |
book-technical |
— |
Technical book patterns (concept progression, code) |
book-screenplay |
— |
Screenplay patterns (3-act + sequence method, dialogue) |
book-poetry |
— |
Poetry patterns (form types, imagery systems, collection) |
book-game |
— |
Game scenario patterns (quest trees, branching, lore) |
book-academic |
— |
Academic patterns (IMRAD, lit review, argument chains) |
book-genre-creator |
— |
Meta-skill for genre selection and custom genre creation |
Agents
| Agent |
Role |
When |
book-architect |
Structure validation, outline generation |
Phase 2 |
chapter-writer |
Chapter draft generation |
Phase 3 |
continuity-editor |
Cross-chapter consistency check |
Phase 3-4 |
style-doctor |
Voice and tone consistency |
Phase 4 |
scene-generator |
Scene-level breakdown with GMC+RDD (fiction only) |
Phase 3, fiction |
cover-designer |
Cover concepts + image generation prompts |
Phase 5 |
illustrator |
Interior illustrations — scene extraction, style, prompts |
Phase 3-5 |
marketing-expert |
Reader personas, channel strategy, launch calendar |
Phase 5 |
Quality Gates
Each phase has mandatory completion criteria before proceeding:
| Phase |
Gate |
Evidence |
| 0 |
Project initialized |
PRD.md + STYLE.md exist |
| 1 |
Concept validated |
Elevator pitch + 3 competing titles analyzed |
| 2 |
Outline complete |
All chapters specified + cross-reference map |
| 3 |
Drafts complete |
All chapters meet word target + frontmatter |
| 4 |
Editing complete |
5-stage pipeline passed + <5 issues remaining |
| 5 |
Publish ready |
EPUB/PDF generated + metadata complete |
Integration with Existing Tools
- alcove: Search existing project docs as source material
- episteme: Validate technical content against knowledge graph
- discover: Run problem discovery for book concept
- council: Get multi-voice input on structure/outline decisions
1---2name: loom3description: AI-native publishing system: autonomous multi-phase workflows from ideation to export. Fiction, non-fiction, and technical books. Trigger: /velith or book-related requests.4---56# Velith — AI-Native Publishing System78## Overview910Build books like software. 6-phase pipeline from blank page to published book, with dedicated skills, agents, and quality gates at every stage.1112```13Phase 0: Onboarding → Phase 1: Ideation → Phase 2: Outlining → Phase 3: Drafting → Phase 4: Editing → Phase 5: Publishing14```1516## Genre Support1718| Genre | Key Differences | Reference File |19|-------|----------------|----------------|20| Fiction | Plot structure (Save the Cat!/Snowflake), character bible, scene beats | `book-fiction` |21| Non-Fiction | Problem-solution structure, persona-driven, evidence hierarchy | `book-nonfiction` |22| Technical | Concept progression (novice→expert), code examples, diagrams, API docs | `book-technical` |23| Screenplay | 3-act + sequence method, dialogue/action, A/B story | `book-screenplay` |24| Poetry | Form-driven (sonnet/haiku/free verse), imagery systems, collection arc | `book-poetry` |25| Game | Quest trees, branching dialogue, lore bible, flag system | `book-game` |26| Academic | IMRAD, literature review, argument chains, citation practices | `book-academic` |27| Custom | Compose patterns from any genre via `book-genre-creator` | `book-genre-creator` |2829## Phase Router3031When `/velith` is invoked without arguments, detect current project state and route:32331. **No project exists** → Run Phase 0 (Onboarding)342. **Project exists, no outline** → Run Phase 1 (Ideation)353. **Outline exists, no drafts** → Run Phase 2 (Outlining) validation, then Phase 3364. **Drafts exist, incomplete** → Continue Phase 3 (Drafting)375. **All drafts complete** → Run Phase 4 (Editing)386. **Editing complete** → Run Phase 5 (Publishing)3940Detection: check for `drafts/` directory, `outline.md`, `STYLE.md`, `PRD.md` in current project.4142## Phase Details4344### Phase 0: Onboarding (`/velith onboard`)45- Genre selection (fiction/non-fiction/technical/screenplay/poetry/game/academic/custom)46- Target audience definition47- Language selection48- Project directory setup49- Source material scan (existing notes, articles, code)50- Generate `STYLE.md` (voice, tone, conventions)51- Generate `PRD.md` (book requirements)5253### Phase 1: Ideation (`/velith ideate`)54- Market research (competing titles, gaps)55- Core concept distillation (elevator pitch)56- Unique value proposition57- Scope definition (chapters, word count, timeline)58- Save to `ideation.md`5960### Phase 2: Outlining (`/velith outline`)61- Generate full chapter outline with dependencies62- Per-chapter specs: title, hook, key concepts, word target, difficulty level63- Cross-chapter reference map64- Save to `outline.md`65- Agent: `book-architect` validates structure6667### Phase 3: Drafting (`/velith draft`)68- Plan-Then-Execute pattern: chapter-by-chapter generation69- Each chapter gets: outline context + previous chapter summary + style guide70- Parallel chapter generation via subagents (max 4 concurrent)71- Agent: `scene-generator` decomposes chapters into scenes first (fiction only)72- Agent: `chapter-writer` generates each chapter (from scenes if available)73- Agent: `continuity-editor` checks cross-chapter consistency74- Quality gate: line count, frontmatter, style compliance7576### Phase 4: Editing (`/velith edit`)77- 5-stage editing pipeline:78 1. Editorial Assessment (macro structure)79 2. Developmental Edit (flow, pacing, gaps)80 3. Line Edit (sentence-level clarity)81 4. Copy Edit (grammar, consistency)82 5. Proofread (final typos)83- Agent: `style-doctor` enforces voice consistency84- Generate editing report with severity-ranked issues8586### Phase 5: Publishing (`/book-publish`)87- Format conversion (EPUB/PDF/MOBI/TXT/MD via Pandoc + Calibre)88- Agent: `cover-designer` → concepts + image prompts89- Agent: `illustrator` → interior illustration plan (optional, after drafting)90- Agent: `marketing-expert` → launch strategy91- Metadata, title candidates, KDP checklist9293### Interior Illustrations (`/book-illustrate`)94- Can run after Phase 3 (Drafting) or during Phase 5 (Publishing)95- Agent: `illustrator` → scene extraction, style bible, prompts96- Produces illustration plan with placement metadata97- Integrates image references into chapter drafts9899## Project Structure100101```102{project-dir}/103├── PRD.md # Book requirements (Phase 0)104├── STYLE.md # Voice, tone, conventions (Phase 0)105├── ideation.md # Ideas, market research (Phase 1)106├── outline.md # Full chapter outline (Phase 2)107├── drafts/ # Chapter drafts (Phase 3)108│ ├── ch00-foreword.md109│ ├── ch01-xxx.md110│ └── ...111├── edits/ # Editing reports (Phase 4)112│ └── editorial-report.md113├── publish/ # Final outputs (Phase 5)114│ ├── book.epub115│ ├── book.pdf116│ └── metadata.yaml117└── sources/ # Source material references118```119120## Sub-Skills121122Each phase has a dedicated skill in `skills/book-{name}/SKILL.md`:123124| Skill | Phase | Description |125|-------|-------|-------------|126| `book-init` | 0 | Project setup, genre selection, STYLE.md + PRD.md |127| `book-ideation` | 1 | Market research, concept distillation, scope |128| `book-outline` | 2 | Chapter outline with dependencies and cross-references |129| `book-draft` | 3 | Plan-Then-Execute chapter generation |130| `book-edit` | 4 | 5-stage editing pipeline |131| `book-publish` | 5 | EPUB/PDF/MOBI packaging, cover, marketing |132| `book-illustrate` | 3-5 | Interior illustrations, scene extraction, prompts |133| `book-status` | — | Project status dashboard and web UI |134| `book-fiction` | — | Fiction patterns (Save the Cat!, character bible) |135| `book-nonfiction` | — | Non-fiction patterns (problem-solution, persona) |136| `book-technical` | — | Technical book patterns (concept progression, code) |137| `book-screenplay` | — | Screenplay patterns (3-act + sequence method, dialogue) |138| `book-poetry` | — | Poetry patterns (form types, imagery systems, collection) |139| `book-game` | — | Game scenario patterns (quest trees, branching, lore) |140| `book-academic` | — | Academic patterns (IMRAD, lit review, argument chains) |141| `book-genre-creator` | — | Meta-skill for genre selection and custom genre creation |142143## Agents144145| Agent | Role | When |146|-------|------|------|147| `book-architect` | Structure validation, outline generation | Phase 2 |148| `chapter-writer` | Chapter draft generation | Phase 3 |149| `continuity-editor` | Cross-chapter consistency check | Phase 3-4 |150| `style-doctor` | Voice and tone consistency | Phase 4 |151| `scene-generator` | Scene-level breakdown with GMC+RDD (fiction only) | Phase 3, fiction |152| `cover-designer` | Cover concepts + image generation prompts | Phase 5 |153| `illustrator` | Interior illustrations — scene extraction, style, prompts | Phase 3-5 |154| `marketing-expert` | Reader personas, channel strategy, launch calendar | Phase 5 |155156## Quality Gates157158Each phase has mandatory completion criteria before proceeding:159160| Phase | Gate | Evidence |161|-------|------|----------|162| 0 | Project initialized | PRD.md + STYLE.md exist |163| 1 | Concept validated | Elevator pitch + 3 competing titles analyzed |164| 2 | Outline complete | All chapters specified + cross-reference map |165| 3 | Drafts complete | All chapters meet word target + frontmatter |166| 4 | Editing complete | 5-stage pipeline passed + <5 issues remaining |167| 5 | Publish ready | EPUB/PDF generated + metadata complete |168169## Integration with Existing Tools170171- **alcove**: Search existing project docs as source material172- **episteme**: Validate technical content against knowledge graph173- **discover**: Run problem discovery for book concept174- **council**: Get multi-voice input on structure/outline decisions