Skip to content
Productivity
Skill

/deep-reader

Read, study, and answer questions about long books and papers without loading the whole text into one context window, keeping page-anchored notes as a reusable workspace. Use whenever the user asks to read, study, summarize, analyze, review, or answer questions about a long

From plugin
agent-skills
11419 skills

Claude Code

$ npx -y skills add tronghieu/agent-skills --skill deep-reader --agent claude-code

SKILL.md

deep-reader.SKILL.md
name: deep-reader
description: >-
  Read, study, and answer questions about long books and papers without loading
  the whole text into one context window, keeping page-anchored notes as a
  reusable workspace. Use whenever the user asks to read, study, summarize,
  analyze, review, or answer questions about a long book, textbook, PDF, EPUB,
  thesis, dissertation, survey paper, or any document of roughly 50+ pages, in
  any language (Vietnamese "đọc sách", "tóm tắt sách", "phân tích luận án").
  Also use when a `{slug}-notes/` workspace from a previous session sits next to
  a source file and the user asks a follow-up question about that book. Not for
  short documents (under ~30 pages) that fit in context; read those directly.

Deep Reader

Read long books and papers the way a careful human researcher does: skim for structure first, read deeply chapter by chapter with notes as you go, then synthesize from the notes — never the raw text — at the end. The method comes from Adler's *How to Read a Book*, SQ3R's Recite step, and Keshav's three-pass method for papers.

Why multi-pass, why notes

An LLM's attention dilutes over long contexts, and it loses track of material buried in the middle of a big prompt ("lost in the middle"). Loading a 500-page book into one context and asking questions about it produces answers that quietly forget chapter 3 by the time you're discussing chapter 12.

The fix is the same one human researchers use: never hold the whole book in working memory at once. Read it in passes — first for structure, then chapter by chapter for content — and externalize what you learn into note files as you go. The notes become the durable memory; the book itself only needs to be back in view when you're actively reading a specific chapter or verifying a specific claim. Page numbers are the coordinate system that makes every claim traceable back to the source, in this session or a later one.

Two modes

  • **overview** — Adler's inspectional pass only: a book map plus a

goal-directed summary of the chapters that matter most to the reader's purpose. Fast, no per-chapter notes.

  • **study** — the full pipeline: reading purpose → inspectional map →

chapter-by-chapter analytical notes with Recite verification → hierarchical synthesis answering Adler's four questions → mechanical quote verification.

The user picks (or you propose one from `mode_hint` + their stated purpose — see Step 1).

Workspace layout

Everything the pipeline produces lives in a workspace directory, by default a sibling of the source file, so it survives across sessions:

<slug>-notes/
├── source.txt          # full text with [[page N]] markers — the coordinate system
├── chapters.tsv        # confirmed structure: chNN<TAB>from<TAB>to<TAB>title
├── chapters/           # per-chapter files cut by split-chapters.sh
│   └── ch01-<slug>.txt
├── map.md              # inspectional pass output
├── terms.md            # key-terms ledger, cross-chapter
├── notes/
│   └── ch01-<slug>.md  # one analytical note per chapter (papers: sec01-<slug>.md)
└── synthesis.md        # final synthesis + verification log

This workspace, not the SKILL.md scripts, is what makes a later session able to answer a follow-up question without re-reading the book (see "Answering from existing notes" below).

Scripts at a glance

All seven scripts live in `scripts/` under this skill. Run them either as `bash ./scripts/<name>.sh ...` from the skill directory, or as `bash /mnt/skills/user/deep-reader/scripts/<name>.sh ...` on claude.ai — both forms invoke the same script, use whichever matches where you're running.

| Script | Arguments | Purpose | | --- | --- | --- | | `prepare-text.sh` | `<input-file> [workspace-dir]` | Convert source to paged `source.txt`, create the workspace | | `extract-structure.sh` | `<source.txt>` | Heuristic outline seed (a starting guess, not ground truth) | | `read-pages.sh` | `<source.txt> <from> [to]` | Print a page or page range, with `[[page N]]` markers intact | | `search-book.sh` | `<source.txt> <pattern> [context-lines]` | Grep the whole book, page-annotated results | | `split-chapters.sh` | `<source.txt> <chapters.tsv>` | Cut confirmed chapters into standalone files | | `build-diagram.sh` | `<workspace-dir> [--append]` | Mechanical Mermaid mindmap of the structure | | `verify-quotes.sh` | `<workspace-dir>` | Catch fabricated quotes and wrong page citations |

Step 0 — Prepare

Locate the source file, then convert and page it:

bash ./scripts/prepare-text.sh path/to/book.pdf
# or on claude.ai:
bash /mnt/skills/user/deep-reader/scripts/prepare-text.sh path/to/book.pdf

This is idempotent — re-running it on a workspace that already has `source.txt` reports existing stats instead of reconverting, so it's safe to call at the start of every session on the same book.

Read the JSON it prints. `pages` and `est_tokens` tell you the book's size; `mode_hint` gives a starting recommendation (small/medium/large); if `synthetic_pages` is true (EPUB/DOCX/TXT/MD sources have no real page numbers) remember that page citations in notes still point into `source.txt`'s own paging — verifiable, just not the printed page numbers a reader with the physical book would see.

Two branches before you go further:

  • **A workspace with notes already exists** for this book (check

`<slug>-notes/notes/` for files) — skip straight to "Answering from existing notes" below instead of restarting the pipeline.

  • **Exit code 2** (missing `pdftotext`/`pandoc`) — fall back to reading the

PDF/EPUB directly with the Read tool in page batches. You lose `verify-quotes.sh`'s mechanical check in this fallback; compensate with more frequent manual re-reads of anything you quote.

  • **Scripts misbehaving?** Run `bash ./scripts/self-test.sh` — it distinguishes

an environment problem (missing/broken dependencies) from a usage problem.

Step 1 — Reading purpose

If the user hasn't said why they're re

Read more
@tronghieu
Ships withagent-skills

Language: English | Tiếng Việt | 中文 A collection of method-driven skills for people who use AI to make decisions, run projects, analyze evidence, create documents, and produce finished work.

Stars on GitHub

Momentum

stars in total
114
Star history of tronghieu/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

bmad-run-inspector

bmad-run-inspector

Inspect and explain bmad-loop run artifacts under `.bmad-loop/runs/`. Use for live health checks ("is it stuck?", "is the loop…

brainstorm-coach

brainstorm-coach

Coach structured brainstorming sessions on any topic: diverge on ideas together, then converge on priorities and next steps in a…

critical-thinking

critical-thinking

Audit the reasoning of a document or argument (memo, proposal, investment analysis, board paper, article, the user's own draft):…

cv-scorer

cv-scorer

Evaluate, score, and compare candidate CVs/resumes against a job description with a shared 100-point rubric and traceable…

data-scientist

data-scientist

Act as an end-to-end data scientist: turn business questions into defensible analysis, validated models, and decision-ready…

design-thinking

design-thinking

Facilitate a full design-thinking engagement (Empathize, Define, Ideate, Prototype, Test) grounded in real user evidence. Use…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about deep-reader.

Which coding agents can use deep-reader?
deep-reader installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.