Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

book-to-skill

Skill by alirezarezvani

Turns a book, docs folder or spec collection into an agent skill with a core file, chapter files, a glossary and a cheatsheet. Built for people who want structured reference skills from their own documents.

  • Score 94
  • 31k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install book-to-skill

Built from the published package, never by AI.

git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/engineering/book-to-skill/skills/book-to-skill ~/.claude/skills/book-to-skill

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install book-to-skill in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Book-to-Skill converts a book, docs folder or spec collection in PDF, EPUB, DOCX, HTML or Markdown into an agent skill. It extracts structure rather than summaries, producing a SKILL.md core with a chapter index, one file per chapter, a glossary, patterns and a cheatsheet. The agent loads one chapter at a time instead of the whole source.

The workflow extracts text with extract_document.py, estimates token cost before generation, and validates the output with book_skill_validator.py. A rights gate requires a stated basis before a compiled skill from a copyrighted work is packaged as a shareable plugin. It runs on the standard library alone and offers modes for full conversion, analysis only, updating an existing skill, and packaging as a plugin. It suits people who want a reference skill built from files they already have.

Written from the project's SKILL.md and checked against it.

What it can do

  • Extract documentsExtracts text from PDF, EPUB, DOCX, HTML and Markdown files with extract_document.py.
  • Compile chaptersWrites one summary file per chapter, loaded on demand rather than all at once.
  • Build glossaryCreates an alphabetized glossary of significant terms with the chapter where each appears.
  • Write patterns and cheatsheetProduces techniques with trade-offs and a cheatsheet of decision rules and thresholds.
  • Estimate costtoken_budget_estimator.py gives a pre-flight cost estimate before generation starts.
  • Validate outputbook_skill_validator.py checks the generated skill before anyone loads it.
  • Package as pluginskill_plugin_emitter.py wraps the skill folder as a plugin, behind the rights gate.

What you need

  • Python 3
  • Source files already on disk (PDF, EPUB, DOCX, HTML or Markdown)

Try asking

  • Convert this PDF book into an agent skill with chapters and a glossary
  • Analyze this docs folder first and show me an extraction report
  • Fold these new spec files into my existing compiled skill

Good to know

  • Converts only files already on disk. It does not scrape books from the web.
  • Packaging a copyrighted work as a shareable plugin needs a stated rights basis.
  • Sources over about 50k tokens should be probed with grep and sed, not read whole.
  • Safety-family validator warnings can fire on legitimate content and need manual review.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: engineering/book-to-skill/skills/book-to-skill/SKILL.md, engineering/book-to-skill/skills/book-to-skill/scripts/book_skill_validator.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/__init__.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/config.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/dependencies.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/exceptions.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/parsers/__init__.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/parsers/calibre.py, engineering/book-to-skill/skills/book-to-skill/scripts/book_to_skill/parsers/docx.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • assets/chapter_template.md3 KB
  • assets/cheatsheet_template.md2 KB
  • assets/master_skill_template.md3 KB
  • references/conversion_workflow.md17 KB
Show all 28 files
  • references/document_extraction_pipeline.md9 KB
  • references/knowledge_extraction_canon.md7 KB
  • references/progressive_disclosure_budgets.md8 KB
  • references/rights_and_provenance.md8 KB
  • scripts/book_skill_validator.py25 KB
  • scripts/book_to_skill/__init__.py937 B
  • scripts/book_to_skill/config.py3 KB
  • scripts/book_to_skill/dependencies.py11 KB
  • scripts/book_to_skill/exceptions.py117 B
  • scripts/book_to_skill/parsers/__init__.py18 B
  • scripts/book_to_skill/parsers/calibre.py1 KB
  • scripts/book_to_skill/parsers/docx.py4 KB
  • scripts/book_to_skill/parsers/epub.py6 KB
  • scripts/book_to_skill/parsers/html_text.py4 KB
  • scripts/book_to_skill/parsers/pdf.py5 KB
  • scripts/book_to_skill/parsers/rtf.py6 KB
  • scripts/book_to_skill/parsers/text.py1 KB
  • scripts/book_to_skill/sanitize.py4 KB
  • scripts/book_to_skill/utils.py25 KB
  • scripts/book_to_skill/zip_safety.py5 KB
  • scripts/extract_document.py17 KB
  • scripts/skill_plugin_emitter.py27 KB
  • scripts/token_budget_estimator.py16 KB

Alternatives to book-to-skill

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

book-to-skill: common questions

Does the assistant have to read the whole book at once?

No. The source says the compiled skill keeps a small resident core and loads one chapter file at a time.

Can it convert a book from a website?

No. The source says it converts files already on disk and does not web-scrape a book.

Does it handle copyright?

It includes a rights gate. Compiled notes from a copyrighted work are treated as personal study notes unless a basis is stated for sharing them.

How do I install book-to-skill?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is book-to-skill free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is book-to-skill safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to book-to-skill?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

book-to-skill Install

Add to stack

Loading.