Book publishing

From frankxai/claude-skills-library · View interactive version

Book publishing is an AI agent skill from the GitHub repository frankxai/claude-skills-library. Multi-book content, voice, and production workflows for nonfiction authoring. Use when planning a book, maintaining consistent voice across chapters, structuring a manuscript, or running an end-to-end publishing pipeline.

How to use this skill

Skill file

ACOS Book Publishing Skill v1.0

Purpose

Intelligence layer for FrankX's 6-book publishing platform. Provides AI agents with complete book DNA — voice, research context, visual identity, and writing style for each book line. Any agent loading this skill can produce content indistinguishable from Frank's authored work.

Activation

Auto-activates when session involves: book writing, chapter drafting, book cover generation, PDF/EPUB creation, library reviews, or any /books/ route work.

Triggers: book, chapter, poetry, spartan, self-development, imagination, manifestation, golden-age, library, review, cover image, pdf generation, epub


Book Registry (6 Books)

1. Love & Poetry

2. Spartan Mindset

3. The Golden Age of Creators

4. The Art of Self-Development

5. Imagination

6. Manifestation


Cross-Book Standards

Typography

| Context | Font | Weight |

| -------------- | ------------------------ | ------ |

| Serif headings | Playfair Display | 700 |

| Sans headings | Inter | 700 |

| Serif body | Lora or Playfair Display | 400 |

| Sans body | Inter | 400 |

| Code/data | JetBrains Mono | 400 |

Color System

| Book | Primary | Accent | Background |

| ---------------- | ------------- | ------------ | ---------- |

| Love & Poetry | rose-500 | amber-400 | #0a0a0f |

| Spartan Mindset | red-600 | stone-400 | #030712 |

| Golden Age | amber-500 | indigo-400 | #0F172A |

| Self-Development | emerald-500 | cyan-400 | #030f0a |

| Imagination | violet-500 | cyan-400 | #0a0a12 |

| Manifestation | amber-400 | purple-500 | #0f0a05 |

Writing Universal Rules

  1. No emoji in any book content
  2. No hashtags or social media formatting
  3. No AI-sounding phrases: "delve into", "it's important to note", "in conclusion"
  4. Frank's voice markers: Direct but warm. Lead with insight, not preamble. Specific over general. Results over theory.
  5. Epigraphs: Every chapter can have an opening quote — must be real, attributed, verifiable
  6. Word count: Chapters target 2,000-3,000 words (8-15 min read)
  7. Markdown format: H1 for title, H2 for sections, H3 for subsections, blockquotes for quotes
  8. Image refs: Use relative paths /images/books/{slug}/ for chapter images

Quality Gate

Before any book content is published:


ACOS Integration

Skill Auto-Activation Rules

{
  "book-publishing": {
    "triggers": [
      "book",
      "chapter",
      "poetry",
      "spartan",
      "self-development",
      "imagination",
      "manifestation",
      "golden-age",
      "library",
      "review",
      "cover",
      "pdf",
      "epub"
    ],
    "priority": "high",
    "profile": "content-architect",
    "auto_load": true
  }
}

Agent Profiles for Book Work

| Agent | Book Work Scope |

| ------------------- | ---------------------------------------------------- |

| content-architect | Chapter writing, book structure, voice consistency |

| seo-intelligence | Book/library SEO, JSON-LD schemas, meta optimization |

| frontend-designer | BookReader UI, cover display, theme components |

| devops-engineer | PDF pipeline, EPUB generation, Vercel Blob uploads |

Hook Integration

File Watchers

| Path Pattern | Action |

| ------------------------------ | --------------------------------------------- |

| content/books/*/chapter-*.md | Validate voice, update registry |

| public/images/books/* | Verify image dimensions (848x1264 for covers) |

| app/books/**/*.tsx | Run TypeScript check on book components |

| data/book-reviews.ts | Validate review schema completeness |


PDF/EPUB Pipeline

PDF Generation

EPUB Generation

Generation Command

# Generate all book PDFs
node scripts/generate-book-pdfs.mjs

# Generate single book
node scripts/generate-book-pdfs.mjs --book spartan-mindset

# Generate EPUBs
node scripts/generate-book-epubs.mjs

Library Integration

Book Reviews (`/library/`)

Review Voice

Reviews follow FrankX blog voice: concise, opinionated, actionable insights over summary. Each review answers "What changed after reading this?" not "What is this book about?"


Content Generation Workflow

Writing a New Chapter

  1. Load this skill (auto or manual)
  2. Read 2 existing chapters from the same book for voice calibration
  3. Check the book's research sources for relevant material
  4. Write the chapter following the book-specific structure pattern
  5. Run through quality gate checklist
  6. Save to content/books/{slug}/chapter-{nn}-{title-slug}.md
  7. Update books-registry.ts with the new chapter entry

Creating a Book Review

  1. Load this skill
  2. Read the actual book (or comprehensive summary + key passages)
  3. Identify 5 key insights that changed thinking/behavior
  4. Write review following FrankX voice (NOT summary, YES transformation)
  5. Map to relatedBook from our 6-book catalog
  6. Add to data/book-reviews.ts

Generating Cover Images

  1. Load this skill for the book's visual identity section
  2. Use Nano Banana MCP with pro model, 2:3 aspect, high resolution
  3. Negative prompt ALWAYS includes: clay, claymorphic, pastel, cartoon, cute, childish
  4. Save to public/images/books/{slug}-cover.png
  5. Verify dimensions: 848x1264 (2:3 at high resolution)
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.