技能图谱SKILLSGROVE
技能图谱/办公文档/runyuan-wang/nutrition-assistants/book-to-skill-distillation

book-to-skill-distillation

安装

$npx skills add https://github.com/runyuan-wang/nutrition-assistants --skill book-to-skill-distillation
$git clone --depth 1 https://github.com/runyuan-wang/nutrition-assistants.git /tmp/nutrition-assistants && mkdir -p ~/.claude/skills && cp -r /tmp/nutrition-assistants/book-to-skill-distillation ~/.claude/skills/book-to-skill-distillation
请帮我安装这个 Agent Skill:https://github.com/runyuan-wang/nutrition-assistants/tree/15acf8f8d54b80d95574ef5e3dc43aaab10cbaba/book-to-skill-distillation ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITEnd-to-end workflow for rewriting a book, long PDF, EPUB, or manual into an agent-native LingTai skill/knowledge structure; covers source triage, scanned/image-only PDF OCR, page maps, topic splitting, progressive-disclosure outline design, daemon fan-out, copyright-safe transformation, validation, and publishing.
以下 SKILL.md 内容转载自 runyuan-wang/nutrition-assistants(提交 15acf8f),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 book-to-skill-distillation contributors 所有。许可证:book-to-skill-distillation/LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

book-to-skill-distillation

Convert a linear human text into a branching agent-native skill. Distillation here is not a summary and not a compressed copy: it is a rewrite into the forms an agent can call while working — routers, decision trees, checklists, schemas, prompts, scripts, validation gates, worked examples, and reference modules.

Keep SKILL.md as the router; put depth in reference/, reusable forms in assets/, deterministic helpers in scripts/, and project-private extraction substrate under work/book-distill/<slug>/.

Lifecycle

Scout source → Recover structure → Extract/OCR substrate → Design target skill → Split by agent-native units → Rewrite in parallel → Reconcile → Return to hub → Validate & publish

Router

Situation Read next
understand the core transformation reference/agent-native-rewrite.md
classify PDF/EPUB/source reference/source-triage.md
scanned PDF / blank pdftotext / full OCR reference/scanned-pdf-recipe.md
recover table of contents reference/toc-recovery.md
map book to skill tree reference/outline-design.md
add cyclic return / low-power / trajectory discipline reference/cyclic-low-power-distillation.md
use daemons in parallel reference/daemon-orchestration.md, assets/daemon-task-template.md
copyright concern reference/copyright-discipline.md
validate/publish reference/validation-checklist.md, reference/publishing.md
calibrate on this run reference/worked-example-legal-dd.md

Quick start

  1. Create work/book-distill/<slug>/ and keep source-derived OCR/transcripts there, not inside the published skill.
  2. Run scripts/scout.sh <source.pdf> work/book-distill/<slug> or equivalent inspection; decide whether the source has a text layer.
  3. Recover the source structure: TOC, headings, page offsets, chapter boundaries, appendices, and repeated schemas.
  4. If scanned/image-only, build full-text OCR as private substrate, then split it into topic files by page range.
  5. Design the target skill tree before rewriting: trigger, exclusions, primary routing axis, reference modules, assets, scripts, caveats, and validation plan.
  6. Fan out daemons: each daemon rewrites one topic or coherent topic group into agent-native structures, not into a chapter summary.
  7. Parent reconciles, removes duplication, verifies current-law/current-fact deltas, and enforces copyright-safe abstraction.
  8. Validate, refresh, and smoke-test realistic prompts.

Output test

A good distilled skill lets an agent answer: “What do I do next on this task?” without rereading the book. If the output mostly says what the book said in the same order, it is not yet agent-native.

<!-- Maintainer update: Runyuan Wang (9s5bz2jvd2-lang). -->
查看许可证全文(MIT)
MIT License

Copyright (c) 2026 book-to-skill-distillation contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.