book-mirror

book-mirror is a skill for Claude Code, Codex from timurgaleev/memex. It costs 71 tokens per session (3,275 once invoked), scanned A, original, MIT.

A personalized book analysis for an EPUB or PDF. It summarizes each chapter and connects the ideas to the reader’s own life using relevant context from their personal knowledge base.

In plain words
What is it for?
Use it to create a chapter-by-chapter personal analysis as a brain page, with the book’s content in one column and real-life applications in the other, plus an optional PDF.
Why use it?
A general summary can explain a book without showing why it matters to one reader. This format links the book’s ideas to the reader’s situations, people, and recurring patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to create a chapter-by-chapter personal analysis as a brain page, with the book’s content in one column and real-life applications in the other, plus an optional PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timurgaleev/memex/book-mirror
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add timurgaleev/memex --skill book-mirror
Clone the repo
git clone --depth 1 https://github.com/timurgaleev/memex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for book-mirror

README.md
[![agentmods](https://agentmods.dev/badge/skills/timurgaleev/memex/book-mirror.svg)](https://agentmods.dev/skills/timurgaleev/memex/book-mirror)
Your own site
<a href="https://agentmods.dev/skills/timurgaleev/memex/book-mirror"><img src="https://agentmods.dev/badge/skills/timurgaleev/memex/book-mirror.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.03275
Opus 5 $0.00036 $0.01638
Sonnet 5 $0.00014 $0.00655
Haiku 4.5 $0.00007 $0.00328

Measured 7d ago against content hash 21ebae5370e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

book-mirror scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

deploy/skills/book-mirror/SKILL.md · 349 lines

How it starts

The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.

book-mirror — Personalized Chapter-by-Chapter Book Analysis

Convention: see _brain-filing-rules.md (via get_skill _brain-filing-rules) for the sanctioned media/<format>/<slug> exception this skill files under.

Convention: see conventions/quality.md (via get_skill conventions/quality) for citation rules, back-link enforcement, and output quality bars.

Convention: see conventions/brain-first.md (via get_skill conventions/brain-first) for the lookup chain (brain → search → external) the context-gathering phase follows.

What this does

Given a book (EPUB or PDF), produce a brain page where every chapter is summarized in detail on the left and mirrored back to the reader's actual life on the right, using their own words, situations, people, and patterns from the brain. Output is a brain page at media/books/<slug>-personalized.

This is NOT a generic book summary. The right column is the value: it makes the book read like a therapist who knows the reader is leaving notes in the margins. If the user wants a flat summary instead, route them to a different skill.

Trust contract (read this before running)

book-mirror is an orchestration the agent runs itself, with a strict trust narrowing on the fan-out:

  • The orchestrating agent spawns N read-only chapter subagents (one per chapter) via its own subagent mechanism (e.g. the Task tool). Each chapter subagent is allowed page_get and search ONLY. They CANNOT call page_put or any mutating tool. They produce markdown analysis via their final message.
  • The orchestrator reads each subagent's result, assembles the final two-column page, and writes it via a single trusted page_put.
  • This means untrusted EPUB/PDF content cannot prompt-inject any people/* page. The trust narrowing happens at the tool allowlist, not at the slug-prefix layer.

The pipeline

1. ACQUIRE   → User has the EPUB/PDF locally (manual; book acquisition is
               deliberately not part of this skill — see "Acquiring the
               book" below).
2. EXTRACT   → Pull chapter text from EPUB/PDF into one .txt per chapter.
3. CONTEXT   → Gather everything the brain knows about the reader.
4. ANALYZE   → Fan out N read-only chapter subagents.
5. ASSEMBLE  → Orchestrator reads each result and writes one page_put.
6. PDF       → Optional: render via skills/brain-pdf for delivery.

Read the full file on GitHub · 349 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 349 lines · 71 tokens per session scan A 21ebae5370e2

Subscribe to this mod's changes

book-mirror is a skill published in the GitHub repository timurgaleev/memex (8 stars, last pushed 5d ago), licensed MIT. It adds 71 tokens to every session and 3,275 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pptx-import

A method for adding an uploaded PowerPoint presentation to an existing classroom as extra pages while keeping the slides' original layout. PowerPoint is Microsoft's presentation file format.

THU-MAIC/OpenMAIC · 125 tokens

pdf-processing

Extract text from PDFs, fill forms, and merge documents.

PrefectHQ/fastmcp · 11 tokens

liteparse

Use this skill when the user asks to parse, perform multi-format document conversion or spatially extract text from an unstructured file (PDF, DOCX, PPTX, XLSX, images, etc.) locally without cloud dependencies.

synthetic-sciences/openscience · 49 tokens

treatment-plans

Generate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based…

synthetic-sciences/openscience · 86 tokens

markitdown

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

synthetic-sciences/openscience · 53 tokens

exam-study-guide

A study-guide builder for a completed exam chapter that has not yet passed its required checks. It creates a structured teaching checklist and, in full mode, a self-contained HTML and printable PDF guide with readable formulas, visible images, explanations, examples, and answers.

ZeKaiNie/universal-examprep-skill · 113 tokens