← 返回 Skills 市场
markusbetter

B站视频转文字&总结神器-Bilibili video transcribe&summary

作者 Markusbetter · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
698
总下载
1
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install bilibili-video-transcribe-summary
功能描述
当用户提供 B 站视频链接、BV 号或 b23.tv 短链,并希望转录、提取字幕、总结或分析视频内容时使用。先检查 Node.js 环境和 SILICONFLOW_API_KEY,优先尝试官方字幕;如果没有字幕,则获取匿名音频地址,下载为 .m4s 后直接改名为 .mp3,无需转码;有 API key 时调用硅基...
使用说明 (SKILL.md)

B 站视频转录与总结

当用户给出 B 站视频链接,并希望了解视频内容、获取转录文字或让 AI 做总结时,使用这个 skill。

触发条件

满足以下两点时触发:

  • 用户输入的是 B 站标准链接、BV... 号,或者 https://b23.tv/... 短链接。
  • 用户意图是转录、提取字幕、总结、分析视频内容。

工作流程

  1. 先检查 node --version,要求 Node.js 18 及以上。
  2. 如果大概率需要语音转写,再检查 SILICONFLOW_API_KEY 是否存在。
  3. 运行 scripts/bilibili_pipeline.mjs
  4. 优先使用官方字幕。
  5. 如果没有字幕,则从页面播放信息中提取匿名音频地址。
  6. 下载得到 .m4s 文件后,直接改名为 .mp3,不做转码。
  7. 如果存在 API key,则调用硅基流动 TeleAI/TeleSpeechASR 进行转写。
  8. 获取文字后,按用户要求进行总结;如果用户没有说明,就默认输出重点总结。

首次成功后的标记文件

脚本在第一次成功执行 proberun 后,会在输出目录写入 .skill-ready.json

如果这个文件已经存在,就默认环境已经准备过了,后续再次使用时不必重复做依赖和 API key 的提示说明,直接执行即可。只有当脚本真正失败时,再回退到安装或配置引导。

依赖与环境检查

首次成功运行前先检查:

  • node --version 是否可用。
  • 如果要做 ASR,SILICONFLOW_API_KEY 是否已注入。
  • 如果环境限制联网,需要先申请网络权限。

如果输出目录里已经存在 .skill-ready.json,则默认跳过重复检查。

如果缺少 Node.js,请先引导用户安装 Node.js 18+,再继续执行。

如果缺少 API key,请提示用户前往以下页面创建:

然后再设置环境变量并重试,例如:

$env:SILICONFLOW_API_KEY="你的_key"
export SILICONFLOW_API_KEY="你的_key"

更完整的安装与重试说明,请阅读 setup.md

常用命令

只探测,不下载音频:

node scripts/bilibili_pipeline.mjs probe "https://www.bilibili.com/video/BV1R6PzzAE9k" --output-dir ./output

完整执行:

node scripts/bilibili_pipeline.mjs run "https://www.bilibili.com/video/BV1R6PzzAE9k" --output-dir ./output

短链接也可直接使用:

node scripts/bilibili_pipeline.mjs run "https://b23.tv/lsocHNd" --output-dir ./output

输出文件

脚本会在输出目录写入:

  • probe_result.json:页面解析结果、字幕信息、候选音视频地址
  • audio.mp3:匿名音频流下载后改名得到的文件
  • transcription_result.json:硅基流动转写返回结果
  • transcript.txt:最终可直接阅读的文字稿
  • .skill-ready.json:表示这个输出目录至少成功跑通过一次

如果成功拿到文字稿,脚本结束时也会把 transcript 直接打印到 stdout,调用方不必再额外读取 transcript.txt

回复规则

拿到文字之后:

  • 如果用户要求完整转录,就输出完整文字或引用 transcript.txt
  • 如果用户要求重点分析某一部分,就只围绕该部分总结。
  • 如果用户没有特别要求,默认给出重点总结。
  • 需要说明文字来源是官方字幕还是 ASR。
  • 如果字幕和 ASR 都不可用,就明确说明阻塞原因并停止。

说明

  • 这个 skill 已验证可处理标准 B 站链接和 b23.tv 短链接。
  • 在当前验证流程里,匿名下载得到的 .m4s 音频文件,直接改名为 .mp3 后即可用于硅基流动转写,无需转码。
  • 匿名获取能力不是绝对稳定,部分视频仍可能因为 B 站限制而失败。\r
