SkillsGrove
SkillsGrove/Documentos de oficina/runyuan-wang/nutrition-assistants/book-to-skill-distillation

book-to-skill-distillation

Instalación

$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
Instala por favor esta Agent Skill por mí: https://github.com/runyuan-wang/nutrition-assistants/tree/15acf8f8d54b80d95574ef5e3dc43aaab10cbaba/book-to-skill-distillation. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · 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.
El SKILL.md siguiente se reproduce de runyuan-wang/nutrition-assistants (commit 15acf8f) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2026 book-to-skill-distillation contributors. Licencia: book-to-skill-distillation/LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los 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). -->
Ver el texto completo de la licencia (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.