← Back to list
✍️

book-to-skill

Converts books and documents into structured agent skills from local files (PDF, EPUB, DOCX, HTML, M
✍️ Writing skills By virgiliojr94 Version v1.0.7675fe1 Added 2026-12-04 Updated 2026-12-04 Source ↗
7.8Overall rating
0Views
0Downloads
0Stars

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "book-to-skill" skill by following the instructions at https://skill123.me/install/book-to-skill?ref=detail
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/book-to-skill.sh?ref=detail | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.7675fe1 · 146 KB
📊 Static rating
7.8/10
Trigger
7.8
Structure
6.8
Workflow
8.5
Content
6.8
Engineering
7.5
Security
8.5

Six-dimension rubric with reviewer rationale.

View scorecard ↓
🛡 Dynamic test
—

Not live-tested yet — this skill is rated on static analysis only.

About this skill

Converts books and documents into structured agent skills from local files (PDF, EPUB, DOCX, HTML, Markdown, TXT, RTF, MOBI/AZW) or remote MCP book search (/book-to-skill search <query>), extracting frameworks, mental models, principles, techniques, and anti-patterns. Use via GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, OpenCode, or OpenClaw to study a document or apply an author's frameworks.

<!--

Cross-agent notes (informational; ignored by host agents):

  • Compatible skill roots: GitHub Copilot CLI (~/.copilot/skills, ~/.agents/skills,

.github/skills, .claude/skills, .agents/skills), Amp (.agents/skills,

~/.config/agents/skills, ~/.config/amp/skills), Claude Code (~/.claude/skills),

Hermes Agent ($HERMES_HOME/skills, .hermes/skills, .agents/skills),

OpenClaw (${OPENCLAW_STATE_DIR:-~/.openclaw}/skills, .agents/skills, skills/;

~/.agents/skills only with the default state).

OpenCode (~/.config/opencode/skills, ~/.claude/skills, .opencode/skills,

~/.agents/skills, .agents/skills).

  • allowed-tools is intentionally omitted to stay agent-neutral: Copilot CLI uses

shell/MCP-server names, Claude uses Bash/Read/Write/Glob/Grep, Amp

adds shell_command. The skill needs shell (to run extract.py) and file

read/write — each host will prompt for those on first use.

  • Argument hint: <path-to-document-folder-or-glob>... [skill-name-slug] | search <query>

-->

Book-to-Skill Converter

Transform written knowledge into actionable agent skills by extracting structure — not producing summaries.

Documentation

Converts books and documents into structured agent skills from local files (PDF, EPUB, DOCX, HTML, Markdown, TXT, RTF, MOBI/AZW) or remote MCP book search (/book-to-skill search <query>), extracting frameworks, mental models, principles, techniques, and anti-patterns. Use via GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, OpenCode, or OpenClaw to study a document or apply an author's frameworks.

<!--

Cross-agent notes (informational; ignored by host agents):

  • Compatible skill roots: GitHub Copilot CLI (~/.copilot/skills, ~/.agents/skills,

.github/skills, .claude/skills, .agents/skills), Amp (.agents/skills,

~/.config/agents/skills, ~/.config/amp/skills), Claude Code (~/.claude/skills),

Hermes Agent ($HERMES_HOME/skills, .hermes/skills, .agents/skills),

OpenClaw (${OPENCLAW_STATE_DIR:-~/.openclaw}/skills, .agents/skills, skills/;

~/.agents/skills only with the default state).

OpenCode (~/.config/opencode/skills, ~/.claude/skills, .opencode/skills,

~/.agents/skills, .agents/skills).

  • allowed-tools is intentionally omitted to stay agent-neutral: Copilot CLI uses

shell/MCP-server names, Claude uses Bash/Read/Write/Glob/Grep, Amp

adds shell_command. The skill needs shell (to run extract.py) and file

read/write — each host will prompt for those on first use.

  • Argument hint: <path-to-document-folder-or-glob>... [skill-name-slug] | search <query>

-->

Book-to-Skill Converter

Transform written knowledge into actionable agent skills by extracting structure — not producing summaries.

Philosophy

Books contain crystallized expertise: frameworks, principles, and techniques that took years to develop. This skill extracts that knowledge into a format GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, OpenCode, OpenClaw, or another compatible agent can leverage repeatedly.

**Extract structure, not summaries.** A skill isn't a book report. It's a toolkit of:

  • Named frameworks (mental models with clear application)
  • Actionable principles (rules that guide decisions)
  • Techniques (step-by-step methods)
  • Anti-patterns (what to avoid and why)
  • Voice calibration (how the author thinks and communicates)

**Preserve the author's precision.** Frameworks often have specific names for reasons. "The 5 Whys" isn't interchangeable with "ask why multiple times." Capture the exact formulation.

**Layer depth appropriately.** Simple books → simple skills. Complex books with 10+ frameworks → skills with reference files and on-demand chapters.

---

Modes of Operation

Local paths (Input Mode 1, default — no MCP required) and remote search (Input Mode 2, MCP-assisted). Route based on what the user asks:

### 1. Full Conversion (Default)

**Trigger:** User provides one or more document/directory/glob paths without special instructions

**Action:** Run all steps below (Steps 0–9)

**Output:** Complete skill with SKILL.md, chapters/, glossary, patterns, cheatsheet

View full documentation

### 2. Analyze Only

**Trigger:** User says "analyze", "just extract", or "I want to review before generating"

**Action:** Run Steps 0–3, then produce a structured extraction report (frameworks, principles, techniques found). Stop — do NOT generate skill files.

**Output:** Analysis report for user review

### 3. Generate from Prior Analysis

**Trigger:** User has existing analysis notes or previously ran analyze-only

**Action:** Skip Steps 0–3, use the provided analysis as input, run Steps 4–9

**Output:** Skill files from the provided analysis

### 4. Update / Fold-in (Existing Skill)

**Trigger:** User provides one or more new source paths and indicates they want to update an existing skill (either by pointing to the existing skill folder, providing a skill slug that already exists in SKILLS_HOME, or explicitly requesting an update).

**Action:** Run Step 0 (out-of-scope check), Step 1 (validate inputs), Step 1.5 (identify book type), and Step 2 (extract new files). Then skip to Step 5 (identify/detect existing skill path) and run the **Update / Fold-in Workflow** to merge the new content into the existing skill files.

**Output:** Updated existing skill with new/revised chapter summaries and merged indexes/glossaries.

### 5. Search & Read (Input Mode 2 — MCP)

**Trigger:** /book-to-skill search <query> (or user asks to search/find a book remotely when an MCP provider is available)

**Action:** Check MCP availability in Step 0, then read references/search-and-read.md only when Mode 2 Search & Read is triggered and follow its incremental MCP workflow (MCP discovery, confirmation, incremental chapter synthesis, Steps 8–11).

**Output:** Same skill layout (SKILL.md, chapters/, glossary.md, patterns.md, cheatsheet.md) without saving a full raw book file.

---

Skill Locations

This converter can run from multiple skill systems. When looking for this converter's helper script or writing the generated book skill, prefer these locations in order:

1. GitHub Copilot CLI personal skills: ~/.copilot/skills/

2. Cross-agent personal skills (Copilot, Amp, Codex; OpenClaw with its default state): ~/.agents/skills/

3. Claude Code personal skills: ~/.claude/skills/

4. Project-local Copilot skills: .github/skills/

5. Project-local Claude skills: .claude/skills/

6. Project-local Amp / Copilot / OpenClaw skills: .agents/skills/

7. Amp global skills: ~/.config/agents/skills/

8. Amp legacy global skills: ~/.config/amp/skills/

9. Hermes Agent personal skills: $HERMES_HOME/skills/ (defaults to ~/.hermes/skills/)

10. Hermes Agent project skills: .hermes/skills/ or .agents/skills/

11. OpenClaw personal skills: ${OPENCLAW_STATE_DIR:-~/.openclaw}/skills/ (active state; ~/.agents/skills/ is shared only with the default state)

12. OpenClaw project skills: .agents/skills/ or skills/

11. OpenCode personal skills: ~/.config/opencode/skills/ or ~/.agents/skills/

12. OpenCode project skills: .opencode/skills/ or .agents/skills/

For **generated** book skills, prefer the user-level cross-agent root ~/.agents/skills/ — one physical copy serves the cross-agent hosts and OpenClaw when it uses its default state. Copilot CLI and Amp discover it natively; Claude Code needs a symlink from ~/.claude/skills/<skill_name> (created in Step 10, see Step 5 for the rules). Pick a host-private or project-local root only when the user explicitly asks for one. BOOK_TO_SKILL_SCOPE=project or personal can make that choice explicit for automation; do not ask a mandatory scope question merely because both scopes are available.

---

Step 0 — Out-of-scope check

If no arguments (or help) are provided, present both paths cleanly (avoid internal "Mode 1/Mode 2" labels in user-facing replies) and ask what to convert:

> "Choose how to start:

> 1. **Local book or folder** *(ready now — PDF, EPUB, DOCX, TXT, MD, HTML, RTF, MOBI/AZW)*: /book-to-skill ~/books/pro-git.pdf

> 2. **Search & Read via MCP** *(status: <connected: provider | not configured — run search to set up or query>)*: /book-to-skill search "Pro Git"

>

> Reply with a file path, a search query, or install mcp to configure Search & Read."

Throughout the workflow:

  • **Mode 2 (Search & Read) routing:** If search (with or without <query>), install mcp, or a remote book lookup with no local path is requested, check whether an MCP book provider (libgen-mcp or a configured provider exposing book search and read tools) is exposed in the host agent's toolset:
  • **MCP unavailable (or install mcp requested):** STOP without printing a dry error; explain that Search & Read needs a book MCP server (libgen-mcp or similar), and offer two clear options: *(1)* **Set up libgen-mcp now** — ask for explicit confirmation, and once confirmed, read the ## Setup section of references/search-and-read.md to install/register it safely for the active host (without overwriting existing MCP servers or proceeding without consent), OR *(2)* **Convert a local file right now** (Mode 1: /book-to-skill ~/books/pro-git.pdf).
  • **MCP available, query missing:** Ask "What book, author, ISBN, or DOI should I search for? (e.g. Pro Git or Think Python)" — do not treat a bare /book-to-skill search as an error.
  • **MCP available with query:** Read references/search-and-read.md only when Mode 2 Search & Read is triggered and follow it instead of local Steps 1–3.
  • **Resolve the des

Score breakdown

Trigger
7.8
Trigger 7.8/10 — Comprehensive 5-mode conversion workflow with strong guards (re-run detection, scope resolution, cost-estimate confirmation) and good lazy-loading of GENERATION.md. Weakened by a ~100-line inline PATH-probing bash block that belongs in scripts/, duplicated Hermes paragraphs, and no explicit non-trigger boundary; MCP install/search and file writes are declared.
Structure
6.8
Structure 6.8/10
Workflow
8.5
Workflow 8.5/10
Content
6.8
Content 6.8/10
Engineering
7.5
Engineering 7.5/10
Security
8.5
Security 8.5/10
Comprehensive 5-mode conversion workflow with strong guards (re-run detection, scope resolution, cost-estimate confirmation) and good lazy-loading of GENERATION.md. Weakened by a ~100-line inline PATH-probing bash block that belongs in scripts/, duplicated Hermes paragraphs, and no explicit non-trigger boundary; MCP install/search and file writes are declared.