Claude Code Plugin

Content-to-Skill Turn any book into a Claude Code Agent Skill

Content-to-Skill is a free Claude Code plugin that reads a PDF, EPUB or code exercise repository you own and distills it into an Agent Skill — structured knowledge your AI agent loads on demand, exactly when the work calls for it.

Built for engineers who read technical books and work in Claude Code.

Free and open source · MIT licensed


Chapter I

Why your AI agent hasn't read your books

You read a great technical book. Two weeks later, you remember the gist but none of the specifics. When you need it most, debugging a system, choosing an architecture, writing a feature, the knowledge is gone. Your AI agent has never read it at all.

Chapter II

How Content-to-Skill distills a book into an Agent Skill

Content-to-Skill doesn't summarize. It distills. The result is a personal skill your agent can load on demand: a 30-second overview, a situational index for the right concept at the right time, and deep reference dives when you need the full picture.


Chapter III

Benchmark: a 400-page book in 42 minutes for about $25

The Software Engineer's Guidebook

Pages

~400

Time

~42 minutes

API cost to run

~$25 (Opus)

Reference files

8-15

The plugin itself is free and MIT licensed; the figure above is what the conversion costs in Claude API usage. Cost scales roughly with page count, so shorter books cost proportionally less, and using Sonnet instead of Opus reduces it by approximately 80%.


Chapter IV

What a converted Agent Skill actually looks like

Here's what the plugin produced from The Software Engineer's Guidebook, a real 400-page book, processed in 42 minutes.

30-Second Overview

## Level 1: 30-Second Reference

### The Core Framework
- Engineering careers reward intentional growth across
  technical, organizational, and business dimensions
- At every level, "getting things done", consistently
  shipping impactful work, is the universal currency
- The ratio of technical-to-organizational work shifts
  as you advance: juniors ship tasks, seniors ship
  independently, staff+ ensure organizations ship
- Career ownership is non-negotiable: maintain work logs,
  pace yourself, and make contributions visible

### Quick Lookup

| Situation             | Do This                    |
|-----------------------|----------------------------|
| Preparing for promo   | Produce → Organize → Pub   |
| Feeling burned out    | Switch to Coasting mode    |
| Starting new company  | Cost center or profit?     |
| Architecture decision | One-way or two-way door?   |
| Shipping to prod      | Staged rollouts + flags    |

Situational Index

## Level 2: Situational Index

### "I need to..."

| Goal                            | Reference                 |
|---------------------------------|---------------------------|
| Understand the career arc       | core-framework.md         |
| Ship more effectively           | getting-things-done.md    |
| Write better, readable code     | coding-and-quality.md     |
| Design a testing strategy       | testing-strategies.md     |
| Make architecture decisions     | software-architecture.md  |
| Lead a project as tech lead     | tech-lead-project-mgmt.md |
| Build reliable systems          | reliability-operations.md |

Chapter V

How the pipeline turns a PDF or EPUB into an Agent Skill

A multi-pass extraction pipeline adapts to each book's genre, cross-references every chapter, and produces 8-15 structured reference files.

1

Configure

You choose citation style and genre. Extraction adapts to the book's form

2

Chunk

Splits your PDF or EPUB into sections sized for processing

3

Extract

Multiple AI readers work through sections simultaneously, pulling out key ideas, frameworks, and examples

4

Cross-Reference

A dedicated pass reads every extraction and builds a unified knowledge map, terminology index, and chapter spine

5

Distill

Each chunk is re-evaluated against the whole book. Surface observations are cut, causal chains deepened

6

Convert

A complete knowledge base with layered detail: 30-second overview, situational index, deep concept dives

7

Cover

Fetches real cover art from Goodreads and Open Library, or generates one

8

Install

Adds to your personal library. Browse with /library, load on demand with /library <name>

