distill-book

Installation
SKILL.md

Distill a book

The core idea

A book is too large to load into one context window and reason about well. So fan it out: split the book into chapters, hand each chapter to its own subagent that distills it in isolation, then read back the short overviews -- not the raw chapters -- and synthesize them.

The point is context hygiene: each subagent loads only one chapter, and the orchestrator never reads a full chapter, so the approach scales to any size of book. If you find yourself pulling raw chapter text into your own context, you've lost the benefit -- delegate it.

This skill stays deliberately high-level and format-agnostic. A book might arrive as a PDF, EPUB, Markdown, HTML, plain text, or something else; use whatever tools and methods suit that format. The workflow below is what matters, not the mechanics.

When to use this skill

Use it when someone wants the core learnings out of a long document (book, manual, report) that's too big to read in one go -- especially when they want the result turned into a skill or a structured overview. For short documents that fit in context, just read them directly; this machinery is overkill.

Workflow

  1. Check the source is usable, and flag problems before grinding. Confirm you can get real, extractable text out of the document, whatever its format. Some formats need a step first -- a scanned PDF needs OCR, HTML may need its markup stripped -- while Markdown or plain text is ready as-is. Reach for the right tool for the format (for example, the pdf skill for PDFs). If the source won't yield usable text, say so up front rather than after a long process.

  2. Break it into chapters (or natural sections). Read the book's own structure -- table of contents, headings -- to find the boundaries. Conventions vary wildly between books, so this is a judgment call, not a fixed rule; verify the split looks sane before spending tokens on it. If there are no clear chapters, fall back to Parts, sections, or sensible chunks, and say what you did. Usually skip front/back matter (preface, index, appendices) unless it's worth distilling.

Installs
40
Repository
maragudk/fabrik
GitHub Stars
27
First Seen
Jul 7, 2026
distill-book — maragudk/fabrik