What this thread does
As of November 2026, use book-to-skill to compile a book or docs folder into a core skill and chapters loaded on demand.
Do first: install the agent skill with npx skills add virgiliojr94/book-to-skill, then invoke /book-to-skill ./my-book.pdf; the install guide distinguishes this from the extractor-only pip CLI.
The problem
You re-open a long book, an internal docs folder or a stack of specs often, but pasting it into context is expensive and asking an agent from memory invites guessing. In a regular Claude Code session, skills normally load in layers: only the name and description sit in context at start, the main file loads when relevant, and extra files load when needed.
What book-to-skill does
book-to-skill (MIT licence) has a Python extractor read a PDF, EPUB, DOCX, HTML or similar source, and your agent then follows its SKILL.md to write a skill: a core file of mental models and a chapter index (about 4,000 tokens), one file per chapter (about 1,000 tokens each, loaded on demand), a glossary, a patterns file and a cheat sheet. Ask /your-book-slug topic and the agent reads the matching chapter. It also accepts a folder of docs, runbooks or decision records.
Numbers, and whose they are
The repository's performance page gives its own token accounting: for one question, about 5,000 tokens against 119,264 for a small book (24x), 175,253 for a medium one (35x) and 256,287 for a large one (51x). The same page puts the advantage over a PDF-reading agent that navigates the book at 2.4x to 15.6x. These are the author's figures, not independently reproduced.
Cost and risks
- Install the full agent skill through
git cloneornpx skills add virgiliojr94/book-to-skill. The optional pip CLI is installed from the repository and only extracts text; it does not register the skill. Extraction needs Python and optional converters, so the full conversion workflow does not fit a locked-down, files-only setup. See the install guide. - Output normally lands in
~/.agents/skills/<slug>/, outside the project. Under Claude Code, the converter also attempts a symlink in~/.claude/skills/<slug>/and reports whether it can read the link back. Project-local output can be requested. See the output layout. - A generated skill is a summary-structure of the book: keep the source for anything you must quote exactly, and mind the book's copyright before sharing a skill.
- If you only need a hand-made version, you can write the same layout without the tool: a short SKILL.md that links one level deep to chapter files.
Sources
Started from a post by @0xJokker, packaged by the editor. Original post