Velith

June 19, 2026 · View on GitHub

Velith

Stars Forks Issues Last commit

Version License Claude Code Codex CLI Buy Me a Coffee

한국어 · 日本語 · 中文 · Español · Français · Deutsch · Português

Build books like software. A multi-phase pipeline that turns long-form knowledge — books, RFCs, whitepapers, design docs, technical guides — into structured artifacts, not isolated prompts. From blank page to publishable EPUB/PDF.

Phase 0: Onboarding → Phase 1: Ideation → Phase 2: Outlining → Phase 3: Drafting → Phase 4: Editing → Phase 5: Publishing

Features of Velith

Why Velith?

Most AI "writing tools" are a single prompt and a blank page — they give you disconnected chapters, drifting voice, and no structure. Velith is the opposite: a plan-then-execute pipeline that validates before it writes, gates quality at every stage, and keeps the whole manuscript coherent end to end.

You wouldn't ship code without a spec, tests, and review — so don't ship a book (or an RFC, or a whitepaper) without an outline, continuity checks, and an edit pass. Velith brings software-engineering discipline to long-form knowledge.

Benchmark

What the pipeline does to unstructured input — try it yourself →

MetricRaw InputAfter Velith Pipeline
Structure score2–4 / 106–9 / 10
Redundancy20–45% n-gram overlap< 10% after consolidation
AI-slop markers6–20 per 1K wordsFlagged & removed by style-doctor
Chapter hierarchyNoneDetected + mapped with cross-references
Coherence score0.3–1.5 / 10Improved with section restructuring
FeatureWhy it matters
📋6-phase pipelineEach phase validates before moving on — no rework
📖7 genre templatesFiction, non-fiction, technical, screenplay, poetry, game, academic (+ custom via genre-creator)
🤖8 specialized agentsArchitecture, drafting, scene generation, continuity, style, cover, illustrations, marketing
✏️5-stage editingAssessment → Developmental → Line → Copy → Proofread
🔄Resume anywhereSkip completed chapters, pick up from where you left off
📦EPUB, PDF, MOBI, TXT, MarkdownPublish-ready files via Pandoc + Calibre

One pipeline, many artifacts

Velith ships as a book pipeline — but the same 6 phases apply to any long-form structured knowledge. It doesn't matter whether the artifact is a 300-page novel or a 12-page RFC; the plan-then-execute flow, quality gates, and agents are identical.

ArtifactGenre skillTypical output
Novel / Storybook-fictionEPUB / PDF / MOBI
Non-fiction bookbook-nonfictionEPUB / PDF
RFC / Design docbook-technicalMarkdown / PDF
Whitepaper / Research reportbook-academicPDF (citations)
Course material / Tutorialbook-technicalEPUB / PDF
Game scenario / Lore biblebook-gameMarkdown / EPUB

Comparison

VelithRaw promptsNotion AIJasper / SudowriteScrivener
Structure validationPhase-gated pipelineNoneNoneBasic templatesManual
Cross-chapter continuityDedicated agentManualNoneLimitedManual
AI-slop detectionBuilt-in (style-doctor)NoneNoneNoneNone
Genre awareness8 genre systems + customPrompt-dependentNoneFiction-focusedNone
Output formatEPUB, PDF, MOBI, TXT, MarkdownCopy-pasteMarkdown / PDFDOCX, limitedDOCX, PDF
Quality gatesEvery phaseNoneNoneNoneNone
RequiresClaude Code, Codex CLI, Agy, Cursor, Cline, or AiderAny LLMNotion subscriptionSubscriptionLicense
Full controlPrompt-levelFullBlack boxBlack boxFull

Installation

Claude Code

/plugin marketplace add epicsagas/plugins
/plugin install velith@epicsagas

All 17 skills and 8 agents are available immediately. No further steps needed.

Updates with /plugin update velith@epicsagas.

Prerequisites: Claude Code CLI installed and authenticated.

Codex CLI (OpenAI)

codex plugin marketplace add epicsagas/plugins

Velith provides 17 skills (via .agents/skills/) and 8 custom subagents (via .codex/agents/):

