book-to-skill

作者 Leutenegger已验证

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
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

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

快速入门

使用 book-to-skill 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "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.

常见问题

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.

评论 (0)

暂无评论,成为第一个分享想法的人!

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 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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 智能体ai-agentsanthropicclaude-code
查看详情

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 智能体claude-codeai-tools
查看详情

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 智能体
查看详情

开发者还喜欢

基于喜欢此 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 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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 服务器apisai-tools
查看详情

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 智能体ai-agentsanthropicclaude-code
查看详情

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 智能体claude-codeai-tools
查看详情