Assemble coloring pages into KDP-ready PDF and generate full book cover. USE WHEN user says 'build coloring book', 'assemble pdf', 'create book pdf', 'build kdp pdf', 'make book cover', 'generate cover', 'kdp book assembly', 'package coloring book'.
Assembles all approved coloring pages into a KDP-compliant PDF interior and generates the full cover (front + spine + back).
kdp-image-reviewer skill)/project:kdp-create-book command reaches the build phaseCheck that:
output/{theme_key}/images/config.pyoutput/{theme_key}/plan.json (for title/subtitle)If theme not in config.py, register it:
"{theme_key}": {
"name": "{Title}",
"book_title": "{Full Title}",
"prompt_file": "prompts/{theme_key}.txt",
},
python build_pdf.py --theme {theme_key} --author "Author Name"
With custom title/subtitle (from plan):
python build_pdf.py --theme {theme_key} --title "Book Title" --subtitle "Subtitle Text" --author "Author Name"
IMPORTANT — KDP Metadata Consistency: Always pass --author so the author name appears on the title page and copyright page. KDP manual review checks that title and author match across title page, copyright page, cover, and spine. Mismatches cause rejection.
PDF Structure:
Specs: Page size auto-detected from plan JSON (page_size field) or theme config. Supported: 8.5"x11" (portrait) or 8.5"x8.5" (square). No bleed, single-sided coloring pages.
Check the output:
output/{theme_key}/interior.pdfpython generate_cover.py --theme {theme_key} --author "Author Name"
With custom title:
python generate_cover.py --theme {theme_key} --author "Author Name" --title "Custom Title"
Cover layout (left to right):
Cover dimensions are auto-calculated based on page count:
Check:
output/{theme_key}/cover.pngReport to user:
BOOK COMPLETE!
Interior PDF: output/{theme_key}/interior.pdf
- Pages: {total} (even count)
- Size: 8.5" x 11"
- Coloring pages: {num_images} (single-sided with blank backs)
Cover: output/{theme_key}/cover.png
- Dimensions: {width}px x {height}px
- Spine: {spine_width}"
Plan: output/{theme_key}/plan.json
- Title: {title}
- Keywords: {keywords}
NEXT STEPS FOR KDP UPLOAD:
1. Go to kdp.amazon.com
2. Create new Paperback
3. Upload interior PDF
4. Upload cover image
5. Set trim size to 8.5" x 11" (no bleed)
6. Use title, description, and keywords from the plan
output/{theme_key}/interior.pdf — KDP-ready interioroutput/{theme_key}/cover.png — Full cover at 300 DPI