Input
PDF / EPUB / Directory
File or Dir?
PDF / EPUB Directory
Book Pipeline
Chunk Document
chunk_document.ts
Split into N-page segments
Parallel
Pass 1: Extract
research-prompt.md
5 chunks per batch
Single
Pass 2: Cross-Reference
running-context.md
terminology.md · book-spine.md
Parallel
Pass 3: Distill
Genre-specific criteria
distilled-chunk-NNN.md
Synthesize
EXTRACTION_SUMMARY.md
Repo Pipeline
Detect Exercises
detect_exercises.ts
exercises_manifest.json
Parallel
Extract Exercises
code-extraction-prompt.md
problem → solution diffs
Synthesize
Reference files per module
Output
Skill Package
SKILL.md + references/ + book.json
8-15 reference files · 3-level progressive disclosure
Fetch Cover Image
Goodreads → Open Library → Programmatic
fetch_cover.ts · generate_covers.ts
Install Skill
library | project | personal
library_index.ts rebuilds index.json

/library <name>
~/.claude/library/books/<name>/
list · load · search · migrate · rebuild

Chapter VI

Install Content-to-Skill in Claude Code

Content-to-Skill runs inside Claude Code, Anthropic's AI coding assistant. If you already have it installed, you're two commands away.

Free and open source · MIT licensed

Prerequisites

Claude Code Node.js 18+

Install

Add plugin

/plugin marketplace add chrislacey89/content-to-skill

Install

/plugin install content-to-skill@chrislacey89-content-to-skill

Quick Start

1.

Convert a book

/content-to-skill path/to/book.pdf --name my-book
2.

Browse your library

/library
3.

Load a skill

/library my-book

Chapter VII

Browse your converted books with Library View

Library View is a companion web app that lets you browse your converted books visually — cover art, search, and quick access to every skill in your collection.

Library View web app showing a grid of converted book covers with a search field and category filters

Chapter VIII

Turn a code exercise repository into a skill

Point Content-to-Skill at a directory of code exercises instead of a book and it runs a second pipeline: it detects the exercises, extracts the teaching content from each problem/solution pair in parallel, and writes reference files per module plus cross-cutting pattern files.

Detect
Finds exercises and builds a manifest
Extract
Parallel subagents extract teaching content from problem and solution pairs
Synthesize
Creates reference files per module plus cross-cutting pattern files

Chapter IX

Frequently asked questions about Content-to-Skill

What is an Agent Skill?

An Agent Skill is a folder of structured markdown that Claude Code loads into a conversation on demand. It follows the Agent Skills specification: a SKILL.md entry point plus a references/ directory. Content-to-Skill produces one from a book, so the knowledge is available to your agent as working context rather than something you have to re-explain.

Does it work with EPUB as well as PDF?

Yes. Content-to-Skill accepts PDF and EPUB files. It also accepts a directory of code exercises, which it processes through a separate repository pipeline.

How much does it cost to convert a book?

The plugin is free and MIT licensed. You pay only for Claude API usage during the conversion. A ~400-page book cost approximately $25 running on Opus, taking about 42 minutes. Running on Sonnet instead reduces that by roughly 80%, and shorter books cost proportionally less.

Can I use Sonnet instead of Opus?

Yes. Model choice is the biggest factor in cost. Running the conversion on Sonnet costs approximately 80% less than Opus for comparable results.

Can it process a code repository too?

Yes. Point /content-to-skill at a directory of code exercises and it runs the repository pipeline instead: it detects the exercises, extracts the teaching content from each problem and solution pair in parallel, and writes reference files per module alongside cross-cutting pattern files.

Where do converted skills get installed?

By default into your personal library at ~/.claude/library/books/<name>/, where /library lists them and /library <name> loads one into the current conversation. The --install flag also accepts project or personal to install the skill directly as a Claude Code skill instead.

Is Content-to-Skill free?

Yes. Content-to-Skill is free and open source under the MIT license. The only cost of using it is your own Claude API usage while a document is being converted.

Is it legal to convert a book I own?

Content-to-Skill is designed for content you have legally purchased and own. Only process books and materials you have the right to use, and respect authors and publishers by using legitimately acquired content. The plugin does not distribute or host any book content — everything stays on your own machine.

Do I need anything besides Claude Code?

Claude Code and Node.js 18 or newer. Nothing else — the plugin runs entirely locally and stores converted skills on your own filesystem.