book-to-skill — technical books into Claude Code skills

Turn any technical book or document into a Claude Code skill so the material can be studied, referenced, and used while you work.

Snapshot

  • Stars: 1313
  • Forks: 154
  • Open issues: 1
  • Language: Python
  • License: MIT License
  • Description: Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.
  • Formats: PDF, EPUB, DOCX, TXT, Markdown, reStructuredText, HTML, RTF, MOBI/AZW/AZW3

What it does

  • Compiles a source document into a Claude Code skill rooted at ~/.claude/skills/<slug>/.
  • Generates a compact SKILL.md plus chapter files, glossary, patterns, and a cheatsheet.
  • Treats chapters as on-demand context instead of dumping raw text into every prompt.
  • Adapts extraction strategy to the book type: technical books get Docling first; text-heavy books fall back to lighter PDF extractors.

Why it matters

This repo is useful because it turns a one-off book into reusable working knowledge. That is closer to a durable moc-ai-coding workflow than ordinary PDF search, and it also fits the wider moc-dev-tools pattern of tools that reduce context friction for agents.

For Claude Code users, it extends the same logic behind 2026-04-22-skills-manage: make skills first-class, load only what is needed, and keep the rest on disk until a topic is relevant.

Workflow cues

  1. Point the command at a document: /book-to-skill <path-to-document>
  2. Let the extractor choose a technical or text-heavy path.
  3. Review the generated skill, chapter files, glossary, patterns, and cheatsheet.
  4. Load the skill later with topic-specific slash commands while working.