book-to-skill
Skill by virgiliojr94
Converts books and documents into structured agent skills with frameworks, principles, techniques and anti-patterns. Built for people who want an AI assistant to apply an author's methods.
Install book-to-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/virgiliojr94/book-to-skill /tmp/book-to-skill && mkdir -p ~/.claude/skills && cp -r /tmp/book-to-skill ~/.claude/skills/book-to-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/virgiliojr94/book-to-skill /tmp/book-to-skill && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/book-to-skill ~/.gemini/antigravity-cli/skills/book-to-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Book-to-Skill converts books and documents into structured agent skills. It reads local files in PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, and MOBI or AZW formats. It can also search for books through a remote book MCP provider. The output is a skill folder with SKILL.md, chapters, a glossary, patterns and a cheatsheet, rather than a summary.
The skill extracts frameworks, mental models, principles, techniques and anti-patterns, and keeps the author's exact wording for named frameworks. It can run an analyze-only pass for review, generate from a prior analysis, or fold new sources into an existing skill. It is written for users of GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, OpenCode and OpenClaw who want to apply an author's methods while working.
Written from the project's SKILL.md and checked against it.
What it can do
- Full conversionExtracts a document and writes a complete skill with SKILL.md, chapters, glossary, patterns and cheatsheet.
- Analyze onlyExtracts frameworks, principles and techniques into a report for review without writing skill files.
- Generate from prior analysisBuilds skill files from analysis notes produced in an earlier run.
- Update and fold-inMerges new source files into an existing skill and updates its indexes and glossary.
- Search and readSearches for a book through a book MCP provider and builds a skill without saving the raw book file.
- Re-run guardAsks before extraction if a skill with the same name already exists.
What you need
- Calibre, for MOBI and AZW files
- A book MCP server such as libgen-mcp, for search and read mode
Try asking
- Convert ~/books/pro-git.pdf into an agent skill
- Search for Pro Git and build a skill from it
- Apply the frameworks from this book to my current task
Good to know
- In technical mode, only PDFs attempt Docling layout-aware extraction; other formats may lose code, table and formula structure.
- Search and read mode does not save a full raw book file.
- Search and read needs a book MCP server to be set up first.
Security check
D- Has instructions to the assistant hidden in an HTML commentIn
SKILL.md:<!-- Cross-agent notes (informational; ignored by host agents): - Compatible skill roots: GitHub Copilot CLI (~/.copilot/skills, ~/.agents
Checked automatically: SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitattributes795 B -
.gitignore599 B -
AGENTS.md6 KB -
BACKERS.md967 B -
CHANGELOG.md26 KB
Show all 19 files
-
CLAUDE.md134 B -
CONTRIBUTING.md5 KB -
GENERATION.md29 KB -
LICENSE.md1 KB -
README.ja.md19 KB -
README.md19 KB -
README.ru.md12 KB -
README.zh-CN.md15 KB -
SECURITY-NOTICE.md2 KB -
SECURITY.md5 KB -
SKILL.md31 KB -
cliff.toml2 KB -
mkdocs.yml3 KB -
pyproject.toml1 KB
Alternatives to book-to-skill
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
book-to-skill: common questions
Which file formats does Book-to-Skill support?
Local files in PDF, EPUB, DOCX, TXT, Markdown, HTML, RTF, MOBI and AZW are supported. The source lists these formats.
Where are generated skills saved?
The source prefers the user-level root ~/.agents/skills/ for generated skills. Claude Code needs a symlink from ~/.claude/skills/ to reach it.
Does it need an MCP server to work?
Local conversion does not need MCP. An MCP book provider is only needed for the search and read mode.
How do I install book-to-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is book-to-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is book-to-skill safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (has instructions to the assistant hidden in an html comment). Review the code before you install. How grades work.
What are alternatives to book-to-skill?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
