01
book-to-skill — turn a book into a skill your agent loads on demand
A CLI plus Claude Code skill that converts a technical book — PDF, EPUB, or DOCX — into a compact, navigable Agent Skill instead of a wall of PDF text. It extracts the book into a ~4K-token SKILL.md of mental models plus per-chapter files (~1K tokens each) that load only when you ask for them, so you query /designing-data-intensive-apps replication and it pulls the relevant chapter rather than the whole volume. Extraction runs locally (Docling for tables/code, pdftotext for prose); the analysis pass runs through the agent you already have, so there's no separate API bill. Install as a skill with git clone … ~/.claude/skills/book-to-skill, or as a tool with pip install "book-to-skill[pdf,epub,docx]", then /book-to-skill ~/my-book.pdf ddia. 7.3k stars, MIT.
Reach for it when you keep pasting the same reference book into context and paying the token tax every turn — the project claims 24–51x savings versus dumping the full text. Delete the ritual of dropping whole chapters into the chat window and re-uploading them tomorrow. The tradeoff is two-sided: chapter auto-detection needs explicit "Chapter N" headings, so a book with fancy section titles degrades; and a skill is a lossy compression of the book, not the book — it's a fast index to what you already trust, not a substitute for having read it.