book-text

book-text is a skill for Claude Code from l3a0/claude-plugins. It costs 111 tokens per session (3,767 once invoked), scanned A, original, MIT.

A tool that extracts page-numbered text from a book PDF and divides it into reading sections. It handles PDFs with selectable text and scanned PDFs by using text extraction or image-based reading.

In plain words
What is it for?
Use it to turn an owned book PDF into full text and separate page-range files, including page information for scanned pages.
Why use it?
It provides consistent page references so later notes and quotations can be checked against the correct printed page.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run -q --with 'pillow>=10' python tests/test_book_text.py.

Part of the l3a0 plugin — 12 skills, 20 agents, 1 hook shipped together

Good fit Use it to turn an owned book PDF into full text and separate page-range files, including page information for scanned pages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/l3a0/claude-plugins
agentmods
npx agentmods add skills/l3a0/claude-plugins/book-text

Made for: Claude Code.

Or install l3a0, the plugin that ships this one along with the rest of its 12 skills, 20 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for book-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/l3a0/claude-plugins/book-text/github.svg)](https://agentmods.dev/skills/l3a0/claude-plugins/book-text)
Your own site
<a href="https://agentmods.dev/skills/l3a0/claude-plugins/book-text"><img src="https://agentmods.dev/badge/skills/l3a0/claude-plugins/book-text/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for book-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/l3a0/claude-plugins/book-text"><img src="https://agentmods.dev/badge/skills/l3a0/claude-plugins/book-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.03767
Opus 5.5 $0.00044 $0.01507
Sonnet 5.5 $0.00022 $0.00753
Haiku 4.5 $0.00011 $0.00377

Measured 29d ago against content hash 724f77a0925b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

book-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/booktext.py, scripts/ctx.py, scripts/ocr_pages.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/book-text/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Book PDF to page-numbered text

A reading or citation pipeline needs a book's text with its printed page numbers attached, so that a quote can be checked against the page it cites. The kindle-highlights skill gets text from the Kindle Cloud Reader, but on 2026-11-03 the Cloud Reader would not open two books, Code Complete and Rapid Development, both Microsoft Press editions. The owner supplied PDFs of their own copies instead, and this skill holds the two routes worked out on those PDFs.

Every route ends in the same files in one run directory:

  1. book_pages.txt, the whole book as page blocks.
  2. parts/NAME.txt, one file per reading part, each a printed page range of the same blocks.

A page block is one PDF page of text under a header line:

===== pdf 101 | p. 64 =====

The first number is the 1-based PDF page and the second is the printed page. The difference between them is the book's offset, 37 in this example, and it is one number for the whole book. A page before printed page 1 gets front N instead of p. M, where N is again the PDF page number. A scanned page's margin column follows its body on one line that starts [margin] .

Keep the run directory outside every repository. It holds a copyrighted book's full text. Every script refuses an output folder inside a git repository, since one git add -A there would stage the book. The 2026-11-03 runs used ~/Documents/Claude/kindle/<book-slug>/, beside the book's Kindle highlights. No book page, crop or OCR output may enter a tracked file, a test fixture or a pull request.

Prerequisites

  1. poppler, for pdfinfo, pdffonts, pdftotext and pdfimages. Install it with brew install poppler.
  2. python3, which runs every script here.
  3. Pillow, for the scan route's prep.py only. Either install it for python3, or use uv, whose uv run -q --with 'pillow>=10' python <script> fetches it for one run.
  4. macOS with Xcode Command Line Tools, for the scan route's OCR only. ocr_pages.py compiles Apple Vision's text recognizer with swiftc on first use.

Read the full file on GitHub · 172 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago First seen · 172 lines · 111 tokens per session scan A 724f77a0925b

Subscribe to this mod's changes

book-text is a skill published in the GitHub repository l3a0/claude-plugins (19 stars, last pushed yesterday), licensed MIT. It adds 111 tokens to every session and 3,767 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.

Related

book-text compared with skills from other repositories

book-text next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
book-textl3a0/claude-pluginsSkill19yesterdayMITA111Claude Code
pdf-reportindranilbanerjee/digital-marketing-proSkill998todayAGPL-3.0A25Claude Code
demand-draftuk-agents/uk-legal-pluginsSkill20yesterdayApache-2.0A85Claude Code
dossier-builderDaizeDong/buy-me-a-carSkill14yesterdayMITA45Claude Code
carfax-pdf-reviewDaizeDong/buy-me-a-carSkill14yesterdayMITA51Claude Code
album-reportdrolosoft/immich-photo-managerSkill7028d agoMITA97Claude Code
doc-intel-contract-plmatematicsolutions/awesome-matematic-skills-plSkill913d agoMITA351Claude Code