Book Publish logo

Book Publish

Community
epicsagas
book-publish

Phase 5: Publishing. Gate on readiness, assemble front and back matter, build EPUB/PDF/MOBI/TXT/Markdown with Pandoc, validate with epubcheck, produce metadata, title candidates, cover concepts, and marketing plan. Includes KDP and Korean platform checklists.

Overview

Publisherepicsagas
RepositoryVelith
Skill namebook-publish
Stars
40
Forks
7
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by epicsagas on GitHub. Read the source before you install it.

Installation

Install the Book Publish AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/epicsagas/Velith/tree/main/skills/book-publish
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/epicsagas/Velith.git /tmp/Velith
mkdir -p .claude/skills
cp -r /tmp/Velith/skills/book-publish .claude/skills/book-publish
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Book Publish in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Book Publish on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Book Publish is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Phase 5: Publishing

Goal: files a distributor accepts on the first upload, and the supporting assets a launch needs.

Gate in

edits/readiness-report.md must say verdict: PASS. Without it, stop and explain; --force overrides and records the override in publish/PUBLISH-NOTES.md. Also refuse if any chapter is not status: final unless forced.

1. Metadata and front/back matter

Write publish/metadata.yaml:

yaml
title: ...
subtitle: ...
author: ...
lang: ko          # BCP-47
date: 2026-09-04
publisher: ...
rights: © 2026 Author. All rights reserved.
description: |      # 150-300 words, the back-cover copy
keywords: [..., ...]
cover-image: cover/cover.jpg   # only if the file exists
toc-title: 차례

Generate front matter files in publish/frontmatter/: title page, copyright page (include an AI-assistance disclosure line if the author wants one; Amazon KDP requires disclosure of AI-generated text at upload regardless), dedication (if any), epigraph (if any). Back matter: about the author, acknowledgments, further reading (nonfiction), glossary (technical), index of sources (academic).

Chapter files are the drafts/ files with frontmatter stripped. Do not build from edits/.

2. Build

Requires pandoc. Check with pandoc --version; if missing, tell the author how to install and stop after writing metadata.

bash
# EPUB
pandoc publish/frontmatter/*.md drafts/ch*.md publish/backmatter/*.md \
  -o publish/book.epub --toc --toc-depth=2 \
  --metadata-file=publish/metadata.yaml --css=publish/style.css \
  --epub-chapter-level=1

# PDF (requires xelatex; CJK needs a font)
pandoc ... -o publish/book.pdf --pdf-engine=xelatex \
  -V geometry:paperwidth=6in,paperheight=9in,margin=0.75in \
  -V mainfont="Noto Serif CJK KR" -V CJKmainfont="Noto Serif CJK KR" \
  --toc

# MOBI (optional; Kindle accepts EPUB)
ebook-convert publish/book.epub publish/book.mobi

# TXT, MD
pandoc ... --to plain --wrap=none -o publish/book.txt
pandoc ... --to markdown --standalone -o publish/book.md

Pre-processing:

  • Frontmatter strip: pandoc treats the YAML block as metadata; concatenating many files makes later blocks collide. Strip every chapter's frontmatter into a temp copy before building.
  • Poetry: add two trailing spaces to every non-empty line inside poem bodies so pandoc preserves line breaks.
  • Screenplay: build PDF with a monospace font (Courier Prime) and no TOC; also export Fountain if requested.
  • Cover guard: if cover-image points to a missing file, remove the key for the build and note it.
  • Images: drafts reference ../visuals/figures/... and ../visuals/illustrations/...; run pandoc from the project root with --resource-path=.:visuals:visuals/figures:visuals/illustrations:visuals/photos:publish. On Windows the separator is ; (--resource-path=.;visuals;...), and cmd/PowerShell do not expand drafts/ch*.md: list the files explicitly. Legacy publish/illustrations/ still resolves if added to the path.

Validate: epubcheck publish/book.epub if installed. Zero errors required; warnings listed in PUBLISH-NOTES.md. Open the PDF page count and confirm chapter starts on new pages.

3. Title candidates

publish/title-candidates.md: 20+ candidates in five families (descriptive, emotional, question, image/metaphor, provocative), each with a subtitle option and a one-line reason. For Korean books, check whether the title is already in use on 교보/알라딘 when web search is available. Recommend three.

4. Visual assets and agents

  • If visuals/manifest.json exists: node ${CLAUDE_PLUGIN_ROOT}/velith.mjs images render [project-dir] (figures from source), then images check. Any failure blocks the build until fixed or the author defers the image. Prefer SVG figures for EPUB and PNG for PDF; pandoc picks by extension, so keep both and reference the SVG in drafts (the PDF build swaps to PNG via --resource-path order or a pre-processing pass).
  • cover-designer (requires art-bible.md) → publish/cover/concepts.md, spec.json. If an image generation tool is available, execute the recommended concept and save publish/cover/cover.jpg; then rebuild EPUB with the cover.
  • art-director → contact-sheet consistency review across interior images and the cover, recorded in visuals/plan.md. Publishing with an unresolved fix list requires an author override.
  • marketing-expert → publish/marketing-plan.md; cover variants from spec.json feed the launch assets.

5. Platform checklists

Write publish/CHECKLIST.md:

Amazon KDP — EPUB (reflowable) or print PDF; cover 1600×2560 min for ebook; AI-content disclosure question answered honestly (text/images/translations); ISBN optional for ebook, required for expanded print distribution; categories (up to 3), keywords (7); description with allowed HTML; pricing and royalty tier (70% requires $2.99-$9.99 and delivery cost under limits); pre-order window.

Korean platforms — 교보문고 POD/전자책, 예스24, 알라딘, 리디, 밀리의 서재(구독): ISBN via 국립중앙도서관 서지정보유통지원시스템 (publisher registration required; individuals use 1인 출판사 등록 or an aggregator like 부크크/유페이퍼); 전자책 ePub 3 with embedded fonts checked; 표지 규격 per platform; 도서정가제 applies; 부가세 면세 for books.

Apple Books / Google Play / Kobo — EPUB 3, cover ratio, ISBN handling, territory pricing.

Print — trim size, bleed, spine width from page count and paper, PDF/X-1a for some printers, embedded fonts.

Output

publish/: book.epub, book.pdf (+ .mobi, .txt, .md as requested), metadata.yaml, style.css, frontmatter/, backmatter/, title-candidates.md, cover/, marketing-plan.md, CHECKLIST.md, PUBLISH-NOTES.md (build log, warnings, overrides).

Gate

EPUB and PDF built; epubcheck clean if available; metadata complete; title candidates, cover concepts, marketing plan, checklist present.

Post-completion

bash
node ${CLAUDE_PLUGIN_ROOT}/velith.mjs scan [project-dir]

Frequently asked questions

What does the Book Publish AI skill do?

Phase 5: Publishing. Gate on readiness, assemble front and back matter, build EPUB/PDF/MOBI/TXT/Markdown with Pandoc, validate with epubcheck, produce metadata, title candidates, cover concepts, and marketing plan. Includes KDP and Korean platform checklists.

Why use Book Publish on TypingMind?

Because you install it once and use it with any model. Book Publish is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Book Publish in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/epicsagas/Velith/tree/main/skills/book-publish. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Book Publish?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Book Publish?

As many as you like. As long as a model supports skills, you can use Book Publish with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Book Publish AI skill free?

Yes. It is published on GitHub by epicsagas under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