Open-source Claude Code plugin captures books and converts them to structured Markdown

✍️ OpenClawRadar📅 Published: March 28, 2026🔗 Source
Open-source Claude Code plugin captures books and converts them to structured Markdown
Ad

What it does

book-capture is a Claude Code plugin that converts books into structured Markdown files. You open a book on your Mac, run a command, and it automatically processes the content through a multi-step pipeline.

Technical implementation

The tool captures book content using several methods:

  • Screenshots every page automatically using macOS screencapture + CGWindowList via Swift
  • Runs OCR with macOS Vision framework
  • Pages that Vision can't read well (especially vertical Japanese text) get re-read by Claude Code agents via multimodal image reading
  • Analyzes the full text and generates structured Markdown files organized by theme — not by chapter order

Output format

The plugin creates multiple topic files (500+ lines each) containing:

  • Tables
  • Blockquotes
  • Cross-references
  • A hub file with wikilinks

The output is standard Markdown, built for Obsidian but compatible with any Markdown editor.

Ad

Key implementation details

  • No external API keys — all AI work runs through Claude Code agents
  • Theme count scales with book size (4-6 for a short book, up to 25 for 500+ pages)
  • Parallel agents generate topic files simultaneously
  • End-of-book detection via perceptual image hashing (3 consecutive identical pages = done)
  • Supports Mac Kindle, Apple Books, Kindle Cloud Reader (Playwright), and scanned PDFs (Poppler)

Requirements and setup

The tool requires macOS. The OCR uses a Swift CLI that compiles on first run. The source is available on GitHub at https://github.com/masterleopold/book-capture.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also