agentsclimarketplace

Book to skill distillation

Skill huangzesen/book-to-skill-distillation

End-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.From its SKILL.md

Install
npx -y skills add huangzesen/book-to-skill-distillation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.1 KB, 597 tokens by cl100k_base, as published. Nobody here has run it

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 → Validate & publish

Router

SituationRead next
understand the core transformationreference/agent-native-rewrite.md
classify PDF/EPUB/sourcereference/source-triage.md
scanned PDF / blank pdftotext / full OCRreference/scanned-pdf-recipe.md
recover table of contentsreference/toc-recovery.md
map book to skill treereference/outline-design.md
use daemons in parallelreference/daemon-orchestration.md, assets/daemon-task-template.md
copyright concernreference/copyright-discipline.md
validate/publishreference/validation-checklist.md, reference/publishing.md
calibrate on this runreference/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.

What ships with it: 22 files

21.3 KB alongside SKILL.md, 5 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.