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.
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-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-skills/engineering/book-to-skill/skills/book-to-skill ~/.gemini/antigravity-cli/skills/book-to-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
