Command Palette

Search for a command to run...

Назад к скиллам
скилл № 05022

Distill

Distill a technical book (PDF/EPUB) or author's web corpus (essays, posts) into concept-organized skill reference files (writes reference files only; batched…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Distill в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Distill a book or web corpus into a skill

Transform technical books, or a person's or company's published web corpus, into structured skill reference files that provide the why behind decisions during development. This is a multi-session process. Each session handles ~3 chapters, or one batch of 10 to 15 pieces for a web corpus (reference/web-corpus.md). The skill produces concept-organized reference files with author attribution, suitable for progressive disclosure in Claude Code skills.

Write the files into the target skill named at invocation, an existing skill to extend or a new one, at <session-root>/.claude/skills/<target-slug>/. <session-root> follows the knowledge plugin's one rule, ${CLAUDE_PLUGIN_ROOT}/reference/work-root.md, with no library_dir join; resolve it once from the session's working directory with node "${CLAUDE_PLUGIN_ROOT}/scripts/work-root.mjs". Slugify the target name (lowercase alphanumerics and hyphens only; strip /, \, and ..) before building any path, and verify the resolved directory stays under <session-root>/.claude/skills/ before writing.

Condensed sources stay private. A condensed book or corpus is a derivative work (see Usage caution), so it never lands where a commit could publish it. Right after resolving the target skill directory, and before any write (the Phase 1.1 skeleton included), check it:

node "${CLAUDE_PLUGIN_ROOT}/scripts/repo-visibility.mjs" "<session-root>/.claude/skills/<target-slug>"

The JSON line it prints names the directory's visibility (a directory that does not exist yet is judged by the repository it would land in). The verdict is an allowlist:

  • private, internal or local (no remote, so nothing is published), exactly: proceed.
  • Anything else stops before writing anything: public, unknown, any other value, a missing visibility field, output that is not one JSON line, or a nonzero exit. Tell the person that a distillation is a derivative work kept for personal use, and to rerun from a private repository or one with no remote (for example their private corpus checkout), where the full distillation is written. The content is redirected, never dropped.

A resumed session and a corpus refresh run it again before their first write, with the same allowlist.

The context/, templates/ and reference/ files write the plugin data directory as <plugin-data> and the plugin root as <plugin-root>. Put the ${CLAUDE_PLUGIN_DATA} or ${CLAUDE_PLUGIN_ROOT} path this body shows in its place before a path from those files goes into a command or a file write.

Example shape: a testing skill distilled from two books, Beck's Test-Driven Development by Example and Khorikov's Unit Testing, producing ~14 reference files, with shared files where the authors overlap.

Usage caution. Copyright

This tool is a neutral distiller: it applies a method, it does not judge what you feed it. A condensation of a copyrighted book is a derivative work (17 U.S.C. §§ 101, 106), the rights holder's exclusive rights include preparing and distributing derivatives. Keeping a private distillation for your own study is a different act from publishing, committing, or sharing one; fair use is a defense raised after the fact, not a safe harbor you can assume in advance. You own the rights decision for every book you distill and for where its outputs go. Distribute or publish a distilled output only once you have satisfied yourself that doing so is lawful for that book. This is a caution, not legal advice.

Quick decision guide

  • "New skill or extend existing?" → If the book's discipline matches an existing skill (e.g., a testing book matches a testing skill), extend it. Otherwise create a new skill
  • "One file per chapter or per concept?" → Per concept. Chapters often split across concepts or overlap
  • "How many sessions will this take?" → Roughly: total chapters / 3, plus 1-2 sessions for merges, SKILL.md update, and polish
  • "PDF or EPUB?" → PDF is read with the Read tool (pages: "1-20", within the limit the pointer under "Reading a chapter (PDF)" names). EPUB requires unzipping and text extraction. PDF is simpler
  • "How do I resume across sessions?" → The continuation prompt (generated at session end) tells the next session exactly where to pick up
  • "Book or web corpus?" → A PDF or EPUB file you hold runs the phases below as written. A person's or company's published essays, blog, talk transcripts, newsletter or docs run as a web corpus: Phase 1.2 settles its scope, and its collect, extract and cluster steps replace Phase 2 and Phase 3 (reference/web-corpus.md)

Emit checklist

For multi-session book distillati

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • context/templates.md
  • evals/evals.json
  • reference/web-corpus.md
  • templates/checklist.md

FAQ

Что делает скилл Distill?

Distill a technical book (PDF/EPUB) or author's web corpus (essays, posts) into concept-organized skill reference files (writes reference files only; batched chapters/pieces). Use when: 'turn a book into a skill', 'distill published essays', or continuing a PDF/EPUB distillation. Not for one docs page: /knowledge:docpage-digest.

Как установить скилл Distill?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Distill запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Distill с