KDP Publishing Plugin

Claude Code plugin: typeset a print-ready Amazon KDP paperback with Typst. Trim geometry biased to KDP's US standard sizes, a full-wrap cover built last from the interior's measured extent, mechanical pre-flight, and an upload folder. Production only — it does not write your book.

About This Project

KDP-Publishing-Plugin is a Claude Code plugin that turns an existing manuscript into the two PDFs Amazon KDP requires for a paperback: a typeset interior and a full-wrap cover. It uses Typst for typesetting and steers trim sizes toward KDP's US standard list, with gutter-aware margins derived from the measured page count. The cover is built last from the interior's actual page extent, so spine width matches the finished book. A pre-flight stage checks trim and parity, gutter minimums, font embedding against every codepoint in the source, and listing field limits, then assembles a dist/kdp-upload folder that indicates which file goes in which form field.

The project is organised as a pipeline of slash commands (kdp-init, kdp-build, kdp-preflight, kdp-cover, kdp-package) that share a single book.toml file for title and print settings, and as standalone Python scripts, with a central geometry module serving as the only source of spine, wrap and margin calculations. It requires Typst and poppler-utils, runs offline without API keys, and is released under the MIT licence. The README states that it was extracted from two books printed through this process.

The plugin is aimed at self-publishing authors and prepress-minded developers who produce print-on-demand paperbacks and want to catch layout and font errors before ordering a proof copy. It explicitly excludes drafting, blurb or keyword generation, so it suits authors who write their own text and need a reliable production workflow.

Project Details

Tags

claude-codeclaude-pluginkdpprepressprint-on-demandself-publishingtypesettingtypst

Explore More Projects