SubagentRole
book-architectStructure validation, outline scoring
chapter-writerChapter draft generation
scene-generatorScene-level GMC+RDD breakdown (fiction)
continuity-editorCross-chapter consistency checks
style-doctorAI-slop detection, voice consistency
cover-designerCover concepts + image prompts
illustratorInterior illustrations + style-consistent prompts
marketing-expertReader personas, launch strategy

Codex auto-discovers skills from .agents/skills/ and subagents from .codex/agents/*.toml. No extra configuration needed.

Updates with codex plugin update velith@epicsagas.

Prerequisites: Codex CLI installed and configured with an OpenAI API key.

Agy (Antigravity)

agy plugin install https://github.com/epicsagas/Velith

Agy auto-discovers skills and agents from the repository root. No extra configuration needed.

Prerequisites: Agy installed and configured.

Cursor

Velith provides context rules in .cursor/rules/ that give Cursor's agent full awareness of the book publishing pipeline, genre patterns, and editing standards.

Rule FileLoaded When
velith-pipeline.mdcAlways (phases, router, agents, quality gates)
velith-genres.mdcEditing drafts, outlines, or PRD files
velith-editing.mdcWorking on edits or STYLE.md

Rules are automatically loaded when you open a Velith book project in Cursor. No installation needed — just clone or copy the .cursor/rules/ directory into your project.

Prerequisites: Cursor installed.

Cline

Velith provides project-level instructions in .clinerules at the repository root. Cline reads this file automatically when working in the project directory — no extra configuration needed.

Prerequisites: Cline extension installed in VS Code or JetBrains.

Aider

Velith provides writing conventions in CONVENTIONS.md, auto-loaded via .aider.conf.yml.

aider  # CONVENTIONS.md is auto-loaded

Prerequisites: Aider installed and configured with an API key.

Quick Start

# Start a new book project
> /book-init

# Auto-detect your current phase and continue
> /loom

The plugin guides you through:

  1. Onboarding — Genre, audience, language, source material, style guide
  2. Ideation — Market research, concept distillation, competing titles
  3. Outlining — Full chapter outline with specs, dependencies, cross-references
  4. Drafting — Chapter-by-chapter generation with parallel subagents
  5. Editing — 5-stage pipeline: Assessment → Developmental → Line → Copy → Proofread
  6. Publishing — EPUB/PDF/MOBI conversion, metadata, marketing plan

Skills

SkillPhaseDescription
/loomRouterAuto-detect phase and route to the next step
/book-init0Start new book project — genre, audience, style guide
/book-ideation1Generate and validate concepts, competitive analysis
/book-outline2Create chapter outline with dependencies
/book-draft3Draft chapters (all/specific/resume) with parallel agents
/book-edit45-stage editing pipeline
/book-publish5Format to EPUB/PDF/MOBI, cover, marketing
/book-illustrate3-5Interior illustrations — scene extraction, style-consistent prompts, placement plan
/book-statusTerminal dashboard + --ui for browser dashboard
/book-fictionFiction patterns (15-beat, Snowflake, character bible)
/book-nonfictionNon-fiction patterns (problem-solution, evidence hierarchy)
/book-technicalTechnical book patterns (concept gradient, code, labs)
/book-screenplayScreenplay patterns (3-act + sequence, dialogue, A/B story)
/book-poetryPoetry patterns (form types, imagery, collection arc)
/book-gameGame scenario patterns (quest trees, branching, lore bible)
/book-academicAcademic patterns (IMRAD, lit review, argument chains)
/book-genre-creatorMeta-skill for genre selection and custom genre creation

Agents

AgentRole
book-architectValidates structure, scores outlines, checks pacing
chapter-writerGenerates chapter drafts with genre templates
continuity-editorCross-chapter consistency (terminology, references, timeline)
style-doctorVoice/tone consistency, AI-slop detection
scene-generatorScene-level breakdown with GMC+RDD structure (fiction only)
cover-designerCover concepts + Midjourney/DALL-E image prompts
illustratorInterior illustrations — scene extraction, style bible, prompt generation
marketing-expertReader personas, channel strategy, 12-week launch calendar

Visual Dashboard

Dashboard

/book-status --ui opens a Svelte-based progress dashboard in your browser. The dashboard auto-refreshes every 5 seconds:

  • 6-phase pipeline tracker (Onboarding → Ideation → Outlining → Drafting → Editing → Publishing)
  • 8 agent status cards (book-architect, chapter-writer, continuity-editor, cover-designer, illustrator, marketing-expert, scene-generator, style-doctor)
  • Chapter outline, drafts table, and 5-stage editing kanban
  • Output file status (EPUB/PDF/MOBI/TXT/MD) with publish checklist
  • Project settings and command reference

The dashboard reads from per-project status.json files dynamically. The pre-built dist/ is included — no build step required for plugin users.

To run locally for development:

cd dashboard
npm install
npm run dev     # http://localhost:5173
npm run build   # rebuild dist/

Design Principles

  • Plan-Then-Execute — Outline first, validate, then write
  • Idempotent — Skip completed chapters, resume from where you left off
  • Token Efficient — Summary-based context, not full text
  • Genre-Aware — Different structures, templates, and validation per genre
  • Quality Gated — Each phase must pass criteria before proceeding

External Dependencies

For EPUB/PDF output (Phase 5):

brew install pandoc        # EPUB/PDF conversion
brew install texlive       # PDF with CJK/Korean support
brew install --cask calibre  # MOBI (Kindle) conversion — optional

Troubleshooting

pandoc not found

Install via Homebrew:

brew install pandoc
CJK/PDF characters missing or broken

Install a CJK-capable LaTeX distribution:

brew install texlive
# Or for minimal install:
brew install basictex && sudo tlmgr install collection-langkorean
Plugin commands not found after install

Restart Claude Code to reload plugins:

claude restart

Project Structure

When you create a book project, Velith sets up:

{project-dir}/
├── PRD.md          # Book requirements
├── STYLE.md        # Voice, tone, conventions
├── ideation.md     # Ideas, market research
├── outline.md      # Full chapter outline
├── drafts/         # Chapter drafts
│   ├── ch00-foreword.md
│   ├── ch01-xxx.md
│   └── ...
├── edits/          # Editing reports
│   └── editorial-report.md
├── publish/        # Final outputs
│   ├── book.epub
│   ├── book.pdf
│   ├── book.mobi
│   └── metadata.yaml
└── sources/        # Source material references

Integration

Built-in agent workflows

No extra setup — these run automatically during the pipeline:

  • discover — During /book-outline, book-architect probes for blind spots and contradictions in the book concept before the structure is locked
  • council — During /book-outline and /book-edit, multiple editorial perspectives (developmental, structural, line-edit) are weighed for outline and revision decisions

alcove — Research vault as source material

alcove is a private document server that lets Velith agents read your existing notes, research, and project docs as source material during drafting.

When it helps:

  • You have years of research notes, interview transcripts, or reference docs you want the agent to cite from
  • You're writing non-fiction and need agents to pull facts from structured project documentation
  • You maintain a knowledge base with terminology, timelines, or world-building details the agent should respect

How to use:

  1. Install and configure alcove as an MCP server in your Claude Code settings
  2. During /book-init, point to your alcove project as a source
  3. Agents will query alcove automatically when drafting chapters that reference your research

obsidian-forge — Write where you think

obsidian-forge bridges your Obsidian vault to Velith, so you can research in Obsidian and write with Velith without copying files manually.

When it helps:

  • Your research, character profiles, and reference notes already live in an Obsidian vault
  • You want to iterate on outlines in Obsidian's linked-note environment before committing to Velith
  • You collaborate with co-authors who prefer Obsidian for brainstorming

How to use:

# Create a book project inside your Obsidian vault (01-Projects/)
of book init my-book --genre non-fiction --lang ko

# Work in Obsidian: research notes, character profiles, references
# Tag notes with book/my-book to link them as source material
of book sync my-book

# Export to a standalone directory when ready to write
of book export my-book --output ~/projects/my-book

# Now run velith on the exported project
> /loom

Both alcove and obsidian-forge are optional — Velith works standalone.

Contributing

See CONTRIBUTING.md. PRs welcome — check open issues labeled good first issue.

License

Apache-2.0