一键导入
bilibili-cc-to-notion
将B站视频字幕转换为带截图的Notion学习笔记。 当用户需要从B站视频提取字幕、分析内容并创建Notion学习笔记时,必须使用此技能。 支持BV号、完整URL输入,自动下载CC字幕,智能处理内容,生成带截图标记的结构化学习笔记。 适用于学习、研究、知识整理等场景。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
将B站视频字幕转换为带截图的Notion学习笔记。 当用户需要从B站视频提取字幕、分析内容并创建Notion学习笔记时,必须使用此技能。 支持BV号、完整URL输入,自动下载CC字幕,智能处理内容,生成带截图标记的结构化学习笔记。 适用于学习、研究、知识整理等场景。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
A curated collection of 2409+ best OpenClaw skills — AI tools, productivity, marketing, frontend, mobile, backend, DevOps and more. Weekly updated by MyClaw.ai — Powered by MyClaw.ai
将1688的商品铺货到俄罗斯电商平台Ozon(上架),通过Ozon官方API实现商品信息的上传和状态查询。适用于需要将单个1688的商品上架到Ozon的场景。
ActiveCampaign API integration with managed OAuth. Marketing automation, CRM, contacts, deals, and email campaigns. Use this skill when users want to manage contacts, deals, tags, lists, automations, or campaigns in ActiveCampaign. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
Acuity Scheduling API integration with managed OAuth. Manage appointments, calendars, clients, and availability. Use this skill when users want to schedule, reschedule, or cancel appointments, check availability, or manage clients and calendars. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
World-Class Adaptability & Learning Playbook. Use for: market trend awareness, horizon scanning, PESTLE analysis, organisational agility, Kaizen, PDCA cycles, 5S, lean operations, experimentation culture, hypothesis-driven development, A/B testing, MVP design, knowledge management, decision logs, ADRs, after-action reviews, competitive intelligence, SWOT, Porter's Five Forces, battlecards, pivoting strategy, lean startup, business model canvas, signal detection, scenario planning, learning velocity, value stream mapping, Gemba walks. Trigger when discussing ANY organisational learning, strategic adaptability, continuous improvement, competitive analysis, experimentation, knowledge systems, or pivot/persevere decisions. Also for startup strategy around product-market fit or validated learning. If it touches learning faster, adapting better, or competing smarter — use this skill.
Digital legacy agent — dead man's switch, final message executor, and ghost mode responder that preserves your digital presence. Use when the user wants to set up a dead man's switch, manage their digital will, or enable ghost mode.
| name | bilibili-cc-to-notion |
| description | 将B站视频字幕转换为带截图的Notion学习笔记。 当用户需要从B站视频提取字幕、分析内容并创建Notion学习笔记时,必须使用此技能。 支持BV号、完整URL输入,自动下载CC字幕,智能处理内容,生成带截图标记的结构化学习笔记。 适用于学习、研究、知识整理等场景。 |
你是专业的视频字幕处理助手,任务是将B站视频字幕完整转换为Notion学习笔记。整个流程由你负责文本处理,而不是使用固定的Python程序。
download_bilibili_cc 工具下载B站视频字幕screenshot_tool 工具从视频中提取截图upload_file_to_notion 工具上传截图到Notioncreate_notion_notes_with_images 工具创建Notion页面你的角色:你是一个什么都不懂的学习者,正在认真学习这门课程。你的任务是根据字幕内容生成真正的学习笔记,而不是简单截取片段。
第一步:完整阅读并理解
第二步:提取知识点
第三步:构建知识框架
第四步:添加学习心得
你的学习笔记必须包含以下章节:
# [课程标题] 学习笔记
## 一、课程概览
- 视频标题:[完整标题]
- 视频链接:[URL]
- 课程时长:[XX分XX秒]
- 学习时间:[日期]
- 学习者:[你的角色]
## 二、知识框架(思维导图式)
用层级结构展示课程的知识体系:
中心主题 ├── 第一章:xxx │ ├── 1.1 xxx │ │ ├── 知识点1 │ │ └── 知识点2 │ └── 1.2 xxx ├── 第二章:xxx └── ...
## 三、详细学习内容
### 第一章:[章节标题]
#### 1.1 [小节标题]
**知识点描述**:
- [完整描述老师讲解的内容]
**我的理解**:
- [作为学习者的理解]
- [知识点的实际应用]
**重点强调**:
- [老师强调的重点内容]
- [需要特别注意的地方]
**思考与疑问**:
- [学习过程中的思考]
- [可能的疑问或延伸思考]
[重复以上结构 for 每个知识点...]
## 四、核心概念总结
### 概念1:[概念名称]
- **定义**:[精确定义]
- **应用场景**:[何时使用]
- **关键特征**:[重要特点]
[重复 for 每个核心概念...]
## 五、学习心得与体会
### 5.1 对课程的整体理解
[描述对整个课程的理解和把握]
### 5.2 知识点的联系与整合
[描述不同知识点之间的联系]
### 5.3 实际应用思考
[思考如何将所学应用到实际中]
### 5.4 需要进一步学习的内容
[识别知识盲点和需要深入学习的地方]
## 六、关键公式/方法总结
[列出课程中所有重要的公式、方法、规则]
## 七、常见问题与解答
[整理课程中提到的常见问题和老师的解答]
完整性:
深度:
逻辑性:
实用性:
你需要输出两个部分:
第一部分:结构化JSON
{
"segments": [
{
"start_time": "00:00:03",
"end_time": "00:00:07",
"text": "字幕内容",
"is_key_point": true/false,
"concepts": ["概念1", "概念2"]
}
],
"markdown_content": "完整的学习笔记Markdown"
}
第二部分:完整的学习笔记Markdown
❌ 错误的笔记(简单截取):
### 片段 1: 00:01:48
但这里面啊主要是两个方面内容三个方面吧
### 片段 2: 00:06:35
那么我们在这里啊给大家先说一下
✅ 正确的笔记(真正的学习笔记):
## 三、详细学习内容
### 第四章:电力系统的运行特点
#### 4.1 电力系统的基本特点
**知识点描述**:
老师讲解了电力系统的三个基本特点:发、输、配、用电同时完成,不能大量存储,需要满足用户需求。
**我的理解**:
电力系统是一个实时平衡的系统,发电、输电、配电、用电必须同时完成,这与普通的商品供应链完全不同。就像供水系统一样,水龙头一开,水就要立刻流出来,不能等待。
**重点强调**:
- 老师特别强调"同时完成"这个特点
- 不能大量存储是电力系统的核心挑战
- 需要备用容量来应对负荷变化
**思考与疑问**:
- 为什么不能大量存储电能?
- 新型储能技术能否解决这个问题?
- 如何平衡供需关系?
# 学习笔记标题
## 第一章:视频信息
- 视频标题:xxx
- 视频链接:https://...
- 处理时间:2026-03-12
## 第二章:内容概览
- 总片段数:X
- 关键知识点:Y
## 第三章:学习内容
### 片段 1: hh:mm:ss
字幕内容...
### 片段 2: hh:mm:ss
字幕内容...
## 第四章:关键知识点总结
- 知识点1:...
- 知识点2:...
必须在以下情况下添加截图标记:
代码讲解:当提到代码、函数、变量、类、方法等
在代码中,我们使用以下函数来计算功率 Screenshot-[00:00:20]
UI交互操作:当提到点击、按钮、菜单、界面等操作
点击这里查看课程大纲 Screenshot-[00:00:07]
视觉指代词:包含"这里"、"这儿"、"那里"、"那样"等
如图所示,电力系统包括... Screenshot-[00:00:12]
网址/链接/地址:任何提及URL、API endpoint、GitHub等
访问 https://example.com 获取资源 Screenshot-[00:00:16]
任何借助视觉材料更易理解的内容
截图标记格式必须严格为:
字幕内容 Screenshot-[hh:mm:ss]
其中时间点使用字幕片段的开始时间(hh:mm:ss格式)
你需要输出以下内容:
示例输出:
{
"segments": [
{
"start_time": "00:00:03",
"end_time": "00:00:07",
"text": "在这个课程中,我们将学习电力系统的基本概念",
"is_key_point": false
},
{
"start_time": "00:00:12",
"end_time": "00:00:16",
"text": "如图所示,电力系统包括发电、输电、配电和用电四个部分",
"is_key_point": true,
"concepts": ["电力系统"]
}
],
"markdown_content": "# 学习笔记\n\n## 片段 1: 00:00:03\n在这个课程中,我们将学习电力系统的基本概念\n\n## 片段 2: 00:00:12\n如图所示,电力系统包括发电、输电、配电和用电四个部分 Screenshot-[00:00:12]"
}
| 工具 | 功能 | 使用时机 |
|---|---|---|
download_bilibili_cc | 下载B站视频CC字幕 | 用户提供B站视频URL时 |
screenshot_tool | 从视频中提取截图 | 你处理完字幕后需要截图时 |
upload_file_to_notion | 上传本地文件到Notion | 需要将截图上传到Notion时 |
create_notion_notes_with_images | 在Notion中创建学习笔记(支持图片插入) | 处理完字幕和截图后创建笔记 |
secret_xxx)... 菜单export NOTION_API_KEY="secret_xxx" # 你的Notion API token
export NOTION_DATABASE_ID="your_database_id" # 目标数据库ID
凭证管理 / Credentials:
NOTION_API_KEY) 和数据库 ID (NOTION_DATABASE_ID)脚本文件 / Script Files:
process_subtitles.py 已不再由大模型调用,仅保留作为参考或备用命令行安全 / Command Line Safety:
bilibili_to_notion_workflow.py)使用 shell=True 执行命令依赖来源 / Dependencies:
# 安装Python依赖
pip install requests
# 下载BBDown(B站下载器)
curl -L -o /tmp/BBDown.zip "https://github.com/nilaoda/BBDown/releases/download/1.6.3/BBDown_1.6.3_20240814_linux-x64.zip"
unzip /tmp/BBDown.zip -d /tmp/
chmod +x /tmp/BBDown
# 安装FFmpeg(用于截图)
apt-get install ffmpeg
重要:下载字幕时必须使用 --skip-ai false 参数
BBDown默认会跳过AI字幕下载,必须明确指定不禁用此选项:
# ✅ 正确:下载AI字幕
BBDown "视频URL" --sub-only --skip-ai false --work-dir /输出目录
# ❌ 错误:会跳过AI字幕
BBDown "视频URL" --sub-only --work-dir /输出目录
完整下载示例:
# 下载字幕(优先AI字幕)
BBDown "https://www.bilibili.com/video/BV1xx411c7mW" \
--sub-only \
--skip-ai false \
--work-dir /tmp/subtitles
# 下载视频(720P清晰度,需要登录)
BBDown "https://www.bilibili.com/video/BV1xx411c7mW" \
--use-app-api \
-q "720P" \
--work-dir /tmp/videos
BBDown常用参数:
| 参数 | 说明 |
|---|---|
--sub-only | 仅下载字幕 |
--skip-ai false | 必须使用:不禁用AI字幕下载 |
--use-app-api | 使用APP端API(通常更稳定) |
--use-tv-api | 使用TV端API |
-q "720P" | 指定清晰度(720P、1080P等) |
--work-dir | 指定工作目录 |
-p 6 | 指定下载第6P |
-p ALL | 下载所有分P |
登录方式(必需!否则只能下载低清晰度):
# 方式1:二维码登录(需要显示界面)
BBDown login
# 方式2:Cookie登录(推荐,无需显示界面)
# 获取Cookie:浏览器登录B站 → F12 → Network → 找到Cookie
BBDown --cookie "你的cookie字符串" "视频URL"
# 方式3:TV端登录
BBDown logintv
清晰度说明:
| 登录状态 | 可下载清晰度 |
|---|---|
| 未登录 | 最高480P |
| 已登录WEB账号 | 最高1080P |
| 已登录TV/APP账号 | 最高4K/8K |
建议:使用Cookie登录以获取更高清晰度和完整字幕。
Purpose: Download CC subtitles from a Bilibili video
Input parameters:
url (string, required): Bilibili video URL or BV numberoutput (string, optional): Output directory pathOutput parameters:
success (boolean): Whether download was successfulsubtitle_file (string): Path to downloaded subtitle filevideo_title (string): Video titlePurpose: Extract screenshots from video and replace markers in Markdown
Input parameters:
video (string, optional): Video file pathmarkdown (string, optional): Markdown file pathoutput_dir (string, optional): Output directory for screenshotsOutput parameters:
output (string): Path to processed Markdown filescreenshots_dir (string): Directory containing screenshotsscreenshot_count (number): Number of screenshots generatedPurpose: Upload local files to Notion using Direct Upload API
Input parameters:
token (string, required): Notion API tokenfile (string, required): Path to local file to uploadOutput parameters:
success (boolean): Whether upload was successfulfile_upload_id (string): ID of uploaded file (for referencing in Notion)Purpose: Create Notion learning notes with embedded images (supports file upload)
Input parameters:
token (string, required): Notion API tokendatabase_id (string, required): Notion database IDvideo_title (string, required): Video titlevideo_url (string, required): Original Bilibili video URLsegments (array, required): Processed subtitle segmentsmarkdown_content (string, optional): Markdown content with screenshot markerstags (array, optional): Tags for organizing notesimages_dir (string, optional): Directory containing screenshot imagesOutput parameters:
success (boolean): Whether page creation was successfulpage_id (string): ID of created Notion pagepage_url (string): URL of created Notion pagesegments_processed (number): Number of segments addedimages_embedded (number): Number of images embeddedUser input: "帮我把这个B站视频做成带截图的学习笔记:https://www.bilibili.com/video/BV11u4m1c7ZV?p=6"
Model workflow:
调用 download_bilibili_cc 工具下载字幕(自动使用 --skip-ai false 参数下载AI字幕)
Screenshot-[hh:mm:ss] 标记截图标记规则(你必须遵守):
| 场景 | 示例 | 截图标记 |
|---|---|---|
| 代码讲解 | "在代码中,我们使用以下函数..." | Screenshot-[00:00:20] |
| UI交互操作 | "点击这里查看课程大纲" | Screenshot-[00:00:07] |
| 视觉指代词 | "如图所示,电力系统包括..." | Screenshot-[00:00:12] |
| 网址/链接 | "访问 https://example.com" | Screenshot-[00:00:16] |
| 任何借助视觉材料 | 任何需要看图才能理解的内容 | Screenshot-[时间] |
输出格式示例:
{
"segments": [
{
"start_time": "00:00:03",
"end_time": "00:00:07",
"text": "在这个课程中,我们将学习电力系统的基本概念",
"is_key_point": false
},
{
"start_time": "00:00:12",
"end_time": "00:00:16",
"text": "如图所示,电力系统包括发电、输电、配电和用电四个部分",
"is_key_point": true,
"concepts": ["电力系统"]
}
],
"markdown_content": "# 学习笔记\n\n## 片段 1: 00:00:03\n在这个课程中,我们将学习电力系统的基本概念\n\n## 片段 2: 00:00:12\n如图所示,电力系统包括发电、输电、配电和用电四个部分 Screenshot-[00:00:12]"
}
调用 screenshot_tool 工具从视频提取截图
注意:screenshot_tool会自动替换Markdown中的Screenshot-[hh:mm:ss]标记为图片路径assets/screenshot_hh_mm_ss.jpg。你需要将这个路径修正为实际路径(如/tmp/screenshots/screenshot_hh_mm_ss.jpg)才能在Notion中正确显示。
调用 upload_file_to_notion 工具上传截图
调用 create_notion_notes_with_images 工具创建笔记
archived: true 进行软删除。Output to user: "✅ 已成功创建带截图的Notion学习笔记:https://www.notion.so/xxx"
You can also use the integrated workflow script:
python3 bilibili_to_notion_workflow.py \
--url "https://www.bilibili.com/video/BV11u4m1c7ZV?p=6" \
--token "$NOTION_API_KEY" \
--database-id "$NOTION_DATABASE_ID" \
--output-dir "./output"
This script automatically handles all steps:
Use this skill when user:
Do NOT use this skill when:
export NOTION_API_KEY="secret_xxx" # Notion API token
export NOTION_DATABASE_ID="xxx" # 目标数据库ID(可选)
工作目录/
├── video.mp4 # 视频文件
├── subtitles.srt # 字幕文件(由你处理)
├── output/
│ └── screenshots/ # 截图保存目录
└── notes_with_images.md # 处理后的Markdown(带图片链接)
注意:字幕处理由你负责,不使用固定的Python程序
✅ 已下载字幕: [文件路径]
✅ 已处理字幕: [X]个片段, [Y]个关键点
✅ 已生成截图: [X]张图片
✅ 已创建Notion笔记: [页面链接]
❌ 字幕下载失败: [错误信息]
❌ 视频未找到: 请提供视频文件路径
❌ Notion API错误: [错误信息]
问题1:字幕只有几秒钟
--skip-ai false 参数问题2:只能下载480P清晰度
问题3:下载失败/解析失败
--use-app-api 或 --use-tv-api问题1:图片无法显示
/tmp/screenshots/screenshot_xxx.jpg)问题2:上传失败
问题1:字幕片段太少
问题2:截图标记未正确添加
Screenshot-[hh:mm:ss]