# Book to Skill

Source: https://trendhub.net/skills/virgiliojr94-book-to-skill
Repository: https://github.com/virgiliojr94/book-to-skill
Author: Virgilio Junior (https://github.com/virgiliojr94)
License: MIT
GitHub stars: 39,497

Book to Skill is a single converter skill that turns a PDF, EPUB, DOCX, Markdown or HTML source (or a whole folder of them) into a new agent skill with per-chapter files, a glossary, a patterns file and a decision cheatsheet. Your agent then answers questions from the right chapter instead of guessing. It suits developers who keep reopening technical books, runbooks or internal docs.

## What problems it solves

- **You forget what a book said**: The book becomes a skill your agent loads, so you can ask about a topic and get an answer drawn from the chapter that covers it.
- **Pasting a whole PDF wastes context**: Chapters live in separate files that the agent reads only when a question needs them, keeping the always-loaded part small.
- **Agents invent details about books**: Answers come from extracted chapter summaries and a topic index rather than the model's memory of the title.
- **Internal docs are scattered and unread**: A folder of runbooks, decision records or brand guidelines can be folded into one skill and extended later with new files.

## Install

### Any Agent Skills host

Uses the cross-agent skills CLI to install the converter.

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

### Claude Code (manual)

Clone into the matching skills folder for Copilot CLI, Amp, Hermes, OpenClaw or OpenCode instead, as the README lists.

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

You need Python 3 for the bundled extractor; install pdftotext, pypdf or docling for PDFs (docling for books with code and tables), and Calibre for MOBI or AZW. Scanned PDFs have no text layer, so run OCR on them before converting.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/book-to-skill`: Extracts a book or document folder and generates a skill with chapter files, glossary, patterns and a decision cheatsheet. (https://trendhub.net/skills/virgiliojr94-book-to-skill/book-to-skill.markdown)

## Questions

### Which agents can use it?

Any host that reads the open SKILL.md format; the README lists Claude Code, Codex, Amp, OpenCode, OpenClaw, Hermes Agent and GitHub Copilot CLI.

### Does it upload my books?

Extraction and analysis run locally and the tool sends nothing itself; text your agent passes to a cloud model is still covered by that provider's normal data terms.

### Can I share a skill made from a book?

The README advises keeping skills built from third-party copyrighted books private; your own writing, internal docs you may share, and openly licensed material are fine within their licences.

### Is it free?

Yes, the converter is MIT-licensed; that licence covers the code and skill definition, not the documents you feed it.

## Before you install

The skill runs a local Python extraction script, writes the generated skill into your skills folder (and a symlink under ~/.claude/skills on Claude Code), and can install missing Python packages after asking. Publishing the result to GitHub is optional, uses the gh CLI and defaults to a private repository.
