Skip to content AI News: Qwen-Image-2.1-Turbo: Alibaba's open image model now draws in 8 steps →
SK-34 · Skill · research · rev. 10/2026

Book to Skill: a book or a folder of docs as a Claude skill

Book to Skill is a skill by Virgilio Junior that turns a book, or a folder of your own documents, into a new skill: a short SKILL.md with the main frameworks and rules, plus chapter files the agent loads only when a question needs them.

Publishervirgiliojr94 Community
LicenseMIT
Works inClaude CodeCodex
Checked10 Oct 2026
Install
npx skills add virgiliojr94/book-to-skill
Source on GitHub ↗★ 34K 10 Oct 2026

Pasting a whole book into a chat burns tokens and still loses detail. Book to Skill reads the book once and writes a skill from it: a main SKILL.md of about 4,000 tokens with the book's frameworks, decision rules and a chapter index, plus one file per chapter, a glossary, a list of patterns and a cheat sheet. The agent loads a chapter only when your question needs it. The README claims 24 to 51 times fewer tokens than putting the full book in context, on the author's own tests. It works just as well on your project docs as on a published book. For the basics, see Claude Code skills.

Use only the official repo

The author's own security notice, dated August 17, 2026, warns that a re-upload under another GitHub account contained malware that stole browser and crypto-wallet data. That copy is gone, but clones keep appearing. Install from virgiliojr94/book-to-skill and nowhere else.

How it works

  1. A local Python script pulls the text out of the file: PDF, EPUB, DOCX, HTML, RTF, Markdown or plain text, and Kindle formats through Calibre.
  2. It asks whether the book is technical or text-heavy and gives a cost estimate before it starts.
  3. The agent writes the skill to ~/.agents/skills/<name>/, and under Claude Code links it into ~/.claude/skills/.
  4. From then on you ask it questions with /<book-name> <topic>.
CommandDoes
/book-to-skill ./my-book.pdfOne book into one skill
/book-to-skill ~/project-docs/ project-knowledgeA folder of documents into a skill with the name you give
/book-to-skill "~/books/*.epub" my-librarySeveral books into one skill

It also has modes to analyze without generating, and to fold new material into a skill you made earlier.

How to install it

npx skills add virgiliojr94/book-to-skill

or clone it straight into your skills folder:

git clone https://github.com/virgiliojr94/book-to-skill.git ~/.claude/skills/book-to-skill

It runs in Claude Code, Codex, GitHub Copilot CLI, Amp, OpenCode and others; the README lists each tool's folder. Each format needs its own extractor, such as pdftotext for PDFs or ebooklib for EPUB. Run python3 scripts/extract.py --check to see what's missing; the script asks before installing anything.

Limits

  • Scanned PDFs with no text layer won't work. Run them through OCR first, for example with ocrmypdf.
  • Copyright. The license covers the converter, not your books. The README says a skill made from a copyrighted book is for your own use only, and the generator avoids copying raw passages.
  • Privacy. Extraction is local, but the agent that writes the skill sends the text to its model provider.
  • Publishing is optional. At the end it can push the new skill to GitHub; that defaults to a private repo.

When to use it

  • A reference book you keep going back to: a style guide, a framework, a standard.
  • Your team's docs, so the agent answers from them instead of guessing.
  • Study: one skill per textbook, queried chapter by chapter.

To write a skill from your own routine rather than a book, use skill-creator.

Sources

  1. virgiliojr94/book-to-skill README, SKILL.md and usage docs — GitHub, accessed October 2026
  2. book-to-skill security notice, August 17, 2026
Weekly

New prompts in your inbox

One email a week: the best new prompts and one short guide. Unsubscribe any time. Privacy policy