# kdp book builder

> Convert Markdown manuscripts into Amazon KDP-ready .docx files with perfect margins and Kindle navigation.

kdp book builder is a paid AI agent skill on Agensi by Johnny Gu, in Digital Products. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Johnny Gu](https://www.agensi.io/creators/johnny-gu)
- Category: [Digital Products](https://www.agensi.io/skills/digital-products)
- Version: 1.0
- Last updated: 2026-08-11
- Security: scan passed (2026-08-11); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/kdp-book-builder
- Tags: digital-products, python, kdp, publishing, amazon-kindle, automation

## About this skill

### The problem

Self-published books often get rejected by Amazon KDP because of incorrect gutter margins, lack of mirrored pages, or broken Kindle navigation menus. Manual formatting in Word is tedious and error-prone, leading to "no chapter navigation" complaints from readers.

### What it does

- Converts Markdown manuscripts into KDP-ready .docx files with correct trim sizes.
- Calculates gutter margins dynamically based on your total page count to prevent text from disappearing into the spine.
- Applies native Heading 1 styles to ensure Kindle devices automatically build the "Go To" navigation menu.
- Generates a clickable Table of Contents that works in both print and digital versions without broken bookmarks.
- Automates professional typesetting rules, like removing indents on the first paragraph of a new chapter or scene.

### Frameworks & tools

Python, python-docx, Markdown.

### Why this beats prompting it yourself

General LLM prompts often fail to handle the specific geometric requirements of physical book spines or the technical XML structure inside a .docx needed for Kindle navigation. This tool uses a deterministic script to ensure every margin, page break, and font style is technically perfect every time.

### Use cases

- Formatting a fiction novel for 5.5x8.5 or 6x9 paperback distribution.
- Converting a technical manuscript into a professional Kindle ebook with a functional TOC.
- Preparing a print-on-demand interior that requires alternating (mirrored) margins for odd and even pages.
- Validating if a short-form book meets KDP's 24-page minimum or 100-page spine text requirements.

### Known limitations

Requires the python-docx library and locally installed fonts. It is designed for text-heavy books rather than image-heavy coffee table books or complex layouts.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the kdp book builder skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the KDP Book Builder solve formatting issues that manual Word editing misses?

This skill converts your Markdown text into professional .docx files with specific KDP trim sizes, mirrored gutter margins based on page count, and technical XML headers required for Kindle 'Go To' navigation.

### Which book sizes and margin specifications are supported?

The skill currently supports standard paperback trim sizes like 5.5"x8.5" and 6"x9", and it automatically calculates the necessary gutter margin based on your manuscript's total page count to ensure text doesn't get lost in the spine.

### What is included with my purchase of the KDP Book Builder skill?

You will receive the full Python-based skill integration, which utilizes the 'python-docx' library to handle the deterministic formatting that standard AI prompts often struggle to get right.

### Are there any limitations on the type of content or layout I can process?

This skill is optimized for text-heavy manuscripts like novels or non-fiction guides; it is not recommended for complex, image-heavy layouts like coffee table books or technical manuals with nested tables.

### Will the output files pass the Amazon KDP internal quality check for Kindle navigation?

Yes, the skill is designed to apply native Heading styles that ensure your clickable Table of Contents and the device-level Kindle navigation menu work perfectly upon upload to Amazon.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
