All skills
danjdewhurst avatar

/publishing

@a42e274

This skill should be used when the user asks to "self-publish", "publish my book", "ISBN", "copyright page", "book metadata", "BISAC", "keywords", "KDP", "IngramSpark", "Draft2Digital", "go wide", "Kindle Unlimited", "print interior", "trim size", "paperback", "ebook", "EPUB", "cover wrap", "spine width", "pricing", "launch plan", "ARC team", "advance readers", "newsletter", "reader magnet", "Amazon ads", "BookBub", "rights", "foreign rights", "audio rights", "film rights", "publishing contract", or wants to take a finished manuscript through production, distribution, launch, and rights management. It owns contracts and rights sales; NOT for permission to quote lyrics, epigraphs, or other material in the book (use editorial-review).

Use this Skill: https://skilld.dev/gh/danjdewhurst/story-skills/publishing

This session only. Nothing lands on disk.

referencesprint-interior.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Print Interior

story build . --format print --trim <size> writes print-ready HTML using CSS paged media: mirrored margins with a gutter, running heads (author on the verso, chapter title on the recto, blank on chapter openings), page numbers at the foot of chapter and back-matter pages, chapters starting on a recto, a raised initial opening each chapter, widow and orphan control, and a copyright page. A paged-media engine turns it into the PDF the printer needs.

Trim Size

Trim Typical use
5x8 Shorter novels, novellas, some literary fiction; compact, cheap to print
5.25x8 A common fiction size between 5x8 and 5.5x8.5
5.5x8.5 The CLI default; general fiction, a safe choice
6x9 Long novels, epic fantasy, nonfiction-feeling books; fewer pages for the word count
a5 UK, European, and Australian markets

Check the trim against the author's printers before choosing: every size here is widely offered, but hardcover, expanded distribution, and specific paper options vary by printer and size. Keep one trim across a series so the spines line up on a shelf.

Page Count Estimate

The metadata sheet (story build . --format metadata) gives an estimated page count. As a rough rule for fiction set in 11-12 point type:

Trim Words per page, roughly
5x8 225-275
5.5x8.5 250-300
6x9 300-350

The sheet's estimate, and the print build's gutter, already count the title page, contents, front and back matter, each chapter rounded up to whole pages below its heading sink, and the blank versos that chapter-on-recto leaves behind. Only the rendered PDF gives the real count; use it for pricing and the cover.

Render To PDF

The CLI bundles no PDF engine. Use one the author has installed:

  • Paged.js CLI: pagedjs-cli dist/<file>.html -o dist/<file>.pdf (free; Chromium-based).
  • WeasyPrint: weasyprint dist/<file>.html dist/<file>.pdf (free; Python).
  • Prince: prince dist/<file>.html -o dist/<file>.pdf (commercial; free for non-commercial use with a watermark; check its current license).

Engines differ in their support for paged-media features. If running heads, the raised initial, or recto starts render wrong in one engine, try another before touching the manuscript. Do not hand-edit the built HTML: it is disposable and the next build overwrites it.

Printer Checks

Check the PDF against the printer's current file requirements. The usual list:

  • Page size equals the trim size (no bleed for a text-only interior)
  • All fonts embedded, with a license that allows embedding in print
  • Even page count; some printers want a multiple of 2 or 4, and add blank pages if not
  • Margins meet the printer's minimum, with a wider gutter for thicker books
  • Images at 300 ppi, and grayscale for a black-and-white interior
  • PDF standard the printer asks for (some ask for PDF/X-1a or PDF/X-4; the author may need a PDF tool to convert)
  • Chapters start on the right; no running head or number on blank pages or chapter openers
  • Copyright page ISBN is the print ISBN
  • Spot-check: a widow or orphan, a long word breaking a line, a scene break at the top or bottom of a page (a blank-line break can vanish there; confirm it shows a visible marker)

Cover Wrap

  • A print cover is one image: back cover + spine + front cover, plus bleed on every edge.
  • Spine width depends on the page count and the paper (white, cream, color; paper weight). Get it from the printer's cover calculator or template generator after the final page count is known. Each printer's paper differs, so a KDP cover and an IngramSpark cover for the same book can need different widths.
  • Spine text usually needs a minimum page count (often around 100 pages). Keep text inside the spine safe zone.
  • The back cover needs room for the barcode, usually lower right.
  • Every page-count change after the cover is made means a new cover file.

Proofs

  • Order a printed proof from each printer before release. Screen checks miss margins, gutter loss, paper tone, and cover color shifts.
  • Read the proof for: gutter too tight to read, running heads, chapter openings, scene breaks, the copyright page, and front and back matter order.
  • Record fixes as manuscript or matter changes, rebuild, re-render, and re-upload. Never patch the PDF by hand; the next build loses the fix.

Source: SKILL.md on GitHub

No alerts3d3 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    The publishing skill provides a comprehensive workflow for book production, distribution, and launch. It utilizes a project-specific CLI and standard publishing tools to validate manuscripts and generate ebook and print formats. The skill is assessed as low risk because it involves processing user-provided manuscript content and executing shell commands, though it maintains safety boundaries by deferring sensitive actions to the user and providing clear disclaimers regarding legal advice.

  • Socket3d

    No alerts

  • Snyk3d

    Risk: LOW · No issues

Signed by skilld at a42e274. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 19 hours ago.

Activeupdated 4 days ago

README badge

README badge for danjdewhurst/story-skills/publishing