K2pdfopt Skill — Development skill for Claude Code
Claude Code skill: convert PDF books to Kindle/Kobo-ready PDFs via k2pdfopt, verified by statistical page sampling.
How to install K2pdfopt Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open asdrubalivan/k2pdfopt-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What K2pdfopt Skill does
Claude Code skill: convert PDF books to Kindle/Kobo-ready PDFs via k2pdfopt, verified by statistical page sampling.
Alternatives in Development
- Book To Skill — Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work 25.9k ★
- Package OfficeCLI Skill As AionUi Assistant — Convert an OfficeCLI skill into a fully wired AionUi assistant preset, or update an existing one 20.3k ★
- Translate Book — Claude Code skill that translates entire books (PDF/DOCX/EPUB) into any language using parallel subagents 542 ★
README
🇪🇸 [Leer en español](README.es.md)
k2pdfopt
A Claude Code skill that converts scanned/native PDF books into Kindle- and Kobo-ready PDFs with [k2pdfopt](https://www.willus.com/k2pdfopt/), then verifies the result by sampling rendered pages instead of trusting the conversion blind — or rendering all of them.
 *Real conversion, same book: 2.9 MB / 140-page scan → 51.3 MB / 727-page grayscale Kindle output (`-fs 18`) and 97.8 MB / 717-page color Kobo Libra Colour output (`-fs 22`). Cover photo and publisher logos blurred here for copyright reasons — the source book isn't ours to redistribute; the point is the grayscale/color contrast, which survives the blur.*
The problem
A PDF built for print or scanned from a physical book does not read well on a 6-7" e-ink panel: tiny justified text, margins sized for 8.5x11 paper, and sometimes JPEG2000-encoded scan images that not every reader decodes. A single `k2pdfopt` invocation isn't enough on its own, either — you have to pick the right mode/device profile/DPI for the *target device*, and on a 700+ page reflowed output you have no practical way to confirm nothing broke without opening the whole book.
What the skill does
- Resolves the k2pdfopt binary — no Homebrew formula exists for it (see below), so this is a real step, not a formality.
- Inspects the source PDF — page count, whether it's a real text layer or a pure scan, whether it embeds JPEG2000 images.
- Pre-flattens JPEG2000 scans to JPEG when needed — some k2pdfopt builds don't decode JP2 reliably; poppler does, so it's used as a pre-pass instead of gambling on silent corruption.
- Picks target device(s) — Kindle, Kobo Libra, or both.
- Calibrates large-print settings, only if asked — font size in points is tuned per device (see below for why that's not a constant), with an optional visual size
Related Skills
Dd Book
Open the Book to Knowledge and Action department (reflect stage) and route the request to one of its 45 atomic
Convert Resume Into HTML
Claude Code slash command that converts a resume PDF/DOCX into a clean, A4-sized HTML page
Cheatsheet
Generate a one-page exam cheatsheet from course-index and errors/log.md. Outputs to cheatsheet/final.md. Optio
Distribution Skill
Digital product distribution skill for Claude Code — 8 platforms (KDP, Apple Books, Gumroad, Payhip, D2D, Kobo
Learn From Materials
Turn PDFs, books and papers into interactive learning webpages|将复杂材料转化为可追溯、可测验、可做笔记的学习网页
Twin Sparrow Deep Structure Learning
Enter deep-structure learning mode for books, PDFs, passages, theories, symbols, dreams, religions, scientific
Related Agents
Stats Reviewer
Statistics and data-science methodology expert for the code-review panel. Spawned when the diff touches statis
Book Distiller
Extract quotes and chapter summaries from books for the Library OS. Given a book title, author, and optional s
Knowledge Harvester
Finds books (PDF, EPUB), academic papers, vendor whitepapers, standards drafts, and technical blogs on copper