book-to-skill
它能做什么
这项技能把成文材料编译成 AI 可按需使用的知识库,而不是每次都读取全部原文。适合希望 AI 依据某本书、手册或规格说明工作的人。
适用场景
- ✓当你想让 AI 把一本书或长篇手册作为工作参考的时候。
- ✓当你有一个内部文档或规格说明文件夹、想把它变成技能的时候。
- ✓当你想从一份长篇源文档中制作术语表和速查表时。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/book-to-skill/skills/book-to-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我们品牌指南的这份 PDF 转换为带有章节摘要和术语表的技能。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会提取源材料的结构,而不只是摘要,然后构建一个简短的核心文件、章节文件、术语表、模式和速查表。之后它会验证结果,并先检查源材料的版权。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Book-to-Skill Converter
Turn written knowledge into an agent skill by extracting structure, not summaries.
A book is crystallized expertise: frameworks, principles, techniques that took years to develop. Read once, forgotten. The workarounds all fail — PDF search returns page numbers instead of answers, an agent handed the raw file hallucinates or drowns, reading notes rot. This skill compiles a source into a knowledge base the agent loads on demand: a small resident core, one chapter file at a time, and never the whole book again.
What it produces:
| File | Contents | Budget |
|---|---|---|
SKILL.md |
Core frameworks + chapter index + topic index | < 4,000 tokens (resident) |
chapters/chNN-*.md |
One summary per chapter | 800–3,000 tokens, on demand |
glossary.md |
Every significant term, alphabetized, with chapter | < 1,500 tokens |
patterns.md |
Techniques and design patterns with trade-offs | < 2,000 tokens |
cheatsheet.md |
Decision rules, thresholds, trade-off matrices | < 1,200 tokens |
Beyond books: anything referenced often enough to be worth memorizing — internal documentation, brand systems, standards, specs, research clusters, a folder of RFCs.
Philosophy
Extract structure, not summaries. A skill is not a book report. It is a toolkit of named frameworks, actionable principles, step-by-step techniques, anti-patterns, and the author's voice.
Preserve the author's precision. Framework names are interfaces. "The 5 Whys" is not interchangeable with "ask why a few times" — the exact formulation is what makes lookup work.
Layer depth appropriately. A thin book gets a thin skill. A book with fifteen frameworks gets chapter files and a real topic index.
Never reproduce the source at length. These are structured notes. Synthesize, compress,
name — do not copy passages. See references/rights_and_provenance.md.
Modes
| Mode | Trigger | Runs |
|---|---|---|
| 1. Full conversion (default) | One or more paths, no special instruction | Steps 0–10 |
| 2. Analyze only | "analyze", "just extract", "let me review first" | Steps 0–3, then stop with an extraction report |
| 3. Generate from analysis | User supplies prior analysis notes | Steps 4–10 |
| 4. Update / fold-in | New sources + an existing compiled skill | Steps 0–2, then the Update Workflow |
| 5. Package as plugin | "make it a plugin", "add it to the repo" | Step 11 |
Mode 5 is this repository's addition. Upstream stops at a bare folder in a personal skills home; Step 11 wraps that folder in a plugin package other skills and agents can route to.
Hard rules
- Never convert a source the user cannot show you. No web-scraping a book, no reconstructing a title from memory. This tool converts files that are already on disk.
- Pre-flight the cost before generating (Step 2.5). Generation is the expensive part; the user approves it with numbers in front of them.
- Never dump a large source into context. Over ~50k tokens, probe with
grep/sedand bounded reads (Step 2.6). Re-reading a 200-page book once per chapter costs more than everything else in this workflow combined. - Validate before anyone loads it (Step 9.5). A generated skill is untrusted text that an agent will later read as instructions.
- Never widen the generated skill's authority. Generated frontmatter carries
nameanddescriptiononly — noallowed-tools, no model-invocation flags. - Rights before redistribution. Compiled notes from a copyrighted work are personal study notes. Packaging one as a shareable plugin requires a stated basis (Step 11).
- State what the skill does not cover. Every compiled skill's Scope section names its boundary, so the agent says "the source doesn't cover this" instead of improvising.
Pipeline
extract_document.py → analyze → chapter files → supporting files → SKILL.md
(Step 2) (Step 3) (Step 7) (Step 8) (Step 9)
↓
skill_plugin_emitter.py ← book_skill_validator.py
(Step 11) (Step 9.5)
All four tools live in scripts/ and run on the standard library alone.
Run it
SKILL_ROOT=engineering/book-to-skill/skills/book-to-skill
常见问题
它能读取哪些文件类型?
PDF、EPUB、DOCX、HTML 和 Markdown。
它只是写摘要吗?
不是。该技能侧重于框架、原则和技巧,并在运行前包含版权检查。
什么是核心文件?
它是一个简短的主文件,控制在约 4,000 个标记以内,智能体始终加载;章节文件只在需要时加载。
详情
作者的原始描述
Use 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.
热度
- GitHub 星标
- 29k
- 排名
- #9543
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。