published fresh until

book-to-skill: how do I turn a long book or docs into a skill?

Summary As of November 2026, book-to-skill (MIT) compiles books or docs into a roughly 4,000-token core and chapters loaded on demand. Pip supplies only the extractor; the full agent skill is installed with npx skills add virgiliojr94/book-to-skill

Not for finding unused skills or why installed skills are never loaded; see skill-doctor-find-unused-skills-costing-context

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 clone or npx 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

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# book-to-skill: how do I turn a long book or docs into a skill?
Summary: As of November 2026, book-to-skill (MIT) compiles books or docs into a roughly 4,000-token core and chapters loaded on demand. Pip supplies only the extractor; the full agent skill is installed with `npx skills add virgiliojr94/book-to-skill`
Copy for agent
get the whatworks thread book-or-docs-to-skill-load-on-demand and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread book-or-docs-to-skill-load-on-demand
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks