电子书拆解成技能包
БесплатноЗапускает вложенные скриптыНе проверен买了一堆电子书却没变成自己的能力?想把一本书拆成 agent 能用的技能却不知从何下手?电子书拆解成技能包(book to skills / ebook to skill / skill generator / ebook extraction)把 PDF/EPUB/TXT/MD…
от guipi888937 установок в других каталогахОб этом скилле
Book to Skills — 电子书智能拆解器
Overview
输入一本电子书,自动完成格式识别 → 文本提取 → 结构分析 → 知识点拆解 → 生成多个可直接使用的 WorkBuddy 技能包。支持 PDF、EPUB、TXT、Markdown 四种输入格式,三种输出模式(知识库式 / 行动指南式 / 混合式),生成的技能包直接安装到本地 ~/.workbuddy/skills/,立即可用。
Workflow Decision Tree
User provides a book file
↓
Step 1: Format Detection & Text Extraction
↓
Step 2: Book Analysis (structure + core concepts + methodologies)
↓
Step 3: User Chooses Output Mode (knowledge / action / hybrid)
↓
Step 4: Generate Skills (multiple skill packages)
↓
Step 5: Install & Deliver (zip + installed locally)
Step 1: Format Detection & Text Extraction
1.1 Auto-detect Format
Use file extension and magic bytes to determine format:
| Extension | Format | Extraction Method |
|---|---|---|
.pdf |
pdfplumber library |
|
.epub |
EPUB | ebooklib library |
.txt |
Plain Text | Direct read |
.md |
Markdown | Direct read |
1.2 Text Extraction Commands
PDF extraction (use managed Python):
# Install pdfplumber if needed
python3 -m pip install pdfplumber -q
# Extract text to file
python3 scripts/extract_pdf.py "<input.pdf>" "<output.txt>"
EPUB extraction:
# Install ebooklib if needed
python3 -m pip install ebooklib beautifulsoup4 -q
# Extract text to file
python3 scripts/extract_epub.py "<input.epub>" "<output.txt>"
TXT/MD: Read directly with the Read tool.
1.3 Output
Extracted text is saved to a temporary file: /tmp/book_to_skills_extracted.txt
Step 2: Book Analysis
Load the extracted text and perform structured analysis. The analysis must be thorough — read the full text, not just the first few pages.
2.1 Analysis Dimensions
Produce a structured analysis covering:
- 书籍元信息: 书名、作者、出版信息、主题领域
- 章节结构: 目录层级(章→节→小节),每章的核心主题
- 核心概念清单: 每个核心概念用 1-2 句话概括
- 可落地方法论: 识别书中明确的操作步骤、框架、checklist
- 知识产品化信号: 哪些内容可以变成课程/星球帖/公众号文章(关联知识产品化探测器)
- 技能拆分建议: 建议生成几个 skill,每个 skill 的主题和边界
2.2 Analysis Output Format
输出一份 书籍分析报告.md,结构如下:
# 《书名》分析报告
## 📖 书籍元信息
- 书名:
- 作者:
- 主题领域:
- 核心主张(一句话):
## 📑 章节结构
1. 第1章:xxx(核心主题)
- 小节1:xxx
- 小节2:xxx
2. ...
## 🧠 核心概念清单
| # | 概念 | 一句话概括 | 可技能化 |
|---|------|-----------|---------|
| 1 | xxx | xxx | ✅/❌ |
## 🔧 可落地方法论
| # | 方法论名称 | 步骤数 | 适用场景 | 可行动化 |
|---|-----------|-------|---------|---------|
| 1 | xxx | N步 | xxx | ✅/❌ |
## 💡 知识产品化信号
- 课程素材:
- 星球帖:
- 公众号:
- 选题关联:
## 🎯 技能拆分建议
建议生成 N 个 skill:
1. `{book-slug}-knowledge` — 知识库 skill(覆盖全书知识点)
2. `{book-slug}-{method-1}` — 行动 skill({方法论名称})
3. ...
---
Step 3: User Chooses Output Mode
After presenting the analysis report, ask the user to choose one of three modes:
请选择技能生成模式:
A) 📚 知识库式 — 生成1个综合知识库 skill,包含全书的 references 文档
B) ⚡ 行动指南式 — 为每个可落地方法论生成独立 action skill
C) 🔀 混合式(推荐) — 1个知识库 skill + N个行动 skill
你选哪个?
Do NOT proceed to Step 4 until the user responds with A, B, or C.
Step 4: Generate Skills
4.1 Skill Naming Convention
All generated skills use the prefix derived from the book name:
- English book → slugify the title (e.g.
atomic-habits-) - Chinese book → pinyin abbreviation or English translation (e.g.
yuanzi-xiguan-)
Ask the user to confirm the prefix if ambiguous.
4.2 Knowledge Base Skill (知识库式)
When mode is A or C, generate one knowledge base skill:
{book-slug}-knowledge/
├── SKILL.md # 知识库 skill 元信息 + 使用指引
└── references/
├── overview.md # 全书概览 + 核心主张
├── concepts.md # 核心概念详解
├── quotes.md # 可引用金句
└── structure.md # 章节结构 + 各章要点
SKILL.md template for knowledge skill:
---
name: {book-slug}-knowledge
description: >
Knowledge base for the book "{Book Title}". This skill should be used when the user wants to
reference, query, or review concepts, quotes, and methodologies from this book. Trigger phrases
include: "{book title}", "{author}", "{key concepts from the book}".
agent_created: true
---
# {Book Title} — 知识库
## Overview
This is a knowledge base skill for 《{Book Title}》by {Author}.
## How to Use
When the user mentions this book, its author, or its core concepts:
1. Load the relevant reference file(s) from `references/`
2. Provide accurate, book-grounded answers
3. When the user asks for quotes, load `references/quotes.md`
4. When the user asks about specific concepts, load `references/concepts.md`
## Reference Files
- `references/overview.md` — Book overview and core thesis
- `references/concepts.md` — All core concepts with detailed explanations
- `references/quotes.md` — Memorable quotes organized by topic
- `references/structure.md` — Chapter-by-chapter breakdown
4.3 Action Guide Skills (行动指南式)
When mode is B or C, generate one action skill per methodolo
Установить 电子书拆解成技能包 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 电子书拆解成技能包?
买了一堆电子书却没变成自己的能力?想把一本书拆成 agent 能用的技能却不知从何下手?电子书拆解成技能包(book to skills / ebook to skill / skill generator / ebook extraction)把 PDF/EPUB/TXT/MD 电子书自动提取知识、分析结构,生成多个可安装的 WorkBuddy 技能包,把读过的书变成可复用的 AI 能力。当用户提供电子书并说「帮我拆解这本书」「如何从这本书提取技能」「把这本书变成技能」「生成技能包」「我想把电子书变成技能」时触发。支持三种模式:知识库(Knowledge Base)、行动指南(Action Guide)、混合(Hybrid),按用途选模式即可。Use when you have ebooks and want to turn them into installable agent skills. Trigger phrases: 拆解这本书, 把电子书变成技能, book to skills, extract skills from book, generate skill pack from ebook.
Как установить скилл 电子书拆解成技能包?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 电子书拆解成技能包 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse 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…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use 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…
от Anthropic