Book writer

From kandada/aacode · View interactive version

Book writer is an AI agent skill from the GitHub repository kandada/aacode. Guided multi-phase book writing: outline → storyline → chapter-by-chapter writing with verification → final consistency review and polish.

How to use this skill

Skill file

book_writer

Description

Guided multi-phase book writing: outline → storyline → chapter-by-chapter writing with verification → final consistency review and polish.

Parameters

Example

run_skills("book_writer", {"topic": "The Art of Programming", "language": "en", "style": "technical", "num_chapters": 12, "target_audience": "junior developers"})

Output directory

Create all files in a subdirectory named after the topic (sanitized: lowercase, underscores for spaces):

<project>/<topic_slug>/
├── outline.md
├── storyline.md
├── chapter_01_<title>.md
├── chapter_02_<title>.md
├── ...
└── review_report.md

Phase 1: Outline (outline.md)

Create outline.md with these sections:

# <Book Title> — Outline

## Basic Info
- Title: ...
- Language: ...
- Style: ...
- Estimated Chapters: ...
- Target Audience: ...

## Chapter Structure
1. Chapter 1: <chapter title> — <one-line summary>
2. Chapter 2: <chapter title> — <one-line summary>
...

## Core Themes
- Theme 1: ...
- Theme 2: ...

## Writing Principles
- Principle 1: ...
- Principle 2: ...

Verify: After writing outline.md, check:

Phase 2: Storyline (storyline.md)

Create storyline.md with these sections:

# <Book Title> — Storyline

## Main Arc
(Describe the main plot arc from beginning to end)

## Chapter Pacing
- Chapters 1-3: <phase description> (setup / introduction)
- Chapters 4-7: <phase description> (development / conflict)
- ...

## Key Turning Points
1. Turning point 1 (Chapter X): ...
2. Turning point 2 (Chapter Y): ...

## Characters / Core Concepts
(For novels: characters with traits and arcs)
(For technical books: key concepts introduced per chapter)

Verify: After writing storyline.md, check:

Phase 3: Chapter Writing (chapter_XX_<title>.md)

Write chapters one at a time. Each chapter file must include:

# Chapter X: <chapter title>

## Summary
(2-3 sentences summarizing this chapter)

[main content]

## Key Points
- Point 1
- Point 2

Chapter-by-chapter verification — after writing EACH chapter, check:

  1. Consistency with outline.md — does this chapter deliver what the outline promised?
  2. Consistency with storyline.md — does this chapter fit the pacing and arc?
  3. Transition check — are there contradictions with the PREVIOUS chapter? (For chapter 1, skip this)
  4. Read the previous chapter's ending and ensure this chapter follows naturally
  5. If issues found, fix immediately before moving on

Multi-chapter consistency check (every 5 chapters) — after chapters 5, 10, 15, etc.:

Phase 4: Final Consistency Review (review_report.md)

After ALL chapters are written, create review_report.md and perform these checks:

A. Timeline Consistency

B. Character / Terminology Consistency

C. Plot Hole / Logic Gap Check

D. Tone and Style Consistency

E. Chapter Transition Quality

F. Optimization

G. Final Report (review_report.md)

Write a structured report covering all checks above, with:

Completion

Tell the user the book is complete. Report:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.