Install
openclaw skills install bestseller-writerTurn a shower idea into a full best-seller manuscript in one command. Multi-agent pipeline — Planner → Character Designer → Chapter Writers (parallel) → Edit...
openclaw skills install bestseller-writerOne idea → Full manuscript → Amazon KDP listing. Fully autonomous.
Turn a shower thought into a publishable book. 5-stage multi-agent pipeline handles everything: story structure, characters, all chapters (written in parallel), editorial pass, and a complete Amazon KDP publishing package.
No writing experience needed. No blank page. Just your idea.
| Output | Description |
|---|---|
MANUSCRIPT.md | Complete book (50-80k words, 25-35 chapters) |
kdp_package.md | Title options, Amazon description, 7 keywords, BISAC categories, pricing strategy, cover brief + Midjourney prompt |
plan.md | Full story/argument structure with chapter-by-chapter outline |
characters.md | Deep character profiles with arcs (fiction) or authority framework (non-fiction) |
editorial_memo.md | Professional developmental edit notes |
cd skills/bestseller-writer/scripts
npm install
# Thriller
node generate.js --idea "A detective discovers evidence of her own murder" --genre thriller
# Self-help
node generate.js --idea "How to build a $10k/month business in 90 days using AI" --genre self-help
# Romance
node generate.js --idea "Two rival food truck owners forced to share a festival spot" --genre romance
# Business/non-fiction
node generate.js --idea "Why most startups fail at hiring and how to fix it" --genre business
--idea, -i Your book concept (required)
--genre, -g Genre: thriller, romance, self-help, business, memoir, fantasy, nonfiction
--output, -o Output directory (default: ./book-output/[slug])
--chapters Number of chapters (default: 25)
--batch Parallel chapter batch size (default: 4)
--planner Model for Planner + Editor (default: claude-opus-4-5)
--writer Model for writing agents (default: claude-sonnet-4-5)
export ANTHROPIC_API_KEY=sk-ant-...
If you're running inside an OpenClaw agent, the agent follows this pipeline directly using sessions_spawn. Trigger with:
"Write me a book about [idea]" or "Generate a bestseller about [idea]"
The agent will:
~/Desktop/books/[slug]/kdp_package.md as the final deliverable💡 Your Idea
│
▼
┌─────────────────────────────────────┐
│ Stage 1: PLANNER (Opus) │
│ Market positioning, title options, │
│ full chapter-by-chapter outline, │
│ comparable titles, pitch │
└──────────────────┬──────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Stage 2: CHARACTER DESIGNER │
│ (Sonnet) │
│ Deep profiles, arcs, voice guide │
│ (fiction) or authority/reader │
│ avatar framework (non-fiction) │
└──────────────────┬──────────────────┘
│
┌─────────┴─────────┐
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Chapters │ ... │ Chapters │ ← Parallel batches
│ 1-4 (Sonnet)│ │ 21-25 │ (4 at a time)
└──────┬──────┘ └──────┬──────┘
└─────────┬─────────┘
▼
┌─────────────────────────────────────┐
│ Stage 4: EDITOR (Opus) │
│ Consistency, pacing, voice, │
│ opening/ending assessment, │
│ marketability score │
└──────────────────┬──────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Stage 5: KDP PACKAGER (Sonnet) │
│ Title, description, keywords, │
│ categories, pricing, cover brief, │
│ Midjourney prompt, launch checklist│
└─────────────────────────────────────┘
│
▼
📦 MANUSCRIPT.md + kdp_package.md
| Genre | Framework | Avg Length |
|---|---|---|
| Thriller/Mystery | Save the Cat beats + 3-act | 70-80k words |
| Romance | Meet cute → Black moment → HEA | 60-70k words |
| Fantasy/Sci-Fi | World + Hero's Journey | 80-100k words |
| Self-Help | Problem → Framework → Transformation | 40-50k words |
| Business | Insight → Evidence → Application | 45-55k words |
| Memoir | Chronological + thematic arc | 55-70k words |
Amazon KDP passive income per book:
Launch strategy (built into kdp_package.md):
Niche targeting (highest ROI):
| Stage | Model | API Cost (approx) |
|---|---|---|
| Planner | Opus | ~$0.15 |
| Characters | Sonnet | ~$0.05 |
| 25 chapters | Sonnet × 25 | ~$0.75 |
| Editor | Opus | ~$0.20 |
| KDP Package | Sonnet | ~$0.05 |
| Total | ~$1.20 per book |
One book costs ~$1.20 to generate and can earn $50-500/month. ROI is infinite.
When the user asks to write a book or generate a manuscript:
Ask for (or infer from context):
Create output dir: ~/Desktop/books/[slug]/
Spawn agents in sequence using sessions_spawn with runtime="subagent":
Agent 1 — Planner:
Task: Full planning prompt (see scripts/generate.js buildPlannerPrompt)
Save output to: plan.md
Agent 2 — Character Designer:
Task: Character/authority prompt with plan as context
Save output to: characters.md
Agents 3-N — Chapter Writers (parallel, max 4 at once):
Task: Chapter writing prompt with plan + characters + prev chapter ending
Save output to: chapter_NN.md
Agent N+1 — Editor:
Task: Editorial pass prompt with plan + sample chapters
Save output to: editorial_memo.md
Agent N+2 — KDP Packager:
Task: KDP package prompt with plan + editorial
Save output to: kdp_package.md
Concatenate all chapter_NN.md files into MANUSCRIPT.md
Send user:
Chapters are too short? The writer agents are prompted for 2,000-2,500 words. If output is shorter, re-run that specific chapter with: "This chapter is too short. Expand to at least 2,000 words, adding more scene depth, dialogue, and sensory detail."
Voice is inconsistent? The editor stage catches this. After the editorial memo, re-run any flagged chapters with the specific feedback.
KDP keywords not relevant?
Edit kdp_package.md keywords manually using Google Keyword Planner or Publisher Rocket to verify search volume before uploading.
Want a series?
After Book 1 is done, pass plan.md + characters.md into a new run with --idea "Book 2: [continuation]". Characters and world are already built.