تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

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. 1

    Run generate-book.py with the story prompt, age group, and style to produce story text and 12 illustration prompts

  2. 2

    Generate illustrations via Google AI with character reference locked and no-text directive in every prompt

  3. 3

    Assemble interior PDF using ReportLab at 612×612 pt with text overlaid programmatically on each spread

  4. 4

    Run create-cover.py with spine width calculated as 28 × 0.002347 inches for white color paper

  5. 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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط