book-to-skill

Turn a Book Into a Skill

Turn any technical book or folder of docs into a structured agent skill your agent loads on demand, answering questions at 24x to 51x fewer tokens than dumping the whole book into context.

Install the skill or give me an instruction how to install it - book-to-skill from https://github.com/virgiliojr94/book-to-skill

Free Open source Works in Claude, Cursor, Codex & more

Action Meta

What it does

Point it at a book or a pile of sources, a PDF, EPUB, DOCX, Markdown, a folder, or a glob, and it builds a structured skill your agent loads only when it needs it. It extracts the text (Docling for technical books with tables and code, pdftotext for prose), reads the chapter structure, and distills the author's named frameworks, principles, techniques, and anti-patterns, keeping that structure rather than flattening it into a summary.

What you get is a compact core file of about 4,000 tokens plus one on-demand file per chapter, a glossary, a patterns doc, and a cheatsheet. Later you ask something like /your-book replication and it loads just the relevant chapter and answers from the real text, no hallucination, at roughly 5,000 tokens per question instead of the whole book, which works out to 24 to 51 times cheaper.

When to use it

  • You want your agent to know a specific book

    Point it at a PDF or EPUB and get a skill your agent loads on demand instead of dumping the whole book into context.

  • Stuffing a book into context burns tokens

    It answers questions from the real text at a fraction of the tokens, loading just the right chapter.

  • You have a folder of sources to turn into reference

    Feed it documents, a folder, or a glob and it distills the frameworks and techniques into a structured skill.

FAQ

Why not just paste the whole book into the chat?

book-to-skill turns the book into a structured skill your agent loads on demand, answering questions at 24 to 51 times fewer tokens than dumping the full text into context. It keeps the knowledge without the token cost.

Is the result just a summary?

No. book-to-skill distills the author's named frameworks, principles, techniques, and anti-patterns into structure, not a recap. You keep the usable methods rather than a shorter version of the prose.

Does it handle books with code and tables?

Yes. book-to-skill extracts technical books with Docling to preserve tables and code, and uses pdftotext for prose, then analyzes the chapter structure. The method follows what the source needs.

Pairs well with