SkillsGrove
SkillsGrove/Documents bureautiques/runyuan-wang/nutrition-assistants/book-to-skill-distillation

book-to-skill-distillation

Installation

$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
Installe pour moi cette Agent Skill : https://github.com/runyuan-wang/nutrition-assistants/tree/15acf8f8d54b80d95574ef5e3dc43aaab10cbaba/book-to-skill-distillation — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · 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.
Le SKILL.md ci-dessous est reproduit depuis runyuan-wang/nutrition-assistants (commit 15acf8f) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 book-to-skill-distillation contributors. Licence : book-to-skill-distillation/LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

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). -->
Voir le texte intégral de la licence (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.