Dumping a whole PDF into an agent's context window works until the book is 400 pages and the agent needs page 340. book-to-skill takes a different approach: it converts books, technical docs, and PDFs, EPUBs, or DOCX files into a structured skill package an agent loads on demand — a core mental-model summary, a chapter index, individual chapter files pulled in only when needed, a glossary, and quick-reference decision tables.
The project's own claim is 24 to 51 times fewer tokens than loading the raw book into context every time, because the agent is navigating a pre-built index instead of re-reading the whole thing on every query. The output reads like structured study notes, not a copy of the original text.
/book-to-skill <path|folder|glob> [skill-name] — it supports analysis-only runs, generating from an existing analysis, and updating a skill when new material needs folding in. Everything processes locally; nothing gets uploaded anywhere. It works with GitHub Copilot CLI, Amp, and Claude Code, since the output follows the open Agent Skills standard.
The MIT license covers the converter itself, not whatever book you feed it. Point it at material you actually own the rights to use — the tool respects that boundary, so should the person running it.
More AI agent skills and prompts like this live on Masterphub.io.