Turn any book you own into a chapter-by-chapter skill your AI agent can consult.
In the medieval scriptorium, monks copied books so they could be read and used again. Scriptorium does the same for agents. It reads a book (PDF, EPUB, DOCX, TXT, MOBI) and writes a skill: a lean index with the author's frameworks, one file per chapter with page citations, a glossary, the author's methods, and a one-page cheatsheet of their judgment. The agent loads only what a question needs, a fraction of the tokens of re-reading the book.
<book-skill>/
SKILL.md index: unity of the book, core frameworks, chapter + topic index
chapters/chNN-*.md theses, frameworks, terms, anti-patterns, takeaways — with (p. N)
glossary.md · patterns.md · cheatsheet.md · SOURCE.md · scripture.md (theology lens)
| Scriptorium | |
|---|---|
| Citations | Every claim carries the book's printed page (PDF page labels) or section (EPUB), so answers can be checked. |
| Reading method | Uses Adler's analytical reading (kind, unity, outline, terms, propositions, problem solved) before writing. |
| Worth-it gate | Says when a book is better served by a reading report than by a skill. |
| Theology lens | Scripture index per chapter (EN/PT/ES references), keeps Greek and Hebrew as printed, notes the author's tradition. |
| Copyright guard | validate.py blocks any 50+ word verbatim copy and warns about text that looks addressed to an agent. |
| Local only | No downloads, no shadow libraries, no MCP installs, no edits to agent configs, no symlinks. |
| Small footprint | One Python extractor (PyMuPDF / ebooklib / python-docx, all optional), one validator, one scripture indexer. |
Copy the scriptorium/ folder into your agent's skills folder, for example ~/.claude/skills/scriptorium/ (Claude Code), ~/.codex/skills/ (Codex) or ~/.agents/skills/.
Optional extractors (only for the formats you use):
pip install pymupdf ebooklib python-docx beautifulsoup4Calibre's ebook-convert is used for MOBI/AZW3 when present. Check what you have:
python scriptorium/scripts/extract.py --checkAsk your agent: "Turn this book into a skill: ~/books/biblical-preaching.pdf", or "Analyze this book first". It will:
- extract the text with page markers;
- show size and cost and ask before spending;
- read the structure;
- write the chapters, then the supporting files, then the index;
- validate.
Ideas adapted (no code copied) from
- virgiliojr94/book-to-skill: chapter template, glossary, patterns and cheatsheet, token budgets;
- huntsyea/thinking-skills: purpose questions, author-concept naming;
- markoblogo/abvx-agent-skills: conversion gate and rights gate;
- apple-ouyang/book-to-skill: splitting big books across agents.
Reading method after Mortimer J. Adler & Charles Van Doren, How to Read a Book.
Scriptorium itself is MIT-licensed. The skills it generates are study aids derived from books you own: do not publish them unless the book is in the public domain or you hold the rights.