virgiliojr94/book-to-skill
Python extraction and agent synthesis turn books into on-demand reference skills
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
book-to-skill separates extraction from synthesis. The Python package normalizes documents into text and metadata; the host agent follows SKILL.md to turn that material into an entry skill, chapter files, a glossary, patterns, and a cheatsheet. The packaged CLI enters at book_to_skill.cli:main. Optional dependencies are grouped by format, including ebooklib for EPUB, python-docx for DOCX, and striprtf for RTF.
MCP is an integration path, not a server exposed by the Python core. For Search & Read, the host calls an external provider's search, get_details, and read tools, then synthesizes the source chapter by chapter. The Python core makes no outbound requests on that path and writes no permanent full_text.txt; the provider and host model sit outside that boundary.
Key Capabilities & Differentiators
Local conversion accepts files, directories, and globs, so a documentation set or a book split across files can become one skill. Analyze-only, generate-from-analysis, and update workflows let teams inspect extraction separately and fold in more sources later. The generated SKILL.md is sized at roughly 4,000 tokens, with roughly 1,000 tokens per chapter loaded as needed. A glossary, patterns file, and cheatsheet provide separate lookup paths.
For prose PDFs, the extractor can use Poppler's pdftotext, with pypdf and pdfminer.six as fallbacks. Docling is the heavier option for technical PDFs where tables and code blocks matter. Image-only PDFs are detected early and need an OCR pass before conversion. With an external MCP provider configured, users can search by title, author, ISBN, or DOI and select an edition before reading.
Trade-offs & Limitations
Compared with uploading a PDF for each session, this design pays extraction and synthesis costs up front, then loads narrower notes on subsequent queries. The measured 24×–51× token reduction compares question answering with putting an entire book into context; it is not a comparison with indexed RAG and does not establish lower end-to-end cost or higher accuracy. Distilled notes can omit qualifiers, so check the original for exact wording, citations, or consequential decisions. For a large, rapidly changing corpus, indexed retrieval is a better starting point if refresh and corpus-wide search matter more than curated notes.
Local extraction does not make the entire workflow local: synthesis may send content to the host's model, and remote MCP reads may temporarily cache source files at the provider. Provider restrictions and read confirmations help govern access but do not confer copyright authorization. The MIT license covers the converter, not the source documents; private-by-default publishing also does not replace a rights or confidentiality review.
Hardware & Deployment Guide
Install the converter skill with npx skills add virgiliojr94/book-to-skill and run it in a compatible host. The Python package declares Python 3.9+ and exposes the book-to-skill CLI. Plain text and Markdown require no parser extras; install the format extras or system tools your corpus needs. python3 scripts/extract.py --check reports available extractors and missing dependencies. Extraction runs locally, but keeping synthesis offline also requires a local host/model setup.
Generated skills normally go under ~/.agents/skills/. Claude Code runs attempt and verify a symlink under ~/.claude/skills/; Hermes Agent uses its own categorized skill layout. Version 2.0.0 added optional GitHub publishing and expanded chapter detection. Version 2.0.1 added opt-in guided MCP setup and Arabic and Georgian heading detection. The remote path still requires an external provider configured in the host.
SKILL.md.pdftotext or Python fallbacks for prose and Docling for technical layouts; image-only scans need prior OCR.search, get_details, and read tools; BOOK_TO_SKILL_REMOTE_POLICY controls provider access and confirmation.Engineers and teams that repeatedly consult the same technical books, standards, or authorized internal docs and want chapter-level references inside their coding agents.
You need exact quotations or page-faithful answers, built-in OCR for scanned collections, continuously refreshed corpus-wide search, or end-to-end offline handling without a local host model.
Quick Start & Installation
# One command, any host — via the cross-agent skills CLI: npx skills add virgiliojr94/book-to-skill # Or manually — clone into your skills folder (registers /book-to-skill): git clone https://github.com/virgiliojr94/book-to-skill.git ~/.claude/skills/book-to-skill # (Copilot CLI: ~/.copilot/skills/ · Amp/cross-agent: ~/.agents/skills/) # (Hermes Agent: ${HERMES_HOME:-$HOME/.hermes}/skills/<category>/) # (OpenClaw: ${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/skills/; ~/.agents/skills/ only with default state) # (OpenCode: ~/.agents/skills/ — it also reads ~/.config/opencode/skills/)
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| book-to-skill ★ | 39.6k | +487 | Python | MIT | Python extraction and agent synthesis turn books into on-demand reference skills |
| OpenSpec | 76.4k | +468 | TypeScript | MIT | A CLI and agent-skill layer for keeping AI coding aligned with versioned specs |
| skills | 204.1k | +2.5k | Python | — | A Claude Agent Skills catalog for packaging and reusing task workflows |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/virgiliojr94/book-to-skill.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about book-to-skill
Do I need an MCP server to convert local files?
search, get_details, and read. The Python core is neither the book provider nor the component that makes those network calls.How should I size CPU, GPU, and memory for deployment?
Can a company run it internally and share the generated skills?
When is this preferable to PDF upload or RAG?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy