Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Abilityai/cornelius --skill multi-format-book-extractorgit clone --depth 1 https://github.com/Abilityai/corneliusWrote 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.
[](https://agentmods.dev/skills/abilityai/cornelius/multi-format-book-extractor)<a href="https://agentmods.dev/skills/abilityai/cornelius/multi-format-book-extractor"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/multi-format-book-extractor/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.
<a href="https://agentmods.dev/skills/abilityai/cornelius/multi-format-book-extractor"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/multi-format-book-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 68 uvx/uv tool run commands without ==version create a rug-pull risk.Fix: Pin the version: uvx package-name==1.2.3
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.01185 |
| Opus 5.5 | $0.00030 | $0.00474 |
| Sonnet 5.5 | $0.00015 | $0.00237 |
| Haiku 4.5 | $0.00007 | $0.00119 |
Grade B, and why
multi-format-book-extractor scanned grade B with 1 finding 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 5d ago.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Trinity server (Debian): `sudo apt-get install -y calibre` - installed by `.trinity/setup.sh` How it starts
The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Multi-Format Book Extractor
Extract chapters from PDF, MOBI, and AZW3 files into individual numbered markdown files. Mirrors the epub-chapter-extractor pattern for non-EPUB formats.
Dependencies
- PDF:
pymupdf— auto-installed via--with pymupdf - Scanned PDF OCR fallback:
requests(--with requests) + a Gemini key in$GEMINI_API_KEY/$GOOGLE_API_KEY(read fromcornelius/.envif unset) - MOBI / AZW3: calibre's
ebook-convertmust be on the machine- Trinity server (Debian):
sudo apt-get install -y calibre- installed by.trinity/setup.sh - Mac:
brew install --cask calibre
- Trinity server (Debian):
- uv: on the Trinity server it is
~/.local/bin/uv(symlinked to/usr/local/bin/uv), installed by.trinity/setup.sh
Every command below starts by resolving these two paths, so the same lines work on the
server and on the user's Mac (run from the agent root - scripts are called by path, never cd into the skill folder, so relative book paths keep resolving):
UV="$(command -v uv || echo "$HOME/.local/bin/uv")"
SKILL="$(git rev-parse --show-toplevel)/.claude/skills/multi-format-book-extractor"
Single Book
"$UV" run --with pymupdf --with requests python "$SKILL/extract_book.py" "/path/to/book.pdf" [output_dir]
If output_dir is omitted, creates a folder named after the file in the same directory.
Scanned / Image-Only PDFs (auto-OCR)
Some PDFs are pure page scans with no text layer — pymupdf extracts nothing
and would silently write empty files. extract_book.py now samples the text layer
first (_has_text_layer) and, when a PDF looks image-only, automatically routes it
to Gemini 2.5 Flash OCR (ocr_pdf.py).
- Renders each page to PNG (~180 DPI), batches pages per API call, transcribes
verbatim to Markdown (preserves verse line breaks, Sanskrit/Tibetan diacritics,
footnotes), and writes
NN_pages-S-E.mdchunk files. - Resumable: re-running skips chunk files already written (≥200 chars), so an interrupted long book picks up where it left off.
- Cost is ~$0.002/page on Flash (a 300-page book ≈ $0.60).
What ships with it
2 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.
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.
- 5d ago Changed · +6 lines scan A → B 21db3325f4fb
- 1mo ago Changed 9fcf1a5a117a
- 3mo ago First seen · 95 lines · 75 tokens per session scan A 0bfbe65c3115
multi-format-book-extractor is a skill published in the GitHub repository Abilityai/cornelius (123 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 1,185 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
multi-format-book-extractor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| multi-format-book-extractorAbilityai/cornelius | Skill | 123 | 2d ago | MIT | B | 75 | Claude Code |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 48 | Claude Code |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 74k | 2d ago | CC0-1.0 | A | 17 | Claude Code, Codex |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.5k | today | MIT | A | 29 | Claude Code |
| pdf-extract-create-workflowHKUDS/OpenSpace | Skill | 8.1k | 18d ago | MIT | A | 22 | Claude Code, Codex |
| document-direct-pythonHKUDS/OpenSpace | Skill | 8.1k | 18d ago | MIT | A | 20 | Claude Code, Codex |
| pdf-verification-cliHKUDS/OpenSpace | Skill | 8.1k | 18d ago | MIT | A | 19 | Claude Code, Codex |