Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

book-mirror

Skill by garrytan

Creates a personalized chapter-by-chapter analysis of an EPUB or PDF book you own, mirroring each chapter back to your life using brain context.

  • Score 93
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install book-mirror

Built from the published package, never by AI.

git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.claude/skills && cp -r /tmp/gbrain/skills/book-mirror ~/.claude/skills/book-mirror

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install book-mirror in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

book-mirror is an agent skill that takes an EPUB or PDF book supplied by the user and writes a personalized, chapter-by-chapter analysis. Each chapter gets two parts: The Chapter, a detailed summary with brief quotes, and The Mirror, which relates the chapter to the reader's own life using their brain context. The output is a single brain page at media/books/<slug>-personalized.md, with an optional PDF rendered through brain-pdf.

The skill runs as the gbrain book-mirror CLI. It extracts text per chapter, gathers context from the brain, then runs read-only subagents, one per chapter, that can only get pages and search. The CLI assembles their results into one page. It is written for readers who want a reflection on a book that reads like a friend pointing out parallels, not a flat summary or advice on what to do.

Written from the project's SKILL.md and checked against it.

What it can do

  • Chapter summariesSummarizes each chapter in detail with brief quotes, keeping each idea as its own section.
  • Personal mirrorMaps each chapter idea to the reader's own situations, people and patterns from the brain.
  • EPUB and PDF extractionPulls chapter text from EPUB files and PDF files into one text file per chapter.
  • Brain context gatheringCollects USER.md, SOUL.md, recent reflections and topic searches to inform the mirror.
  • Read-only chapter analysisRuns one subagent per chapter that can only use get_page and search, not write.
  • Single brain page outputWrites one page at media/books/<slug>-personalized.md, with an optional PDF via brain-pdf.

What you need

  • gbrain CLI and a brain repo
  • Python 3 with beautifulsoup4 and lxml for EPUB input
  • unzip for EPUB input
  • pdftotext for PDF input

Try asking

  • Mirror this book: ~/Books/the-book.epub
  • Apply this book to my life using my brain notes
  • How does this book apply to me? Use my recent reflections

Good to know

  • The user must supply a book they own; the skill never downloads books.
  • The skill writes a brain page, so it changes the brain.
  • Scanned PDFs without text need OCR through brain-pdf or another vision tool.
  • The mirror depends on how much relevant material the brain holds.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/book-mirror/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md27 KB
  • routing-eval.jsonl1 KB

Alternatives to book-mirror

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

book-mirror: common questions

Does book-mirror download books?

No. The user supplies an EPUB or PDF of a book they own, and the skill does not download books.

Where is the output saved?

The output is a single brain page at media/books/<slug>-personalized.md, with an optional PDF via brain-pdf.

Can the chapter subagents change my brain?

No. Each chapter subagent is limited to get_page and search, and the CLI performs the single write.

How do I install book-mirror?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is book-mirror free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is book-mirror safe to use?

It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to book-mirror?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

book-mirror Install

Add to stack

Loading.