AI news and explainers at 7 AM weekdays, plus a Sunday weekly at 8Get it in your inbox

METAL LAB

virgiliojr94/book-to-skill

24,374PythonMIT

A tool that turns technical book PDFs into on-demand reference skills for AI coding agents

book-to-skill converts technical book files in formats like PDF, EPUB, and DOCX into structured skills that AI coding agents such as Claude Code, GitHub Copilot CLI, and Amp can load on demand. Instead of dumping the whole book into an agent's context every time, it splits the content into core concepts, per-chapter files, a glossary, a pattern list, and a cheatsheet, loading only the relevant chapter when asked. On real books, this measured 24x to 51x fewer tokens than dumping the whole book into context to answer a single question.

What it does

  1. Point it at a file, folder, or glob of source documents, and a deterministic Python extractor pulls out clean text and metadata from formats like PDF, EPUB, DOCX, HTML, RTF, and MOBI.
  2. An AI agent then follows the instructions in a spec file called SKILL.md to organize that content into mental models, per-chapter files, a glossary, a patterns file, and a decision cheatsheet.
  3. Chapter files load only when a related question is asked, so the skill loaded in an agent's context stays small most of the time.
  4. The same approach works beyond books: internal documentation, brand guidelines, stacks of research papers, and specs or standards that people reference often but never memorize.
  5. It follows the open Agent Skills standard, so the same SKILL.md format works across GitHub Copilot CLI, Amp, and Claude Code.

Why it matters

People often read a technical book once and forget it months later, and asking an AI about it usually leads to made-up answers because the book was never actually loaded. This tool matters because it lets developers pull real, structured content from books or documents they own, right when they need it during actual work.

Terms in this repo

  • Agent Skills · an open standard format that defines how AI agents load and use add-on capabilities
  • SKILL.md · the spec file that instructs an agent how to build and use a skill
  • token · the basic unit of text an AI model processes, tied directly to cost and speed
  • OCR · technology that recognizes text in scanned page images and converts it into readable text
  • on-demand loading · loading data only when it is actually needed, rather than all at once

Repository description (English)

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

Open on GitHub

Coverage

Trending repos

All repos →

Latest from METAL LAB