ai798-Lab

Clip Bili — Development skill for Claude Code

Development community

从 B 站视频 URL 提取内容,转成带时间戳的结构化字幕稿 .md,存入 ~/knowledge/raw/.

How to install Clip Bili

Installs to ~/.claude/skills/ai798-lab-jupiter-clip-bili/SKILL.md

Terminal
mkdir -p ~/.claude/skills/ai798-lab-jupiter-clip-bili && curl -fsSL https://raw.githubusercontent.com/ai798-Lab/Jupiter/HEAD/commands/clip-bili.md -o ~/.claude/skills/ai798-lab-jupiter-clip-bili/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Clip Bili does

从 B 站视频 URL 提取内容,转成带时间戳的结构化字幕稿 .md,存入 ~/knowledge/raw/。

参数:$ARGUMENTS(B 站视频 URL / b23.tv 短链 / BV 号)

环境硬约定(不要违反)

  • 禁用 yt-dlp:yt-dlp 对 B 站网页端不稳定(视频页可能被网页端 WAF 拦下返回 HTTP 412),下载网页一步容易失败。故一切请求只走纯 API(api.bilibili.com)和 CDN(.bilivideo.com / upos-)。
  • 不要尝试字幕接口:player/v2 未登录时 subtitles 恒为空数组(CC 和 AI 字幕都不下发),默认直接走音频转录。
  • 转录默认本地 mlx-whisper(模型 mlx-community/whisper-large-v3-turbo,需预先在 HF 缓存;本地转录约 20 倍实时速)。
  • 临时文件放 scratchpad 或 /tmp/clip-bili-*,完成后清理。

流程

1. 解析 URL → BV 号

  • b2

Alternatives in Development

  • Claude Video Effects — 36 video effects for Claude Code: drop in a talking-head clip, type /effects orbit 205 ★
  • Cc Clip — Paste images into remote Claude Code & Codex CLI over SSH — clipboard bridging for macOS and Windows 147 ★
  • Raw CLI — The agent harness you can fork 105 ★

Full documentation available on GitHub

View Source Repository