book-analyzer

book-analyzer is a skill for Claude Code from tuan3w/obsidian-vault-agent. It costs 36 tokens per session (4,455 once invoked), scanned B, original, MIT.

A book-analysis workflow for EPUB and PDF files. It breaks a long book into chapters and creates detailed notes about its key ideas.

In plain words
What is it for?
Use it when you provide a book file of 20 or more pages and want chapter-by-chapter explanations, concepts, and connections.
Why use it?
Reading and organizing notes from a full book takes substantial manual effort. This turns the source into a structured set of chapter notes for learning and review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the TodoWrite tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .claude/scripts/create-note.py book "{Title}" author="{Author}" year={YEAR}.

Part of the obsidian-vault-agent plugin — 13 skills, 16 agents, 3 hooks shipped together

Good fit Use it when you provide a book file of 20 or more pages and want chapter-by-chapter explanations, concepts, and connections.

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/tuan3w/obsidian-vault-agent
agentmods
npx agentmods add skills/tuan3w/obsidian-vault-agent/book-analyzer

Made for: Claude Code.

Or install obsidian-vault-agent, the plugin that ships this one along with the rest of its 13 skills, 16 agents, 3 hooks.

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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/tuan3w/obsidian-vault-agent/book-analyzer/github.svg)](https://agentmods.dev/skills/tuan3w/obsidian-vault-agent/book-analyzer)
Your own site
<a href="https://agentmods.dev/skills/tuan3w/obsidian-vault-agent/book-analyzer"><img src="https://agentmods.dev/badge/skills/tuan3w/obsidian-vault-agent/book-analyzer/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-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/tuan3w/obsidian-vault-agent/book-analyzer"><img src="https://agentmods.dev/badge/skills/tuan3w/obsidian-vault-agent/book-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,455 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00036 $0.04455
Opus 5 $0.00018 $0.02227
Sonnet 5 $0.00007 $0.00891
Haiku 4.5 $0.00004 $0.00445

Measured 11d ago against content hash dd872c109bdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

book-analyzer 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_epub.py, scripts/extract_pdf.sh), 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

for dir in .claude/skills/book-analyzer ~/.claude/skills/book-analyzer; do
skills/book-analyzer/SKILL.md · 437 lines

How it starts

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

<Use_When>

  • User provides a path to an EPUB or PDF book file
  • User says "analyze this book", "process this book", "read this book"
  • User wants structured notes from a book-length document (20+ pages) </Use_When>

<Do_Not_Use_When>

  • Short documents under 20 pages — use /paper or /process instead
  • User wants to read or search specific sections — just use Read tool directly
  • User wants EPUB output from markdown — wrong direction
  • URL-only input with no file on disk — use /research instead </Do_Not_Use_When>

<Why_This_Exists> Book notes that merely transcribe content are useless — the value is in synthesis. Most book notes in a vault end up sparse because processing a full book manually is exhausting. This skill automates the mechanical work (extraction, splitting, formatting) while delegating the intellectual work (synthesis, assessment, connections) to specialized agents with strict quality constraints. </Why_This_Exists>

<Execution_Policy>

  • Run extraction scripts first, verify output before proceeding to analysis
  • Delegate chapter analysis to parallel agents (one per chapter, all simultaneous)
  • Use Sonnet for chapter analysis, Opus for cross-book synthesis
  • Vault integration is conditional — detect .obsidian/ or CLAUDE.md in working directory
  • Report progress via TodoWrite at each stage transition
  • If extraction fails, stop and report — don't guess at content
  • Total chapters capped at 50 — if more, group adjacent chapters into batches </Execution_Policy>

Stage 1: PARSE ARGUMENTS AND EXTRACT

Parse $ARGUMENTS to get the book file path and optional flags.

Argument format:

$ARGUMENTS = "path/to/book.epub"                    # basic
$ARGUMENTS = "path/to/book.pdf --no-terms"          # skip term extraction
$ARGUMENTS = "path/to/book.epub --output ~/Desktop/" # custom output location

Parse logic:

  1. Split $ARGUMENTS by spaces, treating quoted paths as single tokens
  2. First non-flag token = file path (REQUIRED — stop if missing)
  3. Optional flags: --no-terms (skip concept extraction), --output <dir> (custom output)
  4. Detect format from file extension: .epub, .pdf, .mobi

Run extraction based on format:

For EPUB:

SKILL_DIR="$(dirname "$(readlink -f "$0" 2>/dev/null || echo "$0")")"
# Find skill directory — check common locations
for dir in .claude/skills/book-analyzer ~/.claude/skills/book-analyzer; do
  if [ -f "$dir/scripts/extract_epub.py" ]; then SKILL_DIR="$dir"; break; fi
done
WORK_DIR=".book-work-$(date +%s)"
python3 "$SKILL_DIR/scripts/extract_epub.py" "INPUT_PATH" "$WORK_DIR"

For PDF:

WORK_DIR=".book-work-$(date +%s)"
"$SKILL_DIR/scripts/extract_pdf.sh" "INPUT_PATH" "$WORK_DIR"

For MOBI: Convert to EPUB first with ebook-convert (calibre), then run EPUB extraction.

The work directory is created inside the vault root (e.g., .book-work-1709398200/). Clean it up after the pipeline completes.

After extraction: Read $WORK_DIR/metadata.json to verify success.

PDF fallback: If metadata shows "needs_fallback": true, use the Claude Read tool instead:

  • Read the PDF 20 pages at a time: Read(file_path="INPUT_PATH", pages="1-20"), then pages="21-40", etc.
  • Write each batch to $WORK_DIR/pages/page_batch_NNN.txt
  • Update metadata with actual content

Read the full file on GitHub · 437 lines

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. 11d ago First seen · 437 lines · 36 tokens per session scan B dd872c109bdb

Subscribe to this mod's changes

book-analyzer is a skill published in the GitHub repository tuan3w/obsidian-vault-agent (39 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 4,455 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.