安全使用建议
This skill appears to be what it says: it fetches Bilibili pages, may download anonymous audio streams, and—if you provide SILICONFLOW_API_KEY—uploads the audio to SiliconFlow's transcription API (https://api.siliconflow.cn). Before using: (1) only run it on content you are allowed to upload (it will send audio to a third‑party ASR); (2) set the SILICONFLOW_API_KEY in the environment (manifest metadata has a minor mismatch—ensure the key is provided if you want ASR); (3) choose an output directory that is not sensitive (the script writes audio.mp3, transcript.txt, probe_result.json, and a .skill-ready.json marker); (4) be aware the script renames .m4s to .mp3 without transcoding—this is intentional but verify SiliconFlow accepts that payload for your files; (5) review SiliconFlow's terms/privacy if you care about data retention. If you need more assurance, inspect the remainder of scripts/bilibili_pipeline.mjs (the truncated portion) to confirm no additional endpoints or behaviors are present.
功能分析
Type: OpenClaw Skill Name: bilibili-video-transcribe-summary Version: 1.0.0 The skill bundle is a legitimate tool designed to transcribe and summarize Bilibili videos. The core logic in `scripts/bilibili_pipeline.mjs` extracts video metadata and official subtitles from Bilibili, or falls back to downloading the audio stream and using the SiliconFlow ASR API (api.siliconflow.cn) for transcription. The script handles file operations and network requests in a manner consistent with its stated purpose, and no evidence of malicious intent, data exfiltration, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description (Bilibili transcription & summary) match the code and instructions: the script parses Bilibili pages/subtitle APIs, downloads an audio stream, optionally uses SILICONFLOW_API_KEY to call SiliconFlow's transcription endpoint, and produces transcripts and summaries. Required binary 'node' and the primary credential (SILICONFLOW_API_KEY) are appropriate for the stated purpose. Minor metadata inconsistency: requires.env is empty in metadata while primaryEnv is set to SILICONFLOW_API_KEY, but this is an administrative mismatch rather than functional drift.
Instruction Scope
SKILL.md instructs only the actions needed for transcription: check Node and API key, run the included Node script, prefer official subtitles, download anonymous audio if needed, rename .m4s to .mp3, call ASR if API key present, then summarize. The script writes output files only into the configured output directory and prints transcripts to stdout. It does make network calls to Bilibili and SiliconFlow (expected). There are no instructions to read unrelated system files or other credentials.
Install Mechanism
No install spec; this is instruction + a Node script. That is low-risk: nothing is downloaded/installed by the skill itself beyond relying on Node being present.
Credentials
The only external credential used is SILICONFLOW_API_KEY (declared as primaryEnv and used by the code). This is proportionate for calling an ASR service. Note: metadata's requires.env array is empty while primaryEnv is set — a small inconsistency in the manifest (the runtime and README do require the API key).
Persistence & Privilege
always is false and the skill does not request permanent platform-wide privileges. It writes a local marker (.skill-ready.json) and output artifacts into the specified output directory only, which is expected for repeated runs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bilibili-video-transcribe-summary
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bilibili-video-transcribe-summary 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
我看到很多人的方案都是本地whisper或者走gemini,但是会有硬件不支持&网络不支持的问题,所以想了一个完全免费的链路。需要大家提前去硅基流动注册一个账号获取api key,就可以使用他们的免费语音模型了。 这个skill的我还给自己写了Claude和codex等专用的skill版本(虽然这个版本应该也能用),后续会上传到GitHub。 本次更新特点: -支持根据用户输入的 B 站视频链接、BV 号或短链自动转录、提取字幕或总结视频内容。 - 首选官方字幕,无字幕时可匿名获取音频并用硅基流动 ASR 自动转写。 - 支持用户自定义总结要求,默认输出重点总结。 - 智能检测 Node.js 环境与 API key,首次成功后自动跳过重复环境检查。 - 执行结果输出为多个结构化文件,并可直接返回文字稿。
元数据
Slug bilibili-video-transcribe-summary
版本 1.0.0
许可证 MIT-0
累计安装 6
当前安装数 6
历史版本数 1
常见问题

B站视频转文字&总结神器-Bilibili video transcribe&summary 是什么?

当用户提供 B 站视频链接、BV 号或 b23.tv 短链,并希望转录、提取字幕、总结或分析视频内容时使用。先检查 Node.js 环境和 SILICONFLOW_API_KEY,优先尝试官方字幕;如果没有字幕,则获取匿名音频地址,下载为 .m4s 后直接改名为 .mp3,无需转码;有 API key 时调用硅基... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 698 次。

如何安装 B站视频转文字&总结神器-Bilibili video transcribe&summary?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-video-transcribe-summary」即可一键安装,无需额外配置。

B站视频转文字&总结神器-Bilibili video transcribe&summary 是免费的吗?

是的,B站视频转文字&总结神器-Bilibili video transcribe&summary 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

B站视频转文字&总结神器-Bilibili video transcribe&summary 支持哪些平台?

B站视频转文字&总结神器-Bilibili video transcribe&summary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 B站视频转文字&总结神器-Bilibili video transcribe&summary?

由 Markusbetter(@markusbetter)开发并维护,当前版本 v1.0.0。

💬 留言讨论