skill-from-notebook by gbsoss/skill-from-masters
npx skills add https://github.com/gbsoss/skill-from-masters --skill skill-from-notebook从学习材料(文档、文章、视频)或优质示例(博客文章、设计、代码)中提取可执行的方法论,以生成可复用的技能。
核心理念:NotebookLM 帮助你理解。这个技能帮助你行动。
当用户希望将知识转化为可执行的技能时:
| 类型 | 处理方式 |
|---|---|
| 本地文件 | PDF、Word、Markdown - 直接读取 |
| 网页 URL | 使用 WebFetch 提取内容 |
| YouTube | 使用 yt-dlp 获取字幕,若无则使用 Whisper |
| NotebookLM 链接 | 使用浏览器自动化提取笔记/摘要 |
| 示例/输出 | 逆向工程其方法论 |
关键的第一步 - 确定使用哪个处理路径:
用户输入
│
├─ 具有教学意图?("如何", "步骤", "指南")
│ └─ 是 → 路径 A:方法论文档
│
├─ 是已完成的作品?(文章、设计、代码、提案)
│ └─ 是 → 路径 B:示例(逆向工程)
│
└─ 都不是? → 告知用户此内容不适合
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
路径 A 指标(方法论文档):
路径 B 指标(示例/输出):
检查文档是否适合生成技能(必须至少满足 2 条):
如果不适用:如实告知用户并解释原因。
| 类型 | 特征 | 示例 |
|---|---|---|
| 操作指南 | 清晰的步骤序列,输入→输出 | 部署 Docker,配置 CI/CD |
| 决策 | 条件、权衡、选择 | 选择数据库,选择框架 |
| 框架 | 心智模型、分析维度 | SWOT,5W1H,第一性原理 |
| 检查清单 | 验证列表、通过/失败标准 | 代码审查清单,发布清单 |
对于操作指南:
对于决策:
对于框架:
对于检查清单:
使用此模板:
## 适用场景
[何时使用此技能]
## 先决条件
- [开始前需要什么]
## 步骤
1. [步骤 1] - [预期结果]
2. [步骤 2] - [预期结果]
...
## 质量检查点
- [ ] [检查点 1]
- [ ] [检查点 2]
## 常见陷阱
- [陷阱 1]:[如何避免]
## 来源
- 文档:[名称/URL]
- 提取时间:[时间戳]
当输入是一个已完成的作品(不是教程)时,逆向工程其方法论。
这是什么类型的产物?
分解示例:
结构分析:
├── [部分 1]:[功能] - [占比 %]
├── [部分 2]:[功能] - [占比 %]
├── [部分 3]:[功能] - [占比 %]
└── [部分 N]:[功能] - [占比 %]
需要回答的问题:
是什么让这个示例优秀?
| 维度 | 问题 |
|---|---|
| 结构 | 内容是如何组织的? |
| 风格 | 语气、措辞、表达方式? |
| 技巧 | 哪些方法使其有效? |
| 逻辑 | 信息是如何流动的? |
| 细节 | 微小但重要的点睛之笔? |
推断:要创建此输出,需要哪些步骤?
## 推断的制作步骤
1. [步骤 1]:[做什么] - [关键点]
2. [步骤 2]:[做什么] - [关键点]
...
## 关键决策
- [决策 1]:[选项] - [此示例选择 X 是因为...]
## 可复用技巧
- [技巧 1]:[如何应用]
- [技巧 2]:[如何应用]
为逆向工程的技能使用此模板:
## 输出类型
[此技能产出何种产物]
## 适用场景
[何时创建此类输出]
## 结构模板
1. [部分 1]:[功能] - [~X%]
2. [部分 2]:[功能] - [~X%]
...
## 质量特征(从示例中学到)
- [特征 1]:[如何体现]
- [特征 2]:[如何体现]
## 制作步骤
1. [步骤 1]:[做什么] - [提示]
2. [步骤 2]:[做什么] - [提示]
...
## 检查清单
- [ ] [检查项 1]
- [ ] [检查项 2]
## 参考示例
- 来源:[名称/URL]
- 分析时间:[时间戳]
用户:“从这篇关于编写良好提交信息的文章中提取一个技能”
处理过程:
用户:“这是一篇很棒的技术博客文章。从中学习并创建一个用于编写类似文章的技能。”
处理过程:
├── 引子:真实痛点(2-3 句话)
├── 问题:3 句话说明核心问题
├── 解决方案:先结论,后细节
├── 代码:每个片段 < 20 行,带注释
├── 陷阱:3 个常见错误
└── 总结:一句话要点
当用户提供多个同类型示例时:
示例 A ──┐
示例 B ──┼──> 提取共性 ──> 核心方法论
示例 C ──┘ │
▼
分析差异 ──> 风格变体 / 可选技巧
这将产生更健壮、更可泛化的技能。
每周安装次数
253
代码仓库
GitHub Stars
1.3K
首次出现
Jan 24, 2026
安全审计
安装于
opencode220
claude-code195
gemini-cli191
codex176
cursor156
github-copilot153
Extract actionable methodologies from learning materials (documents, articles, videos) or quality examples (blog posts, designs, code) to generate reusable Skills.
Core Philosophy : NotebookLM helps you understand. This skill helps you do.
When users want to turn knowledge into executable skills:
| Type | How to Process |
|---|---|
| Local files | PDF, Word, Markdown - Read directly |
| Web URL | WebFetch to extract content |
| YouTube | Use yt-dlp for subtitles, Whisper if unavailable |
| NotebookLM link | Browser automation to extract notes/summaries |
| Example/Output | Reverse engineer the methodology |
Critical first step - Determine which processing path to use:
User Input
│
├─ Has teaching intent? ("how to", "steps", "guide")
│ └─ YES → Path A: Methodology Document
│
├─ Is a finished work? (article, design, code, proposal)
│ └─ YES → Path B: Example (Reverse Engineering)
│
└─ Neither? → Tell user this content is not suitable
Path A indicators (Methodology Document):
Path B indicators (Example/Output):
Check if the document is suitable for skill generation (must meet at least 2):
If not suitable : Tell user honestly and explain why.
| Type | Characteristics | Examples |
|---|---|---|
| How-to | Clear step sequence, input→output | Deploy Docker, Configure CI/CD |
| Decision | Conditions, trade-offs, choices | Choose database, Select framework |
| Framework | Mental model, analysis dimensions | SWOT, 5W1H, First Principles |
| Checklist | Verification list, pass/fail criteria | Code review checklist, Launch checklist |
For How-to:
For Decision:
For Framework:
For Checklist:
Use this template:
## Applicable Scenarios
[When to use this skill]
## Prerequisites
- [What's needed before starting]
## Steps
1. [Step 1] - [Expected outcome]
2. [Step 2] - [Expected outcome]
...
## Quality Checkpoints
- [ ] [Checkpoint 1]
- [ ] [Checkpoint 2]
## Common Pitfalls
- [Pitfall 1]: [How to avoid]
## Source
- Document: [name/URL]
- Extracted: [timestamp]
When input is a finished work (not a tutorial), reverse engineer the methodology.
What kind of artifact is this?
Break down the example:
Structure Analysis:
├── [Part 1]: [Function] - [Proportion %]
├── [Part 2]: [Function] - [Proportion %]
├── [Part 3]: [Function] - [Proportion %]
└── [Part N]: [Function] - [Proportion %]
Questions to answer:
What makes this example good?
| Dimension | Questions |
|---|---|
| Structure | How is content organized? |
| Style | Tone, word choice, expression? |
| Technique | What methods make it effective? |
| Logic | How does information flow? |
| Details | Small but important touches? |
Deduce: To create this output, what steps are needed?
## Deduced Production Steps
1. [Step 1]: [What to do] - [Key point]
2. [Step 2]: [What to do] - [Key point]
...
## Key Decisions
- [Decision 1]: [Options] - [This example chose X because...]
## Reusable Techniques
- [Technique 1]: [How to apply]
- [Technique 2]: [How to apply]
Use this template for reverse-engineered skills:
## Output Type
[What kind of artifact this produces]
## Applicable Scenarios
[When to create this type of output]
## Structure Template
1. [Part 1]: [Function] - [~X%]
2. [Part 2]: [Function] - [~X%]
...
## Quality Characteristics (Learned from Example)
- [Characteristic 1]: [How it manifests]
- [Characteristic 2]: [How it manifests]
## Production Steps
1. [Step 1]: [What to do] - [Tips]
2. [Step 2]: [What to do] - [Tips]
...
## Checklist
- [ ] [Check item 1]
- [ ] [Check item 2]
## Reference Example
- Source: [name/URL]
- Analyzed: [timestamp]
User : "Extract a skill from this article about writing good commit messages"
Process :
User : "Here's a great technical blog post. Learn from it and create a skill for writing similar posts."
Process :
Identify: This is an example (finished work, no teaching intent)
Analyze structure:
├── Hook: Real pain point (2-3 sentences)
├── Problem: 3 sentences on the core issue
├── Solution: Conclusion first, then details
├── Code: Each snippet < 20 lines, with comments
├── Pitfalls: 3 common errors
└── Summary: One-line takeaway
Extract quality characteristics:
Reverse engineer steps:
Generate skill: "How to Write a Technical Blog Post"
When user provides multiple examples of the same type:
Example A ──┐
Example B ──┼──> Extract commonalities ──> Core methodology
Example C ──┘ │
▼
Analyze differences ──> Style variants / Optional techniques
This produces more robust, generalizable skills.
Weekly Installs
253
Repository
GitHub Stars
1.3K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode220
claude-code195
gemini-cli191
codex176
cursor156
github-copilot153
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
55,400 周安装