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
Source: hashgraph-online/awesome-codex-plugins → plugins/epicsagas/Velith/skills/loom/SKILL.md
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."4category: general-purpose5source_repo: hashgraph-online/awesome-codex-plugins6source_path: "plugins/epicsagas/Velith/skills/loom/SKILL.md"7source_url: https://github.com/hashgraph-online/awesome-codex-plugins/blob/HEAD/plugins/epicsagas/Velith/skills/loom/SKILL.md8metadata:9 source: https://skillmd.com/skills/thedixitjain/loom10---111213# Velith — AI-Native Publishing System1415## Overview1617Build books like software. 6-phase pipeline from blank page to published book, with dedicated skills, agents, and quality gates at every stage.1819```20Phase 0: Onboarding → Phase 1: Ideation → Phase 2: Outlining → Phase 3: Drafting → Phase 4: Editing → Phase 5: Publishing21```2223## Genre Support2425| Genre | Key Differences | Reference File |26|-------|----------------|----------------|27| Fiction | Plot structure (Save the Cat!/Snowflake), character bible, scene beats | `book-fiction` |28| Non-Fiction | Problem-solution structure, persona-driven, evidence hierarchy | `book-nonfiction` |29| Technical | Concept progression (novice→expert), code examples, diagrams, API docs | `book-technical` |30| Screenplay | 3-act + sequence method, dialogue/action, A/B story | `book-screenplay` |31| Poetry | Form-driven (sonnet/haiku/free verse), imagery systems, collection arc | `book-poetry` |32| Game | Quest trees, branching dialogue, lore bible, flag system | `book-game` |33| Academic | IMRAD, literature review, argument chains, citation practices | `book-academic` |34| Custom | Compose patterns from any genre via `book-genre-creator` | `book-genre-creator` |3536## Phase Router3738When `/velith` is invoked without arguments, detect current project state and route:39401. **No project exists** → Run Phase 0 (Onboarding)412. **Project exists, no outline** → Run Phase 1 (Ideation)423. **Outline exists, no drafts** → Run Phase 2 (Outlining) validation, then Phase 3434. **Drafts exist, incomplete** → Continue Phase 3 (Drafting)445. **All drafts complete** → Run Phase 4 (Editing)456. **Editing complete** → Run Phase 5 (Publishing)4647Detection: check for `drafts/` directory, `outline.md`, `STYLE.md`, `PRD.md` in current project.4849## Phase Details5051### Phase 0: Onboarding (`/velith onboard`)52- Genre selection (fiction/non-fiction/technical/screenplay/poetry/game/academic/custom)53- Target audience definition54- Language selection55- Project directory setup56- Source material scan (existing notes, articles, code)57- Generate `STYLE.md` (voice, tone, conventions)58- Generate `PRD.md` (book requirements)5960### Phase 1: Ideation (`/velith ideate`)61- Market research (competing titles, gaps)62- Core concept distillation (elevator pitch)63- Unique value proposition64- Scope definition (chapters, word count, timeline)65- Save to `ideation.md`6667### Phase 2: Outlining (`/velith outline`)68- Generate full chapter outline with dependencies69- Per-chapter specs: title, hook, key concepts, word target, difficulty level70- Cross-chapter reference map71- Save to `outline.md`72- Agent: `book-architect` validates structure7374### Phase 3: Drafting (`/velith draft`)75- Plan-Then-Execute pattern: chapter-by-chapter generation76- Each chapter gets: outline context + previous chapter summary + style guide77- Parallel chapter generation via subagents (max 4 concurrent)78- Agent: `scene-generator` decomposes chapters into scenes first (fiction only)79- Agent: `chapter-writer` generates each chapter (from scenes if available)80- Agent: `continuity-editor` checks cross-chapter consistency81- Quality gate: line count, frontmatter, style compliance8283### Phase 4: Editing (`/velith edit`)84- 5-stage editing pipeline:85 1. Editorial Assessment (macro structure)86 2. Developmental Edit (flow, pacing, gaps)87 3. Line Edit (sentence-level clarity)88 4. Copy Edit (grammar, consistency)89 5. Proofread (final typos)90- Agent: `style-doctor` enforces voice consistency91- Generate editing report with severity-ranked issues9293### Phase 5: Publishing (`/book-publish`)94- Format conversion (EPUB/PDF/MOBI/TXT/MD via Pandoc + Calibre)95- Agent: `cover-designer` → concepts + image prompts96- Agent: `illustrator` → interior illustration plan (optional, after drafting)97- Agent: `marketing-expert` → launch strategy98- Metadata, title candidates, KDP checklist99100### Interior Illustrations (`/book-illustrate`)101- Can run after Phase 3 (Drafting) or during Phase 5 (Publishing)102- Agent: `illustrator` → scene extraction, style bible, prompts103- Produces illustration plan with placement metadata104- Integrates image references into chapter drafts105106## Project Structure107108```109{project-dir}/110├── PRD.md # Book requirements (Phase 0)111├── STYLE.md # Voice, tone, conventions (Phase 0)112├── ideation.md # Ideas, market research (Phase 1)113├── outline.md # Full chapter outline (Phase 2)114├── drafts/ # Chapter drafts (Phase 3)115│ ├── ch00-foreword.md116│ ├── ch01-xxx.md117│ └── ...118├── edits/ # Editing reports (Phase 4)119│ └── editorial-report.md120├── publish/ # Final outputs (Phase 5)121│ ├── book.epub122│ ├── book.pdf123│ └── metadata.yaml124└── sources/ # Source material references125```126127## Sub-Skills128129Each phase has a dedicated skill in `skills/book-{name}/SKILL.md`:130131| Skill | Phase | Description |132|-------|-------|-------------|133| `book-init` | 0 | Project setup, genre selection, STYLE.md + PRD.md |134| `book-ideation` | 1 | Market research, concept distillation, scope |135| `book-outline` | 2 | Chapter outline with dependencies and cross-references |136| `book-draft` | 3 | Plan-Then-Execute chapter generation |137| `book-edit` | 4 | 5-stage editing pipeline |138| `book-publish` | 5 | EPUB/PDF/MOBI packaging, cover, marketing |139| `book-illustrate` | 3-5 | Interior illustrations, scene extraction, prompts |140| `book-status` | — | Project status dashboard and web UI |141| `book-fiction` | — | Fiction patterns (Save the Cat!, character bible) |142| `book-nonfiction` | — | Non-fiction patterns (problem-solution, persona) |143| `book-technical` | — | Technical book patterns (concept progression, code) |144| `book-screenplay` | — | Screenplay patterns (3-act + sequence method, dialogue) |145| `book-poetry` | — | Poetry patterns (form types, imagery systems, collection) |146| `book-game` | — | Game scenario patterns (quest trees, branching, lore) |147| `book-academic` | — | Academic patterns (IMRAD, lit review, argument chains) |148| `book-genre-creator` | — | Meta-skill for genre selection and custom genre creation |149150## Agents151152| Agent | Role | When |153|-------|------|------|154| `book-architect` | Structure validation, outline generation | Phase 2 |155| `chapter-writer` | Chapter draft generation | Phase 3 |156| `continuity-editor` | Cross-chapter consistency check | Phase 3-4 |157| `style-doctor` | Voice and tone consistency | Phase 4 |158| `scene-generator` | Scene-level breakdown with GMC+RDD (fiction only) | Phase 3, fiction |159| `cover-designer` | Cover concepts + image generation prompts | Phase 5 |160| `illustrator` | Interior illustrations — scene extraction, style, prompts | Phase 3-5 |161| `marketing-expert` | Reader personas, channel strategy, launch calendar | Phase 5 |162163## Quality Gates164165Each phase has mandatory completion criteria before proceeding:166167| Phase | Gate | Evidence |168|-------|------|----------|169| 0 | Project initialized | PRD.md + STYLE.md exist |170| 1 | Concept validated | Elevator pitch + 3 competing titles analyzed |171| 2 | Outline complete | All chapters specified + cross-reference map |172| 3 | Drafts complete | All chapters meet word target + frontmatter |173| 4 | Editing complete | 5-stage pipeline passed + <5 issues remaining |174| 5 | Publish ready | EPUB/PDF generated + metadata complete |175176## Integration with Existing Tools177178- **alcove**: Search existing project docs as source material179- **episteme**: Validate technical content against knowledge graph180- **discover**: Run problem discovery for book concept181- **council**: Get multi-voice input on structure/outline decisions182183---184185**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/epicsagas/Velith/skills/loom/SKILL.md`