book-to-skill

Из публичных источников

Превращает любой техническую книгу в формате PDF в навык Claude Code — готовый к изучению, справке и использованию во время работы.

Машинный перевод · Показать оригинал

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

AI SkillКатегория: AI-навыки · Документы и офис · Наука и исследования · Коллекции навыковOpen sourceданные проверены 15 окт. 2026 г.

Обзор

  • agent-skills
  • ai-agents
  • book-to-skill
  • context-engineering
  • document-processing
  • edtech
  • knowledge-base
  • knowledge-management
  • llm
  • pdf-to-markdown

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Реестр пакетов языкаpythonИз публичных источниковиз манифеста пакета — публикация в реестре не проверена
    pip install book-to-skill

    Не проверено: перед установкой убедитесь, что пакет в реестре принадлежит этому проекту.

    pypi.org/project/book-to-skill/ ↗
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/virgiliojr94/book-to-skill ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
Claude CodeНеизвестно———
Claude (web & desktop)Неизвестно———
OpenAI CodexНеизвестно———
ChatGPTНеизвестно———
CursorНеизвестно———
GitHub CopilotНеизвестно———
Gemini CLIНеизвестно———
PythonСовместимо—манифест пакета: pyproject.toml name0.60

Релизы

проверено 29 окт. 2026 г.
v1.4.0Последний10 авг. 2026 г.Официальный источник ↗

Файлы версии 1.4.0

К релизу не приложены файлы.

История релизов

Профиль качества

алгоритм quality-v1.0 · оценено 15 окт. 2026 г.
Оценка качества97
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 4 days ago
Документация · 1515
README 15037 chars, description present
Готовность к использованию · 1515
install instructions: yes; releases: yes
Метаданные · 108
3/4 of description, homepage, license, topics
Релизы · 1010
5 release(s), latest 66 days ago
Точность категории · 109
classifier confidence 0.9
Популярность · 1010
34972 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX MIT
Сообщество · 55
issues enabled, 3676 forks

Лицензия

MIT
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/virgiliojr94/book-to-skillОсновной★ 34 972 звёздактивность 12 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

second-brain-osПохожий
Второй мозг на базе ИИ, который поддерживает себя сам. Полное руководство, стартовое хранилище, навыки агентов и скрипты для самоорганизующейся базы знаний в Claude Code и Obsidian.MIT · AI-навыки
ai-memory-vaultПохожий
Дайте вашему ИИ реальную, постоянную память. Открытая система и шаблоны, которые превращают хранилище Obsidian в рабочую память вашего ИИ. Без векторной базы данных, только markdown.CC-BY-SA-4.0 · AI-навыки
awesome-agent-skillsПохожий
awesome-agent-skills — открытый курируемый список фреймворков, библиотек и инструментов Agent Skills для AI-агентов, например Claude Code и Codex.AI-навыки
linkedin-skillsПохожий
Навыки Claude для LinkedIn. 12 навыков для Claude Code и Codex, которые пишут живо звучащие посты в LinkedIn, составляют комментарии, на которые обращают внимание, анализируют вашу ленту и выстраивают график публикаций, — всё из терминала. Контент-инжиниринг от Creative Content Crafts. MIT.MIT · AI-навыки
video-shotcraftПохожий
Навык для создания AI-видео для Claude Code и Codex — кинематографичные видеоролики о продуктах с Remotion: 152 карточки рецептов кадров, 209 превью движения, готовый к использованию шаблонApache-2.0 · AI-навыки
paperclipПохожий
Открытое приложение, которым все пользуются для управления агентами на работеMIT · AI-навыки

README

Из virgiliojr94/book-to-skill · лицензия MIT · загружено 29 окт. 2026 г.

How it works, in 3 steps:

  1. Point it at a file, folder, or glob — /book-to-skill ./my-book.pdf
  2. It distills the book into a skill — frameworks, decision rules, anti-patterns, and per-chapter files. Structure, not a summary.
  3. Your agent loads it on demand — ask /my-book replication and it reads the right chapter and answers from the real content, no hallucination.

🤔 Why

You buy a great technical book. You read it once. Three months later you can't remember chapter 7 existed.

The usual workarounds don't help:

  • 📄 "Let me just search the PDF" → you get a list of pages, not answers
  • 🧠 "I'll ask the agent about this book" → it either hallucinates or says it doesn't have the content
  • 📝 "I'll take notes as I read" → you end up with a 200-line doc you never open again

book-to-skill solves this by turning the book into a structured skill your agent loads on demand.

Once installed, you just type /your-book-slug replication and the agent reads the right chapter and answers from the actual content. No hallucination. No digging through PDFs. The book becomes part of your workflow.

