К основному содержанию
скилл CX Codex

read-book — скилл для Claude Code: что делает и как установить

Скилл разбивает PDF, EPUB, MOBI или текстовые книги на фрагменты, извлекает тезисы по главам и готовит заметки для личной базы знаний.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add coreyhaines31/makerskills --skill read-book -a claude-code
Открыть на GitHub

Что делает read-book

Скилл принимает файлы PDF, EPUB, MOBI, Markdown, простой текст или ссылки на книги из открытых источников. Обработка идёт по частям: агент ориентируется на оглавление, блоки по 50 страниц для PDF либо куски по 30 000 символов для текста. План нарезки сохраняется в ~/Documents/books/, после чего каждый сегмент вычитывается отдельно.

Для EPUB и MOBI в системе обязательно нужны pandoc или ebook-convert, иначе извлечь текст не выйдет. Инструмент предлагает четыре режима: подробный разбор по главам notes, краткую выжимку summary, выборку цитат quotes и набор из 10–20 карточек с вопросами для интервального повторения в режиме study. Готовый файл notes.md можно автоматически перенести в хранилище second-brain с помощью флага --capture.

Какие задачи решает

  • разобрать PDF-книгу по главам с извлечением ключевых идей
  • подготовить карточки с вопросами для интервального повторения по режиму study
  • собрать цитаты с номерами страниц из файла MOBI или EPUB
  • сохранить структурированный конспект книги в личную базу знаний

Примеры запросов агенту

  • /read-book ~/Documents/books/clean-code.pdf
  • /read-book book.epub summary
  • /read-book notes.txt study --capture

Как установить read-book

1Через Skills CLI (Vercel)

npx skills add coreyhaines31/makerskills --skill read-book -a claude-code

2Вручную: положить файлы

~/.claude/skills/read-book/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/read-book/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о read-book

Как установить read-book в Claude Code?

Выполните команду npx skills add coreyhaines31/makerskills --skill read-book -a claude-code.

Что делает скилл read-book?

Он читает книги по частям, делает конспекты глав или общую сводку и оформляет цитаты с практическими выводами.

Какие сторонние утилиты нужны для работы с книгами?

Для обработки файлов EPUB и MOBI понадобятся pandoc или ebook-convert. Для работы с оглавлением и страницами PDF используются утилиты pdfinfo и pdftotext.

Исходный текст

SKILL.md · MIT
---
name: read-book
description: When you want to read and extract structured notes from a book — PDF, EPUB, MOBI, markdown, .txt, pasted text, or URL to a public-domain work. Reads in chunks (by chapter when a TOC exists, by 50-page blocks otherwise), extracts per-chapter TL;DR + key concepts + quotes + action items + frameworks, and offers to capture to second-brain raw/ as a highlights- file. Four modes — notes (default, chapter-by-chapter), summary (whole-book TL;DR + 3–5 takeaways), quotes (pull-quote highlights only), study (notes + Q&A spaced-rep prep). Triggers on "/read-book," "read this book," "extract notes from this PDF," "what's in this book," "summarize this ebook," "pull quotes from this." Sibling to watch-video (same content-consumption pattern, different medium).
metadata:
  version: 0.1.1
---

# /read-book — Extract structured notes from books and long PDFs

Sibling to `watch-video`. Same content-consumption pattern: ingest → chunk → extract → optionally capture to second-brain.

## Step 1 — Parse input

Accept:
- **PDF**: file path (Claude reads PDFs natively in chunks via `Read pages:"X-Y"`)
- **EPUB / MOBI**: file path (needs `pandoc` or `ebook-convert` to extract — see `references/sources.md`)
- **Markdown / .txt**: file path (read directly)
- **Pasted text**: just use what was pasted
- **URL** to public-domain text: fetch it with your agent's URL-fetch tool or `curl` (Project Gutenberg, archive.org, etc.)

Detect type from file extension. If ambiguous, ask.

## Step 2 — Parse mode

| Invocation | Mode | What you get |
|---|---|---|
| `/read-book <input>` | **notes** (default) | Chapter-by-chapter: TL;DR + key concepts + quotes + action items + frameworks |
| `/read-book <input> summary` | summary | Whole-book TL;DR (1 paragraph) + 3–5 key takeaways + who-it's-for |
| `/read-book <input> quotes` | quotes | Pull-quote highlights only, with chapter context and page refs |
| `/read-book <input> study` | study | Notes mode + 10–20 spaced-repetition Q&A cards |

If the book is long (>200 pages) and mode is unspecified, default to `notes` but warn it'll take many tool calls.

## Step 3 — Get the text + chunk

See `references/sources.md` for per-source ingestion. Output of this step: text content + a chunking plan.

**Chunking strategy** (hybrid, in priority order):

