kindlepub
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kindlepub" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9d56ed0b75a4310c11a4918d6a97987770b652731f4d20d6388a759bb88da682. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/kindlepub before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Kindle publishing skill: focused on tasks and workflows related to Kindle publishing, helping an AI agent perform publishing work efficiently.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Take a finished manuscript all the way onto Amazon. Each format (Kindle ebook, paperback, hardcover) is a SEPARATE KDP title that KDP links on one product page. The Kindle ebook is the fast win; the paperback is the value-priced print edition; the hardcover is the premium edition. You can do one, two, or all three.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: Kindle出版技能
slug: kindlepub
version: 1.0.0
displayName: Kindle出版技能
description: >
Kindle出版技能专用技能,帮助AI Agent高效完成相关任务。
summary: "Kindle出版技能专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 出版与内容
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"KindlePub — Amazon KDP publishing pipeline
Take a finished manuscript all the way onto Amazon. Each format (Kindle ebook, paperback, hardcover) is a SEPARATE KDP title that KDP links on one product page. The Kindle ebook is the fast win; the paperback is the value-priced print edition; the hardcover is the premium edition. You can do one, two, or all three.
Build everything to the edge, then hand the user the irreversible clicks. The user enters credentials, operates native file pickers, sets anything permanent, and presses Publish. You never type passwords or drive an OS file-open dialog.
Cover approach (important): generate the cover ART with Gemini Nano Banana, then assemble the actual cover in KDP Cover Creator — it lays in the title/author typography and auto-sizes the spine to the page count. Do not build a custom print-cover PDF or a custom 6×9 interior PDF; let KDP's tools size and paginate. (This is the path that shipped.)
What you need from the user (gather first)
- The FINAL manuscript source. A Google Doc is ideal; a .docx also works. Confirm it is truly final — filenames lag content, so open it and read the version stamp (a "v15.7 FINAL" doc beats a "v16 draft" with a higher number).
- Title, subtitle, author name, and the imprint/publisher line.
- Cover art or a cover concept. If they have brand art, great; if not, you will generate it with Nano Banana (see Phase 3).
- Which formats they want, and their KDP account email.
Flag early: the KDP account needs Two-Step Verification + tax/banking complete before the final Publish and before any royalty payment. That is the user's to finish.
Phase 1 — Lock the source, export a clean DOCX
If the source is a Google Doc, export a clean DOCX through the logged-in browser by navigating
to: https://docs.google.com/document/d/<DOC_ID>/export?format=docx. This downloads the .docx
with no copy/paste loss. Stage it for the EPUB build and (for print) for upload to KDP.
Phase 2 — Build the Kindle EPUB
Use scripts/build_epub.py. Edit the CONFIG block at the top (input DOCX, title, subtitle,
author, contributors, cover JPG path, publisher) and run it. It uses mammoth (DOCX->HTML) +
ebooklib, segments chapters, and adds the front matter most manuscripts lack: a copyright
page, a medical/crisis disclaimer (the 988 block — keep it for anything touching health or
safety), and a navigable table of contents. It preserves in-text diagrams.
Then validate with scripts/validate_epub.py (wraps epubcheck, which needs Java). Ship only
on a clean pass. The script already encodes the three ebooklib traps that cost real time the
first time:
- Set
EpubHtml.contentto HTML with NO<?xml ... encoding?>declaration. ebooklib's lxml path silently returns an EMPTY body on an encoding-declared Unicode string, so your pages come out 0 bytes and "valid." - Attach CSS with
add_link(...), not a<link>in your own head — ebooklib rebuilds the head from the title + links you register. - After
set_cover(create_page=True), set the cover pageis_linear=Trueand passwrite_epub(..., {'epub3_pages': False}), or epubcheck throws OPF-096 / the page-list generator crashes on the empty cover body.
Phase 3 — The cover: Nano Banana art → KDP Cover Creator
Generate the cover art with Nano Banana (Gemini's image model), then assemble the cover in KDP Cover Creator. Cover Creator adds the title/author typography and auto-sizes the spine to the page count, so there is no custom PDF and no manual spine math.
Read references/nanobanana-cover-prompts.md for the prompt recipes and the one rule that
matters: AI models always sneak garbled text onto pennants, clothing, book spines, and screens,
so the prompt must forbid text on those surfaces — Cover Creator adds the real title later. The
flow:
- Give the user the prompt (and tell them which reference image to attach). They generate the art in Nano Banana / Gemini and send back the file (no text in the art).
- In KDP, open Cover Creator, upload that art, and let it lay in the title, subtitle, and author and size the spine + back automatically. Uncheck "my cover has a barcode" so KDP leaves room for its own. Iterate on the layout with the user.
- For the Kindle ebook front cover, use Cover Creator's front-cover image (download it) as the ~1600x2560 JPG you upload in the ebook Content step — same art, one cover everywhere.
(Do NOT build a custom wraparound print-cover PDF — Cover Creator is the path.)
Phase 4 — Print interior (paperback / hardcover) — no custom PDF
Do not build a 6×9 interior PDF. Upload the manuscript DOCX to KDP for the print title; KDP paginates it, and Cover Creator sizes the spine to the resulting page count. Pick Black & white interior for a text book (see the print-cost trap in the walkthrough) and the common 6×9 trim. Let KDP's tools handle pagination and the spine.
Phase 5 — Draft the KDP metadata
Fill in references/metadata-template.md: title, subtitle, author, the back-cover-style
description (KDP allows light HTML — paste clean <p> paragraphs via the Description box's
"Source" mode), 3 BISAC categories, 7 keywords, the AI-content answers, price, and the release
plan. Reuse the description as the online blurb and a trimmed version on the back cover.
Phase 6 — Walk the user through KDP
Drive the browser through Details -> Content -> Pricing -> Publish. Read
references/kdp-walkthrough.md for the field-by-field script and every decision (AI-content
disclosure, DRM, KDP Select, pre-order dates, the Cover Creator steps, and the print-cost trap
that quietly forces a ~$49.99 hardcover). Hand the user every native file picker and the final
Publish click.
Phase 7 — Document it
When the book is set up, save a publication record to the user's knowledge base (every KDP book id, the locked blurb + back-cover copy, asset locations, pricing, the AI disclosures, release dates) so the next format and the next book go faster. If the user keeps a notes repo, write it there and commit.
The scripts are templates, not black boxes
The two EPUB scripts each have a CONFIG block at the top — edit it for the book at hand. They are the exact tools that shipped a real title; read them before running so you can adapt rather than fight them. The cover and print spine are done in KDP's own tools (Cover Creator), not in code.
Tools & adapters
| Capability | Claude Code / Cowork | Codex / Cursor / other |
|---|---|---|
| Build EPUB | bash + python3 scripts/build_epub.py (pip deps) |
same |
| Validate EPUB | python3 scripts/validate_epub.py (epubcheck + Java) |
same |
| Generate cover art | hand user the Nano Banana / Gemini prompt | same |
| Assemble cover + spine | KDP Cover Creator in the browser | same |
| Drive KDP / native pickers | hand the user the irreversible clicks | same |
Deps: mammoth ebooklib beautifulsoup4 lxml epubcheck (+ Java on PATH for epubcheck).
Portability
Class: portable. A self-contained pipeline with no external coupling and no secrets — the
only dependencies are pip packages plus Java for epubcheck, and there is no env config
(requires_config: []). The cover and spine are assembled in KDP Cover Creator (no custom PDF),
and the worked example in references/nanobanana-cover-prompts.md is fully generic (no real book
or author names). The installed original remains the untouched fallback until this copy is
validated at parity.
Acceptance check
- Trigger: "put my book on Amazon" / "make this a Kindle book" / "I finished my manuscript, now what".
- Expect: builds an epubcheck-clean EPUB; generates cover art with Nano Banana (no garbled text); assembles the cover in KDP Cover Creator (auto-spine) and reuses its front for the ebook; uploads the manuscript DOCX for print; drafts KDP metadata; walks Details→Content→Pricing→Publish, handing the user every irreversible click.
- Must NOT: type the user's passwords or drive native OS file pickers; ship an EPUB that fails epubcheck; build a custom print-cover or 6×9 interior PDF (use Cover Creator
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 Kindle 出版流水线,涵盖电子书与纸质书出版全流程
- 解决用户从完稿到上架 Amazon 的实际痛点,属于高价值/高频刚需场景
Highlights
- description 明确描述用途,acceptance check 中提供具体触发词(如 "put my book on Amazon")
- 覆盖合理且边界清晰
Areas to improve
-
description 重复 Reported severity: Minor
顶层 frontmatter 与 skill_body 内均包含 description 字段,内容重复
Recommendation: 建议移除 skill_body 内的 description 字段,保留顶层 frontmatter 中的定义
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未显式设置 When to Use 章节,但 acceptance check 已隐含使用场景
Recommendation: 建议在文档开头添加 When to Use 章节,明确列出典型使用场景
Highlights
- 文档结构清晰,分 Phase 1-7 详细步骤
- 含端到端示例与工具说明,frontmatter 完整
Highlights
- 工具来源明确(scripts/build_epub.py 等),参数说明清晰
- 覆盖主要异常(如 epubcheck 验证、编码陷阱),不可逆操作明确交由用户执行
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 31
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- docs.google.com
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.