# book-to-skill

> Distil a technical book into an agent skill

- Category: Agents & Automation / Agent Skills & Plugins
- Language: Python
- Licence: MIT
- Repository: https://github.com/virgiliojr94/book-to-skill
- Canonical page: https://ai-tldr.dev/tools/book-to-skill/

## In short

book-to-skill solves a specific, familiar problem: you want an agent to work the way a particular book teaches, and dumping the PDF into context is both expensive and ineffective. It sits in the Agent Skills & Plugins category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.

## Overview

book-to-skill solves a specific, familiar problem: you want an agent to work the way a particular book teaches, and dumping the PDF into context is both expensive and ineffective. Instead of feeding the whole text, it reads the source and produces a skill — a compact `SKILL.md` carrying the book's core mental models, decision rules and a chapter index, with the full chapters split into separate markdown files the agent loads only when it needs them.

The split is what makes it cheap. The README puts the entry file at roughly 4,000 tokens and each on-demand chapter at about 1,000, and claims a 24×–51× reduction against pasting the source into context. Alongside the chapters it writes a `glossary.md`, a `patterns.md` and a `cheatsheet.md`, so the agent has short reference surfaces for terminology and recurring patterns rather than having to re-read a chapter to recall one definition.

It accepts a path, a folder or a glob, so a book is the headline case but a documentation set or a pile of internal PDFs works the same way. Output targets the open Agent Skills standard, which means the result is usable from GitHub Copilot CLI, Amp, Claude Code and Hermes Agent rather than being locked to one client. The converter is Python and MIT licensed; optional per-format extractors (poppler for PDFs, ebooklib for EPUBs) are installed as needed. The MIT licence covers the converter, not whatever you feed it — check that you have the right to process a copyrighted book before you do.

## What it does

- Converts PDFs, EPUBs, folders or globs into a structured agent skill rather than a raw text dump
- Two-tier output: a ~4,000-token `SKILL.md` with mental models plus ~1,000-token per-chapter files loaded on demand
- Generates `glossary.md`, `patterns.md` and `cheatsheet.md` as short reference surfaces
- Claims a 24×–51× token reduction versus pasting the source into context
- Emits the open Agent Skills format — works with Copilot CLI, Amp, Claude Code and Hermes Agent
- Installable through the skills CLI or by cloning straight into your skills directory

## Getting started

Python 3 is required. Format-specific extractors (poppler for PDFs, ebooklib for EPUBs) are optional and installed per source type.

1. Install the skill

   The skills CLI is the short path; cloning into your skills directory does the same thing manually.

```bash
npx skills add virgiliojr94/book-to-skill

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

2. Convert a source

   Point it at a single file, a folder or a glob. The optional second argument names the skill it produces.

```bash
/book-to-skill <path|folder|glob> [skill-name]
```

3. Check what it wrote

   You get `SKILL.md` (mental models plus a chapter index), one markdown file per chapter, and `glossary.md`, `patterns.md` and `cheatsheet.md`. Skim `SKILL.md` first — it is what the agent reads every time.

4. Use the generated skill

   The output follows the open Agent Skills standard, so install it into Claude Code, Copilot CLI, Amp or Hermes Agent the same way you would any other skill.

## When to use it

- Give a coding agent a specific methodology from a book without pasting the book into every prompt
- Turn an internal handbook or a documentation set into a skill your team's agents can share
- Cut the token cost of reference-heavy work where only one chapter is relevant per task
- Build a small library of domain skills — one per book — instead of one sprawling system prompt
