book-to-skill

by LeuteneggerVerified

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

1,230
Stars
147
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/Leutenegger/book-to-skill

Getting Started

Guides for using skills like book-to-skill.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Booklin, the book-to-skill wizard, holding an open book whose pages scatter into sparkles that settle into an ordered grid

book-to-skill

Turn any technical book, document folder, or collection of sources into a unified agent skill — ready to study, reference, and use while you work in GitHub Copilot CLI, Amp, or Claude Code.

Agent Skills standard Formats supported MIT License

Why · What it generates · Beyond books · How it works · Usage · Install · FAQ · Performance · Changelog

24×–51× fewer tokens than dumping the book into context to answer one question, measured on real books.

pip install -e .
book-to-skill install
book-to-skill <path-to-book.pdf>

How it works, in 3 steps:

  1. Point it at a file, folder, or glob — book-to-skill ./my-book.pdf
  2. It distills the book into a skill — frameworks, decision rules, anti-patterns, and per-chapter files. Structure, not a summary.
  3. Your agent loads it on demand — ask /my-book replication and it reads the right chapter and answers from the real content, no hallucination.

Install

As agent skill (recommended):

pip install -e .
book-to-skill install

Copies the skill into ~/.claude/skills/book-to-skill, ~/.agents/skills/book-to-skill, ~/.copilot/skills/book-to-skill (and related paths).

Convert a book:

book-to-skill path\to\book.pdf
book-to-skill "path\to\docs\*.epub" my-skill-slug
book-to-skill --check

Other commands:

book-to-skill help
book-to-skill list
book-to-skill readme
book-to-skill ui

On the first two CLI runs (if ui/book-to-skill-ui.zip is present), the GUI is unpacked and launched automatically with cwd = ui/. After that it stays quiet. Force with book-to-skill ui.

Manual skill install (any host):

git clone https://github.com/Leutenegger/book-to-skill.git ~/.claude/skills/book-to-skill
# Copilot CLI: ~/.copilot/skills/
# Amp / cross-agent: ~/.agents/skills/

Why

You buy a great technical book. You read it once. Three months later you can't remember chapter 7 existed.

The usual workarounds don't help:

  • "Let me just search the PDF" → you get a list of pages, not answers
  • "I'll ask the agent about this book" → it either hallucinates or says it doesn't have the content
  • "I'll take notes as I read" → you end up with a 200-line doc you never open again

book-to-skill solves this by turning the book into a structured skill your agent loads on demand.

Once installed, type /your-book-slug replication and the agent reads the right chapter and answers from the actual content. No hallucination. No digging through PDFs.

Works with any host that supports the open Agent Skills standard — GitHub Copilot CLI, Amp, and Claude Code all read the same SKILL.md format.


What it generates

Running book-to-skill your-book.pdf (or a folder, glob, or list of files) creates a full skill in your agent's skills directory:

FilePurposeSize
SKILL.mdCore mental models + chapter index~4,000 tokens
chapters/ch01-*.mdOne file per chapter, loaded on-demand~1,000 tokens each
glossary.mdKey terms with chapter refs~1,500 tokens
patterns.mdTechniques, algorithms, design patterns~2,000 tokens
cheatsheet.mdDecision tables and quick-reference rules~1,000 tokens

Chapter files are loaded on-demand — they don't count against the skill budget until you ask about that topic.


Beyond books

The name says "book", but the input is any structured prose:

  • Internal documentation — ADRs, runbooks, onboarding guides
  • Brand & design systems — voice guidelines, component principles
  • Research clusters — papers + notes, updated as new material lands
  • Specs & standards — RFCs, API contracts, compliance docs

If you re-open a document often enough to wish you'd memorized it, it's a candidate.


How it works

Two halves: a deterministic Python extractor (document → clean text + metadata) and a spec-driven generator (your agent follows SKILL.md to turn that into a structured skill). On-demand chapter files keep the loaded skill small.

Full walkthrough → docs/how-it-works.md


Usage

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

Plus analyze-only, generate-from-analysis, and update/fold-in modes.

All modes and examples → docs/usage.md


Requirements

The extractor tries tools in order per format and uses the first available. Plain text, Markdown, reStructuredText and AsciiDoc need no extra deps.

book-to-skill --check

PDF:

Book typeToolInstall
Text-heavypdftotext (poppler) / pypdf / pdfminer.sixsystem / pip
Technical (code, tables)doclingpip install docling

EPUB: ebooklib + beautifulsoup4 (or stdlib zipfile fallback)
DOCX / HTML / RTF: optional pip packages, stdlib fallbacks available
MOBI / AZW: Calibre ebook-convert

Scanned PDFs need OCR first (ocrmypdf input.pdf output.pdf).

Optional extras:

pip install "book-to-skill[all]"

Copyright & fair use

book-to-skill ships no book content. It's a converter you point at files you already own.

  • Processing is local. Your files are never uploaded by this tool.
  • Use your own copy (bought book, company docs, papers you have the right to read).
  • The output is structured notes — frameworks, definitions, takeaways — not a reproduction of the text.
  • Don't redistribute generated skills of copyrighted works.

License

MIT — applies to the converter (code + skill definition) in this repository, not to any book or document you process with it.

Based on the original book-to-skill by virgiliojr94.

Frequently Asked Questions

What is book-to-skill?

book-to-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Leutenegger. Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work. It has 1,230 GitHub stars.

Is book-to-skill safe to use?

Yes. book-to-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install book-to-skill?

Clone the repository with "git clone https://github.com/Leutenegger/book-to-skill" and add it to your Claude Code skills directory (see the Installation section above). book-to-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.

What programming language is book-to-skill written in?

book-to-skill is primarily written in Python. It is open-source under Leutenegger on GitHub, so you can review or fork the full source.

Are there alternatives to book-to-skill?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh book-to-skill against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details