kdp-publisher
由 kralsamwise 提供
DevOps & Cloud简介
Helps agents create, format, and publish children's books and activity books to Amazon KDP.
描述
该技能的功能
Manages the end-to-end pipeline for publishing children's picture books and activity books to Amazon Kindle Direct Publishing. Handles story generation, illustration prompting, PDF assembly for interior and cover, metadata writing, and KDP form submission via browser automation. Includes production-tested workarounds for KDP's form and file upload behavior.
Encodes non-obvious KDP automation fixes, like using JS evaluate instead of Playwright type and CDP file input dispatch, that aren't documented by Amazon and are only discoverable through production failures.
何时使用
- Generating and formatting a children's picture book for Amazon paperback
- Building a math workbook or coloring book with correct KDP trim dimensions
- Creating a full-wrap cover PDF with accurate spine width
- Automating KDP manuscript upload using browser JavaScript
- Writing backend keywords and category selections for a self-published book
示例工作流
User asks: publish a 28-page children's picture book about a curious octopus who learns to share, ages 3-5, watercolor style
- 1
Run generate-book.py with the story prompt, age group, and style to produce story text and 12 illustration prompts
- 2
Generate illustrations via Google AI with character reference locked and no-text directive in every prompt
- 3
Assemble interior PDF using ReportLab at 612×612 pt with text overlaid programmatically on each spread
- 4
Run create-cover.py with spine width calculated as 28 × 0.002347 inches for white color paper
- 5
Reload KDP in browser, fill fields via JS evaluate with element IDs, upload interior and cover PDFs using CDP DOM.setFileInputFiles, then submit with AI disclosure selected
Paperback listing created on Amazon KDP with interior, cover, and metadata, ready for review and pricing
前置要求
- GOOGLE_AI_API_KEY environment variable
- Amazon KDP account
安装
clawhub install kralsamwise/kdp-publisher运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。