book-to-skill
它能做什么
把书籍和文档转化为供人工智能使用的技能(即指令集)。它会提取方法、原则和常见误区等核心观点,让 AI 能够运用这些内容。
适用场景
- ✓当你希望 AI 学习并运用一本书中的观点时。
- ✓当你希望在工作时借鉴某位作者的方法时。
- ✓当你想基于一份文档创建一个新的 AI 工具时。
技能链接
https://github.com/virgiliojr94/book-to-skill/blob/master/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这本关于效率提升的书转化为 AI 的一项技能。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会阅读你提供的文档,找出其中的主要观点,比如各种技巧和原则。然后,它会把这些观点整理成其他 AI 能够理解和使用的格式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
Four paths available. 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
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.
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:
- GitHub Copilot CLI personal skills:
~/.copilot/skills/ - Cross-agent personal skills (Copilot, Amp, Codex; OpenClaw with its default state):
~/.agents/skills/ - Claude Code personal skills:
~/.claude/skills/ - Project-local Copilot skills:
.github/skills/ - Project-local Claude skills:
.claude/skills/ - Project-local Amp / Copilot / OpenClaw skills:
.agents/skills/ - Amp global skills:
~/.config/agents/skills/ - Amp legacy global skills:
~/.config/amp/skills/ - Hermes Agent personal skills:
$HERMES_HOME/skills/(defaults to~/.hermes/skills/)
…
常见问题
AI 能识别哪些文件类型?
它能识别多种格式,包括 PDF、EPUB、DOCX、HTML、纯文本等,只要内容是 AI 可以读取的格式即可。
什么是 AI 的“技能”?
“技能”就像你交给 AI 的一套指令或工具。AI 不只是回答问题,还能据此执行任务或运用特定的知识。
AI 会对书籍做总结吗?
不会。主要目标不是总结,而是提取其结构和可应用的概念,比如方法和原则,让 AI 能够主动运用它们。
详情
作者的原始描述
Converts books and documents (PDF, EPUB, DOCX, HTML, Markdown, plain text, RTF, MOBI/AZW with Calibre) into structured agent skills, extracting frameworks, mental models, principles, techniques, and anti-patterns. Use when the user wants to study a document through GitHub Copilot CLI, Amp, Claude Code, Hermes Agent, OpenCode, or OpenClaw, apply an author's frameworks while working, or build a reus
热度
- GitHub 星标
- 35k
- 排名
- #7590
- 许可证
- MIT
- 更新时间
- 2026/10/11
评论
- …