Builderoom
Get resource

Convert technical book PDFs or document collections into structured skills that AI agents can use for learning and work reference.

MITClaude CodeText InputDocument InputText Output
安装 / 调用方式bash
转换完成后可发布到 GitHub,通过以下命令安装:
```
npx skills add
```
调用示例json
```
/book-to-skill ./my-book.pdf
/book-to-skill <path|folder|glob> [skill-name]
```

Product facts

Type
AI Skill & Agent
Category
AI & Machine Learning › Prompt Engineering & Skill Management
Pricing
Open source
Platforms
Claude Code
License
MIT
Launched
Sep 26, 2026
Listed
Sep 26, 2026
Website
github.com

Overview

GitHubGitHub

book-to-skill is an open-source tool that converts technical books, document folders, or other structured text into a unified agent skill conforming to the Agent Skills open standard. It supports host environments such as GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, and OpenClaw.

Problem Solved

It's easy to forget what you read in technical books. Searching a PDF directly only returns page numbers, while asking an AI agent may produce hallucinations or "missing context" errors. book-to-skill turns books into structured skills so agents can load relevant chapters on demand and answer questions based on actual content.

Workflow

  1. Specify input: Point to a file, folder, or glob pattern, e.g., /book-to-skill ./my-book.pdf.
  2. Extract & generate: The tool distills the book into a skill containing frameworks, decision rules, anti-patterns, and chapter-split files. This is structured processing, not a simple summary.
  3. Load on demand: The agent loads the relevant content when needed. For example, entering /my-book replication makes it read the related chapters and answer based on real content.

Generated File Structure

After conversion, the following files are generated under ~/.agents/skills/<slug>/:

  • SKILL.md: Core mental model and chapter index, ~4000 tokens.
  • chapters/ch01-*.md: One file per chapter, loaded on demand, ~1000 tokens each.
  • glossary.md: Alphabetically sorted key terms with chapter references, ~1500 tokens.
  • patterns.md: Summary of techniques, algorithms, and design patterns, ~2000 tokens.
  • cheatsheet.md: Decision tables and quick-reference rules, ~1000 tokens.

Chapter files are only loaded when querying related topics, so they don't consume the skill's token budget.

Use Cases

Beyond books, this tool works for internal documentation (architecture decision records, runbooks), brand and design system specs, research paper collections, and standards documents like RFCs and API contracts.

Performance

Compared to stuffing an entire book into context to answer questions, book-to-skill reduces token consumption by 24x to 51x. Its architecture consists of a deterministic Python extractor (turning documents into clean text and metadata) and a spec-driven generator.

Key features

  • Multi-format input: Supports documents in PDF, EPUB, DOCX, MD, HTML, RTF, MOBI, and more as input sources.
  • Cross-agent compatibility: The generated SKILL.md works with GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, and OpenClaw.
  • On-demand chapter loading: Chapter files are stored separately and loaded only when queried, preserving the initial token budget.
  • Structured knowledge extraction: Extracts frameworks, decision rules, anti-patterns, glossaries, and design patterns instead of simple summaries.
  • Token optimization: Reduces token usage by 24x to 51x compared to placing an entire book into context.
  • Flexible inputs: Accepts single files, folders, glob patterns, or file lists as conversion input.
  • Update & merge mode: Supports update/fold-in mode to merge new material into existing skills.
  • Publish to GitHub: Publish converted skills to GitHub (private by default) and install via npx skills add.
  • Auto symlinks: When running under Claude Code, it attempts to create verified symlinks in ~/.claude/skills/.

Releases

Notify me

Initial · book-to-skill

Q&A

What document formats does book-to-skill support?AI-generated
It supports PDF, EPUB, DOCX, MD, HTML, RTF, and MOBI formats.
Which tools can use the generated skills?AI-generated
Any host compatible with the Agent Skills open standard, including GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, and OpenClaw.
Where are generated skills stored?AI-generated
By default, in the user-level cross-agent skills directory ~/.agents/skills/<slug>/. For Hermes Agent, they go to $HERMES_HOME/skills/<category>/<slug>/.
How many tokens does it save?AI-generated
Measured on real books, it reduces token consumption by 24x to 51x compared to placing the entire book into context to answer questions.
What else can it process besides books?AI-generated
Any structured text, including internal docs (ADRs, runbooks), brand design systems, research paper collections, and specs like RFCs and API contracts.
What is the basic usage command?AI-generated
Run /book-to-skill <path|folder|glob> [skill-name] to perform the conversion.
More
Get resource
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.