book-to-skill

book-to-skill is a skill for Claude Code from oyi77/1ai-skills. It costs 74 tokens per session (2,934 once invoked), scanned B, original, MIT.

A converter that turns books and documents into structured instructions for an AI agent. It accepts formats such as PDF, EPUB, DOCX, HTML, and Markdown.

In plain words
What is it for?
It helps turn technical reading into reusable agent guidance while keeping chapter references and detailed source knowledge.
Why use it?
It removes the need to manually extract useful frameworks, principles, and decision rules from long documents.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the 1ai-skills plugin — 209 skills, 4 commands shipped together

Good fit It helps turn technical reading into reusable agent guidance while keeping chapter references and detailed source knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/book-to-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oyi77/1ai-skills --skill book-to-skill
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 209 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for book-to-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/book-to-skill/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/book-to-skill)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/book-to-skill"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/book-to-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for book-to-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/book-to-skill"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/book-to-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,934 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.02934
Opus 5 $0.00037 $0.01467
Sonnet 5 $0.00015 $0.00587
Haiku 4.5 $0.00007 $0.00293

Measured 2d ago against content hash 3a8e075693f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

book-to-skill scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 24 executable files (book_to_skill/__init__.py, book_to_skill/__main__.py, book_to_skill/cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install poppler-utils # for pdftotext (text-heavy PDFs, instant)
core/book-to-skill/SKILL.md · 310 lines

How it starts

The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

This skill converts technical books and documents — PDF, EPUB, DOCX, HTML, Markdown, RTF, MOBI — into structured agent skills with frameworks, mental models, chapter references, and decision rules. Use it when a knowledge source should become reusable operational guidance. It includes the full extraction and structuring pipeline.

persona: name: "Virgilio Jr." title: "The Knowledge Distiller — Book-to-Skill Pipeline Maintainer" expertise: ['Document Extraction', 'Knowledge Structuring', 'Agent Skill Design', 'Pipeline Engineering'] philosophy: "Books contain crystallized expertise. Extract structure, not summaries." credentials: ['Creator of book-to-skill (MIT)', 'Open-source maintainer'] principles: ['Structure over summary', 'Preserve author precision', 'Layer depth appropriately', 'Privacy-first: all processing local']

Book-to-Skill Converter

Transform written knowledge into actionable agent skills by extracting frameworks, principles, techniques, and anti-patterns — not producing summaries.

Upstream repo: github.com/virgiliojr94/book-to-skill
Upstream author: @virgiliojr94
This integration: Full extraction pipeline vendored into core/book-to-skill/
License: MIT
Format support: PDF, EPUB, DOCX, TXT, Markdown, reStructuredText, AsciiDoc, HTML, RTF, MOBI/AZW/AZW3


Process

Convert a knowledge source into a structured, loadable skill by following the extraction pipeline.

  1. Ingest — load the source in its native format (PDF, EPUB, DOCX, HTML, Markdown, RTF, MOBI) and confirm all chapters/sections are readable.
  2. Extract structure — pull frameworks, mental models, chapter references, and decision rules into the skill's working sections.
  3. Author the skill — write frontmatter (name, description, domain), a workflow, and at least one concrete code example grounded in the source.
  4. Validate — run the repo's lint and test gates; fix section or frontmatter gaps.
  5. Install and verify — load the skill in your agent harness and run one real task against it.

Read the full file on GitHub · 310 lines

Files

What ships with it

35 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +21 lines 3a8e075693f7
  2. 8d ago First seen · 289 lines · 74 tokens per session scan B 4b0b42bb0025

Subscribe to this mod's changes

book-to-skill is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 2,934 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

zebbern/claude-code-guide · 92 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

awslabs/agentcore-samples · 92 tokens

learning-practice-coevolution

AI-guided learning coach that turns books, articles, PDFs, courses, concepts, and real tasks into a reconstruct-critique-transfer-reflect loop. Use for active recall, teach-back critique, concept repair, transfer practice, project-based learning, serial lessons, targeted reading recommendations, or reusable method…

michael-uplive021/learning-practice-coevolution · 94 tokens

book-to-skill

Book-to-skill takes technical books, documentation, or other long-form sources and converts them into a skill made of a core definition plus per-chapter files, a glossary, and cheatsheets, so an agent can load only the relevant section instead of the whole document. It supports PDF, EPUB, DOCX, HTML, and several other…

best-of-ai/best-of-ai · 75 tokens

knowledge-absorber

A tool that deeply examines links, documents, code, or images and turns them into teaching notes and knowledge posters. It supports formats such as PDF, Word, Markdown, source code, and images, and can save the results to a knowledge base.

wwwzhouhui/skills_collection · 171 tokens

PDF Content Extractor & Annotator

A tool for extracting and analyzing PDF content, including text, tables, metadata, and embedded images. It can also combine PDFs, add annotations, remove some watermarks, and use OCR to read scanned pages.

davidtoby/agent-skills · 44 tokens