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…
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
Claude Code
$ npx -y skills add tronghieu/agent-skills --skill deep-reader --agent claude-code
Codex
$ npx skills add tronghieu/agent-skills --skill deep-reader -a codex -y
Cursor
$ npx skills add tronghieu/agent-skills --skill deep-reader -a cursor -y
Gemini CLI
$ npx skills add tronghieu/agent-skills --skill deep-reader -a gemini-cli -y
GitHub Copilot
$ npx skills add tronghieu/agent-skills --skill deep-reader -a github-copilot -y
OpenCode
$ npx skills add tronghieu/agent-skills --skill deep-reader -a opencode -y
Windsurf
$ npx skills add tronghieu/agent-skills --skill deep-reader -a windsurf -y
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.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.
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.
goal-directed summary of the chapters that matter most to the reader's purpose. Fast, no per-chapter notes.
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).
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).
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 |
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:
`<slug>-notes/notes/` for files) — skip straight to "Answering from existing notes" below instead of restarting the pipeline.
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.
an environment problem (missing/broken dependencies) from a usage problem.
If the user hasn't said why they're re
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.
Inspect and explain bmad-loop run artifacts under `.bmad-loop/runs/`. Use for live health checks ("is it stuck?", "is the loop…
Coach structured brainstorming sessions on any topic: diverge on ideas together, then converge on priorities and next steps in a…
Audit the reasoning of a document or argument (memo, proposal, investment analysis, board paper, article, the user's own draft):…
Evaluate, score, and compare candidate CVs/resumes against a job description with a shared 100-point rubric and traceable…
Act as an end-to-end data scientist: turn business questions into defensible analysis, validated models, and decision-ready…
Facilitate a full design-thinking engagement (Empathize, Define, Ideate, Prototype, Test) grounded in real user evidence. Use…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…