alirezarezvani/claude-skills / engineering/book-to-skill/skills/book-to-skill
book-to-skill
UnverifiedUse when turning a book, docs folder or spec collection (PDF, EPUB, DOCX, HTML, Markdown) into an agent skill, before summarizing it by hand. Extracts with extract_document.py, compiles chapters, glossary and cheatsheet, validates with book_skill_validator.py and enforces a rights gate.
assets/master_skill_template.md
View on GitHub---
name: <slug>
description: "Knowledge base from \"<Full Title>\" by <Author(s)>. Use when applying <author>'s frameworks for <3–6 key topics>, studying the book, or referencing its concepts."
---
<!--
HARD BUDGET: under 4,000 tokens.
Compaction truncates from the END. The end of this file is the Chapter Index and the
Topic Index — the navigation everything else depends on. Overflow does not degrade this
skill gracefully; it removes exactly the part that makes chapter files reachable. Put the
most important content first and keep the indexes inside the budget.
Frontmatter carries `name` and `description` ONLY. No allowed-tools, no model-invocation
flags — a generated skill never widens its own authority.
-->
# <Full Title>
**Author**: <Author(s)> | **Pages**: ~<N> | **Chapters**: <N> | **Generated**: <YYYY-MM-DD>
## How to Use This Skill
- **No argument** — load the core frameworks below
- **A topic** — ask about `<example topic>`; I resolve it through the Topic Index and read
that chapter file
- **`chNN`** — I load that chapter's summary
- **"what chapters do you have?"** — the full index
When you ask about something not in Core Frameworks, I read the relevant chapter file before
answering rather than guessing from the index.
---
## Core Frameworks & Mental Models
<!-- ~2,000 tokens. The author's most important named frameworks and principles, exact names
preserved. Write as instruments: "Use X when Y", "Prefer X over Y because Z".
A toolkit, not a summary. This is the part that is resident in every session — spend
the budget on what gets used, not on what was memorable to read. -->
### <Framework Name>
<What it is, when it applies, how to run it.>
### <Framework Name>
<...>
---
## Chapter Index
| # | Title | Key Frameworks |
|---|-------|----------------|
| [ch01](chapters/ch01-<slug>.md) | <Title> | <framework>, <framework> |
| [ch02](chapters/ch02-<slug>.md) | <Title> | <framework> |
## Topic Index
<!-- Alphabetical. Major terms and frameworks → the chapters that cover them. This is how
the agent navigates; without it the chapter files are unreachable except by guessing.
Every chapter file must appear at least once across these two indexes. -->
- **<Term>** → ch<N>, ch<N>
- **<Term>** → ch<N>
## Supporting Files
- [glossary.md](glossary.md) — every key term with its definition and chapter
- [patterns.md](patterns.md) — techniques and design patterns with trade-offs
- [cheatsheet.md](cheatsheet.md) — decision rules, thresholds, trade-off matrices
---
## Scope & Limits
This skill covers **<Full Title>** and nothing else. It carries that source's blind spots and
its publication-era assumptions.
For hands-on implementation in a codebase, combine it with project-specific tools. For topics
this source does not cover, say so rather than improvising — a compiled skill that quietly
extrapolates is worse than one that admits its boundary.
<!-- Provenance (see references/rights_and_provenance.md): compiled notes, not a reproduction.
If this skill is packaged for distribution, the rights basis is recorded in the plugin
manifest. -->
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse 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 OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |