# /book-to-skill: Turn a technical book into a skill your agent can query

Source: https://trendhub.net/skills/virgiliojr94-book-to-skill/book-to-skill
Skill folder: https://github.com/virgiliojr94/book-to-skill/tree/master
Pack: Book to Skill (https://trendhub.net/skills/virgiliojr94-book-to-skill)
Works with: Any Agent Skills host, Claude Code (manual)

book-to-skill walks the agent through extracting text from your documents, estimating the token cost, and generating a new skill that captures the author's named frameworks, rules, techniques and anti-patterns rather than a plain summary. Chapters are written as separate files loaded on demand, and existing skills can be updated later by folding in new sources.

## When to use it

- You own a technical book you keep reopening and want your agent to answer from it.
- You want a docs folder of runbooks or architecture decision records available while you code.
- You have a stack of papers and notes to merge into one skill and extend over time.

## How it works

1. **Pick the content type**: The agent asks whether the source is technical or mostly prose, which decides whether layout-aware Docling or a faster extractor is used.
2. **Extract and check**: It runs the bundled extract.py into a per-run work folder, then confirms from metadata.json that the extracted file is the one you asked for.
3. **Show the cost first**: Before generating anything it reports pages, words and estimated input and output tokens, and waits for you to approve or switch to analyze-only.
4. **Write chapters and indexes**: Each chapter gets its own file with core idea, frameworks, key terms and takeaways, followed by a glossary, a patterns file and a cheatsheet of decision rules.
5. **Build, scan and report**: A master SKILL.md under about 4,000 tokens holds the core frameworks and chapter and topic indexes, a security scan runs over the output, and the agent reports where the skill landed.

## What it steers the agent away from

- Producing a book-report style summary instead of named frameworks and decision rules.
- Reading an entire large book into context on every pass; it slices the text with grep and sed instead.
- Copying raw passages from the source into the generated skill.

## What it can touch

It runs a local Python extractor, writes files into your chosen skills directory, may create a symlink for Claude Code, and can create a GitHub repository with gh only if you ask.

## Questions

### Can I review what it found before it writes the skill?

Yes. Ask for analyze-only and it stops after a report of frameworks, principles, techniques and chapters; you can later generate the skill from that analysis.

### What happens if I convert a book that already has a skill?

It stops and asks whether to fold new material into the existing skill, check the existing one, or regenerate it from scratch.
