book-to-skill
CLI Toolvirgiliojr94/book-to-skill
Turn any technical book PDF into a skill for AI agents.
Overview
A CLI tool that distills technical books, document folders, or source collections into structured agent skills. Works with GitHub Copilot CLI, Amp, and Claude Code. Reduces token usage by 24x-51x compared to dumping the book into context.
README Preview
\n \n\n\nbook-to-skill\n\n\n Turn any technical book, document folder, or collection of sources into a unified agent skill — ready to study, reference, and use while you work in GitHub Copilot CLI, Amp, or Claude Code.\n\n\n\n \n \n \n \n \n\n\n\n \n\n\n\n 🏆 #10 Python Repository of the Day and #25 Repository of the Day on Trendshift (May 23, 2026)\n\n\n\n Why ·\n What it generates ·\n Beyond books ·\n Usage ·\n Requirements ·\n How it works ·\n Discovery Loop Tax ·\n FAQ ·\n Install ·\n Changelog ·\n Performance ·\n Architecture\n\n\n\n 24×–51× fewer tokens than dumping the book into context to answer one question, measured on real books (how it's measured).\n\n\n**How it works, in 3 steps:**\n\n1. **Point** it at a file, folder, or glob — `/book-to-skill ./my-book.pdf`\n2. **It distills** the book into a skill — frameworks, decision rules, anti-patterns, and per-chapter files. Structure, not a summary.\n3. **Your agent loads it on demand** — ask `/my-book replication` and it reads the right chapter and answers from the real content, no hallucination.\n\n---\n\n## 🤔 Why\n\nYou buy a great technical book. You read it once. Three months later you can't remember chapter 7 existed.\n\nThe usual workarounds don't help:\n- 📄 "Let me just search the PDF" → you get a list of pages, not answers\n- 🧠 "I'll ask the agent about this book" → it either hallucinates or says it doesn't have the content\n- 📝 "I'll take notes as I read" → you end up with a 200-line doc you never open again\n\n**book-to-skill solves this by turning the book into a structured skill your agent loads on demand.**\n\nOnce installed, you just type `/your-book-slug replication` and the agent reads the right chapter and answers from the actual content. No hallucination. No digging through PDFs. The book becomes part of your workflow.\n\nWorks with any host that supports the open [Agent Skills](https://github.com/agentskills/agentskills) standard — GitHub Copilot CLI, Amp, and Clau