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.
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-mirrorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gbrain /tmp/gbrain && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gbrain/skills/book-mirror ~/.gemini/antigravity-cli/skills/book-mirrorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