Works with any host that supports the open Agent Skills standard — GitHub Copilot CLI, Amp, Claude Code, Codex, Hermes Agent, OpenCode, and OpenClaw all read the same SKILL.md format.

📦 What it generates

Running /book-to-skill your-book.pdf (or a folder, glob, or list of files) creates a full skill in the user-level cross-agent skills directory ~/.agents/skills/<slug>/ — one copy that Copilot CLI, Amp, Codex, OpenCode, and OpenClaw discover natively (OpenCode also reads its own managed root ~/.config/opencode/skills/<slug>/; OpenClaw also discovers it when using its default state directory, with a non-default OPENCLAW_STATE_DIR use the active state's skills/ root instead). When run under Claude Code, the converter also attempts a verified symlink at ~/.claude/skills/<slug>/ — Claude Code sees the skill when the link read-back confirms it; otherwise the run report says so. Hermes Agent partitions its personal skills by category and does not scan the cross-agent root, so a Hermes install lands in /skills/<category>/<slug>/ instead. OpenClaw-managed, OpenCode-managed, and project-local destinations remain available when explicitly requested:

FilePurposeSize
SKILL.mdCore mental models + chapter index~4,000 tokens
chapters/ch01-*.md …One file per chapter, loaded on-demand~1,000 tokens each
glossary.mdEvery key term, alphabetically sorted with chapter refs~1,500 tokens
patterns.mdAll techniques, algorithms, and design patterns~2,000 tokens
cheatsheet.mdDecision tables and quick-reference rules~1,000 tokens

Chapter files are loaded on-demand — they don't count against the skill budget until you ask about that topic.


🏢 Beyond books

The name says "book", but the input is any structured prose. The same extraction works on knowledge you own and re-read constantly:

  • Internal documentation — architecture decision records, runbooks, onboarding guides. Fold a whole docs/ folder into one skill and ask it while you code.
  • Brand & design systems — voice guidelines, tone-of-voice docs, component principles. Turn a brand book into a skill your team queries instead of skimming a 60-page PDF.
  • Research clusters — a stack of papers plus your own notes, merged into a single unified skill and updated as new material lands (see Update / fold-in).
  • Specs & standards — RFCs, API contracts, compliance docs you reference but never memorize.

If you re-open a document often enough to wish you'd memorized it, it's a candidate.


🧾 The Discovery Loop Tax

A PDF-reading agent doesn't just read — it navigates: it re-fetches the ToC, backtracks, and re-processes all of it on every turn. book-to-skill pays that structuring cost once, at conversion, so queries stay proportional to the answer — 24×–51× fewer tokens than dumping the book into context, measured on real books.

📊 Full methodology, numbers, and per-book tables → docs/performance.md


⚙️ How it works

Two halves: a deterministic Python extractor (document → clean text + metadata) and a spec-driven generator (your agent follows SKILL.md to turn that into a structured skill). On-demand chapter files keep the loaded skill small.

🔧 Full walkthrough (Steps 0–10, extraction modes, token budgets) → docs/how-it-works.md


🚀 Usage

/book-to-skill <path|folder|glob> [skill-name] — plus analyze-only, generate-from-analysis, and update/fold-in modes. After a conversion, the converter can publish the skill to GitHub (private by default) so any host installs it with npx skills add.

▶️ All modes and examples → docs/usage.md

💬 In practice → use cases — a DevEx book became a survey of 300+ engineers; a scanned PDF that stalled became #130. Add yours: the account lives in your own Gist, the index takes a one-line PR.


📥 Install

# One command, any host — via the cross-agent skills CLI:
npx skills add virgiliojr94/book-to-skill

# Or manually — clone into your skills folder (registers /book-to-skill):
git clone https://github.com/virgiliojr94/book-to-skill.git ~/.claude/skills/book-to-skill
# (Copilot CLI: ~/.copilot/skills/ · Amp/cross-agent: ~/.agents/skills/)
# (Hermes Agent: ${HERMES_HOME:-$HOME/.hermes}/skills/<category>/)
# (OpenClaw: ${OPENCLAW_STATE_DIR:-$HOME/.openclaw}/skills/; ~/.agents/skills/ only with default state)
# (OpenCode: ~/.agents/skills/ — it also reads ~/.config/opencode/skills/)

📥 All hosts, optional extractors, and the standalone CLI → docs/install.md


❓ FAQ

Common questions — "why not just dump the PDF?", cost, privacy, non-book inputs, multi-file books.

❓ Answers → docs/faq.md


The extractor tries tools in order per format and uses the first available. If nothing is installed, it tells you which command to run. Plain text, Markdown, reStructuredText and AsciiDoc need no extra deps.

Check your setup in one command: python3 scripts/extract.py --check prints which extractors are installed for every format and the exact command to install anything missing — no file needed.

PDF — choose by book type:

Book typeToolInstallSpeed
Text-heavy (prose, few tables)pdftotext (poppler)sudo apt install poppler-utils⚡ instant
Text-heavy fallbackpypdfpip3 install pypdf⚡ instant
Text-heavy fallbackpdfminer.sixpip3 install pdfminer.six⚡ instant
Technical (code, tables, formulas)doclingpip3 install docling~1.5s/page

Before extraction begins, the skill asks you whether the book is technical or text-heavy and picks the right tool automatically. Docling preserves markdown tables and code blocks; pdftotext is faster for prose-only books.

Scanned PDFs need OCR first. A PDF that is page images with no text layer — a photographed or scanned book — has nothing for these tools to extract. The extractor checks the first pages and stops immediately with an explanation, rather than working through the whole book to produce an empty skill. Run OCR yourself, then convert the result:

ocrmypdf input.pdf output.pdf

EPUB:

ToolInstallQuality
ebooklib + beautifulsoup4pip3 install ebooklib beautifulsoup4⭐⭐⭐ Best
stdlib zipfilebuilt-in — no install needed⭐⭐ Always available

Other formats:

FormatToolInstall
DOCXpython-docx (fallback: stdlib ZIP/XML)pip3 install python-docx
HTMLbeautifulsoup4 (fallback: stdlib html.parser)pip3 install beautifulsoup4
RTFstriprtf (fallback: regex)pip3 install striprtf
MOBI / AZW / AZW3Calibre ebook-convert (external app, not pip)https://calibre-ebook.com/download
TXT / Markdown / reStructuredText / AsciiDocbuilt-in—

book-to-skill/
├── SKILL.md              # Skill definition + step-by-step instructions (the generator spec)
├── scripts/
│   ├── extract.py        # Thin entrypoint wrapper
│   └── extractor/        # Modular extraction package
│       ├── config.py     # Extensions, paths, dependency constants
│       ├── dependencies.py  # optional-dep probing + --check
│       ├── exceptions.py # ExtractionError (per-source failures, batch-safe)
│       ├── utils.py      # CLI parsing, multi-source resolution, chapter detection, runner
│       └── parsers/      # Format-specific parsers (pdf, epub, docx, html, rtf, calibre, text)
├── tools/
│   ├── discovery_tax.py  # measures token cost vs context-dump / discovery loop
│   └── validate_skill.py # checks a generated SKILL.md against host rules (--lens claude|copilot|amp|hermes|openclaw|opencode)
├── tests/                # pytest suite (extraction, detection, discovery tax)
├── docs/
│   ├── performance.md    # measured benchmarks, discovery tax, cost
│   └── architecture.md   # pipeline + component map
├── CHANGELOG.md          # release history (semver)
├── CONTRIBUTING.md       # dev setup, PR conventions, release process
├── SECURITY.md           # vulnerability reporting
└── README.md             # This file


⚖️ Copyright & fair use

book-to-skill ships no book content — not a single page. It's a converter you point at files you already own.

  • Processing is local. Extraction and analysis run on your machine. Your files are never uploaded by this tool. (If your agent's model runs in the cloud, the text you feed it follows that provider's normal data terms — same as any prompt.)
  • You use your own copy. Bring a book you bought, docs your company owns, or papers you have the right to read.
  • The output is your notes. A generated skill is a structured, synthesized derivative — framework names, definitions, takeaways — not a reproduction of the text. The skill explicitly never copies raw passages (see Quality Rule #7). Treat it like handwritten study notes: yours, for personal use.
  • Don't redistribute. Publishing or sharing a generated skill of a copyrighted work can infringe the rights holder. Keep skills of third-party books private. Internal docs, your own writing, and openly-licensed material are fine to share within the bounds of their license.

When in doubt, follow the license or terms of the source document. This project is a tool; how you use it is on you.


💖 Sponsors

book-to-skill is free and MIT-licensed, maintained on personal time. If it saves you tokens or study hours, consider sponsoring its upkeep: PR reviews, multilingual fixes, releases, and docs.

Become a sponsor → github.com/sponsors/virgiliojr94

Every sponsor is listed in BACKERS.md. Thank you for keeping open, privacy-first tooling alive. ✨

License

MIT — applies to the converter (code + skill definition) in this repository, not to any book or document you process with it.

Открыть репозиторий ↗