Word Compiler — AI skill for Claude Code
Context compiler for long-form fiction that turns character, voice, and scene plans into guided LLM prose generation.
How to install Word Compiler
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open 2389-research/word-compiler and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Word Compiler does
Context compiler for long-form fiction that turns character, voice, and scene plans into guided LLM prose generation.
Alternatives in AI
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Graphjin — GraphJin - An Automagical Compiler to Connect AI to Your Databases 3034 44 1 3k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
README
Word Compiler
A context compiler for long-form fiction. Structured creative intent (characters, voice rules, scene contracts) is compiled into optimized LLM context payloads, enabling gated chunk-by-chunk prose generation.
The author never writes prompts. They fill in structured fields, write anchor lines, and edit generated prose. The app handles all context assembly, budget management, and constraint injection.
How It Works
Bible + Scene Plan + Previous Chunks + Config
→ Ring Builder (system / chapter / scene context)
→ Budget Enforcer (token counting, priority trim)
→ Linter (priming risk, missing voice, budget health)
→ Assembler → LLM → Generated Chunk
→ Human Review (accept / edit / reject)
→ Auditor (kill list, variance, subtext, epistemic)
→ Learner (diff analysis → pattern proposals)
The context compiler builds prompts in three concentric rings:
- Ring 1 (system): Project voice, tone, kill list, global rules
- Ring 2 (chapter): Chapter arc, character states, active setups
- Ring 3 (scene): Scene plan, voice fingerprints, continuity bridge, anchor lines
When over budget, rings compress in priority order. Scene context always gets at least 60% of the token budget.
Quick Start
Prerequisites
- Node.js 20+
- pnpm
- An Anthropic API key
Setup
git clone https://github.com/2389-research/word-compiler.git
cd word-compiler
pnpm install
Create a `.env` file:
ANTHROPIC_API_KEY=your-key-here
Run
pnpm dev:all # Starts frontend (localhost:5173) + API server (localhost:3001)
Workflow
- Bootstrap — Paste a synopsis or build a bible manually (characters, locations, style guide, narrative rules)
- Plan — Author scene plans with chapter arcs, beat sheets, and continuity tracking
- Draft — Generate prose chunk by chunk with compiled context; review, edit, accept or reject
- Audit — Run quality ch
Related Skills
Vigen
Claude Code skill that turns a one-line idea into a complete AI video production plan: storyboard, shot design
Human Copywrite
A Claude Agent Skill that humanizes AI-written marketing and long-form copy: landing pages, sales pages, e-boo
Fiction Prose Style
A tested prose standard for AI-written fiction, packaged as an agent skill (Claude Code, Codex, OpenCode)
Jevc
Compile agent policy prose into deterministic verdict programs: narrow evidence questions for the model, the v
Script To Reel
Turn a written script into a finished 9:16 vertical reel. An AI-powered Claude skill that generates an illustr
Drama Song Ad
Make a complete drama song ad: a long-form ad sung as a drama, from script to song to finished video. Original
Related Agents
Scene Generator
Scene-level generation. Decomposes chapter outline + character bible into GMC+RDD scenes. Fiction only. Runs b
Book Writer
Prose writer for the book pipeline. Writes one chapter at a time with voice inhabitation (not imitation), emot
Omd Kr Writer
Korean blog / long-form writer with 6 voice presets (toss-tech-design, karrot-neighborly, brunch-maker-popular