1. **By chapter** if a TOC exists (PDF with bookmarks, EPUB/MOBI converted via pandoc preserves chapter headers)
   - Use `pdfinfo <pdf> | grep "Pages"` for PDFs
   - Use `pdftotext -layout <pdf> | grep -i "^chapter\|^part"` for chapter detection, or read TOC from page 1–5
   - EPUB: after `pandoc <epub> -o tmp.md`, chunks are between `# Chapter X` headers

2. **By page count** for PDFs without TOC: 50 pages per chunk

3. **By character count** for text/markdown: 30,000 chars per chunk (~7,500 words)

Save the chunking plan as `~/Documents/books/<author>-<title-slug>-<YYYY-MM-DD>/chunks.json`:

```json
{
  "source": "<path>",
  "title": "<book title>",
  "author": "<author>",
  "type": "pdf",
  "total_pages": 287,
  "chunking": "by-chapter",
  "chunks": [
    {"i": 0, "label": "Introduction", "pages": "1-12"},
    {"i": 1, "label": "Chapter 1: The Problem", "pages": "13-32"},
    ...
  ]
}
```

## Step 4 — Read each chunk

Loop:
1. Read chunk N (`Read` tool with `pages:` for PDF, full file for text/MD)
2. Extract per the chosen mode (see `references/output-modes.md` for templates)
3. Append the chunk's notes to `~/Documents/books/<workdir>/notes-<NNN>-<label-slug>.md`

For PDFs, **don't read the whole book in one call** — Claude's PDF tool maxes around 10 pages. Process chunks individually.

If a chunk fails to extract anything useful (e.g., it's mostly diagrams or front-matter), log the skip and continue.

## Step 5 — Aggregate into final notes file

Combine all chunk notes into a single `~/Documents/books/<workdir>/notes.md` matching the mode's full-book template (see `references/output-modes.md`).

Top of the file always has the metadata block + the second-brain-compatible frontmatter:

```markdown
source: <file path or URL>
captured: YYYY-MM-DD
type: book
book_title: <title>
author: <author>
mode: notes
chunks: <count>
chunking: <strategy>

# <title> by <author>

## TL;DR
<2–3 sentences>

## Key takeaways
1. ...

## Chapter notes
...

## Cross-references (suggested for wiki)
- Could connect to [[Longevity Biomarkers]] (per Chapter 3 discussion of biomarkers)
- Could connect to [[Productivity & Systems]] (per Chapter 7 framework)
```

The cross-reference suggestions are advisory — they're suggestions for `/sb compile` to act on, not auto-applied. Keep responsibilities separated.

## Step 6 — Offer to capture to second-brain

Ask:

> *"Want to capture this to second-brain? I'll write it to `${SECOND_BRAIN_VAULT:-$HOME/Documents/SecondBrain}/raw/highlights-<slug>.md` matching your vault's `highlights-` type prefix."*

Default is **ask**, never auto-write. If yes:
1. Copy the final `notes.md` (with the second-brain-compatible frontmatter at top) to `${SECOND_BRAIN_VAULT:-$HOME/Documents/SecondBrain}/raw/highlights-<slug>.md`
2. Tell the user the path
3. Suggest: *"Run `/sb compile` later to merge this into wiki pages — the cross-reference suggestions in the footer are starting points."*

If the user skips capture, the workdir still has everything — they can grab the file later.

## Step 7 — Report

In chat:
- One-line headline: `<title> · <author> · <total_pages or word count> · <mode> · <chunks processed>`
- Workdir path
- The TL;DR section
- For `notes` / `study` modes: brief list of top 3 takeaways
- For `quotes` mode: top 3 quotes
- If captured to second-brain: that path too

## Modes (quick invocations)

| Invocation | Mode | Behavior |
|---|---|---|
| `/read-book <input>` | notes | Full pipeline, default mode |
| `/read-book <input> summary` | summary | Just TL;DR + key takeaways (1 read pass for short books, sampled chapters for long) |
| `/read-book <input> quotes` | quotes | Chapter-by-chapter, but only output quotes |
| `/read-book <input> study` | study | Notes + Q&A spaced-rep cards |
| `/read-book <input> --capture` | (any) | Skip the ask step, auto-write to second-brain raw/ |
| `/read-book <input> --render pdf` | (any) | Also render the final `notes.md` to PDF via pandoc (uses `~/.local/share/makerskills/render.css`). See `references/output-modes.md`. |
| `/read-book <input> --render html` | (any) | Same as above but HTML |

## Composes with

- `second-brain` — primary integration: writes `highlights-<slug>.md` to `raw/`. Then `/sb compile` merges into wiki pages.
- `deep-research` — when a research question turns up a book, `/read-book` is the next step. Notes feed back into the research brief.
- `business-brainstorm` — when scoring an idea (e.g., business books on similar models), read-book provides the structured evidence.
- `decide` — when a decision hinges on what an authority has written (e.g., "should I take VC money?" → read Naval / Jason Cohen), `read-book` extracts the relevant chapter.
- `slide-deck` — book takeaways → talk material (book talk pattern).
- `watch-video` — sibling skill, same content-consumption pattern. Audiobook? Use `watch-video transcript` mode.
- `nonfictionskills` / `fictionskills` — when researching to *write* a book, this skill reads the comp titles.

## Error handling

| Failure | Response |
|---|---|
| EPUB/MOBI without pandoc / ebook-convert | Tell the user: `brew install pandoc` or `brew install calibre` (calibre includes `ebook-convert`) |
| PDF is scanned (no text layer) | Suggest OCR first: `brew install ocrmypdf && ocrmypdf <pdf> <pdf-ocr.pdf>` |
| PDF has no detectable TOC | Fall back to 50-page chunks. Note in the metadata. |
| Book is unusually long (>500 pages) | Warn cost / time, ask if the user wants summary mode instead of full notes |
| Chunk extraction empty | Skip the chunk, log, continue. Don't fail the whole run. |

## Notes on quality

- **Don't summarize beyond recognition.** A 30-page chapter should produce 8–15 lines of notes, not 3. Compression is good; flattening is bad.
- **Preserve specifics.** Names, numbers, dates, quotes — keep them. The whole point is later-the user can grep "what did Andy Wilkinson say about X" and find it.
- **Quotes are sacred.** When you flag a quote, copy it verbatim. Note the page if possible.
- **Action items are explicit.** If the book makes you think "I should do X," flag it explicitly. These are the highest-leverage outputs.
- **Frameworks deserve their own bullets.** When the author names a framework (e.g., "the 9-dimension filter," "Save the Cat beats"), call it out by name in the notes.

© coreyhaines31 · MIT · coreyhaines31/makerskills

Похожие скиллы

Всё по теме «Заметки, задачи и проекты» →
book-to-skill virgiliojr94 Преобразует книги и документы в структурированные скиллы с фреймворками, принципами и техниками. Пригодится для работы с авторскими методами внутри агента. CX Codex +1 8 500установок translate-book deusyu Переводит книги из PDF, DOCX и EPUB на нужный язык через параллельных субагентов. Подходит, когда результат нужно собрать в книжный формат. CX Codex +1 1 800установок cli-anything-calibre HKUDS Управляет библиотекой Calibre, конвертирует форматы электронных книг и правит метаданные через вызовы CLI. CX Codex +1 322установок read tw93 Скилл забирает контент по ссылке или из PDF и возвращает краткое summary либо чистый Markdown, а при слабом встроенном поиске ищет через DeepSeek. CX Codex +1 14 000установок exam-ready официальный github Готовит выжимки к экзамену по конспектам и программе. Вытаскивает определения, тезисы и проверочные вопросы без лишней информации. 187установок second-brain-lint NicholasSpisak Скилл проверяет локальную базу знаний на сломанные ссылки, противоречия в фактах и страницы-сироты. Помогает поддерживать порядок в структурированных markdown-заметках. CX Codex +1 2 500установок

Из того же набора13

decide Помогает принять решение через отбор 6–8 ключевых вопросов и сохраняет логику выбора в архив с датой проверки. CX Codex +1 500установок business-brainstorm Прогоняет идею нового бизнеса или сайд-проекта через девять фильтров и выдаёт вердикт: строить, подумать или отказаться. CX Codex +1 396установок company-brain Скилл собирает заметки команды о людях, встречах, процедурах и решениях в хранилище, из которого агент отвечает на вопросы. Пригодится, когда знания расползлись по чатам и транскриптам. CX Codex +1 357установок second-brain Скилл превращает папку с заметками в вики: складывает источники в raw/, компилирует их в связанные страницы и отвечает на вопросы по ним. CX Codex +1 355установок jab-hook Скилл раскладывает ваши посты в X и LinkedIn по схеме «джеб-джеб-джеб-правый хук»: ценность копится, промо бьёт в нужный момент. Черновики уходят в Typefully. CX Codex +1 347установок deep-research Скилл ведёт исследование темы по нескольким источникам и собирает бриф со ссылками, противоречиями и пробелами. Пригодится перед звонком клиенту или выбором технологии. CX Codex +1 344установок slide-deck Собирает презентации в React/Next.js: черновик по брифу, правки существующей колоды, конвертация PPTX и экспорт в HTML, PDF или на Vercel. CX Codex +1 342установок domain Скилл прогоняет кандидатов по доступности, цене и товарным знакам, чтобы имя проекта выбиралось из того, что реально можно купить. CX Codex +1 343установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой