Skip to main content
skill CX Codex

bilibili-subtitle — Claude Code skill: Bilibili subtitles to text

Pulls subtitles out of Bilibili videos with BBDown and renders them as Markdown, SRT and VTT. Useful when you want the words, not the video.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HamsteRider-m/bilibili-subtitle --skill bilibili-subtitle -a claude-code
Open on GitHub

What bilibili-subtitle does

The skill takes a Bilibili link, a BV ID or an av ID, runs BBDown in subtitle-only mode and loads the file it downloads. From there it produces three outputs: a Markdown transcript, an SRT file and a VTT file. Pick a language with --language, for instance zh-Hans.

Everything runs inside a pixi environment, so calls look like pixi run python -m bilibili_subtitle "URL" -o ./output. A preflight check is available through --check and --check-json, and --json-output returns a payload with exit_code, output.files, warnings and errors for parent skills.

BBDown has to be present, otherwise the run stops with fatal error E001 and points you at ./install.sh. Some videos need a logged-in session, which means running BBDown login first. Only subtitles that BBDown exposes can be extracted, Bilibili's automatic ones included; when a video has none, the remaining options are another language or another video.

What it helps with

  • get the spoken text out of a Bilibili video that ships subtitles
  • turn a video into a Markdown transcript for notes or an article
  • produce SRT or VTT files with timecodes
  • pick a specific subtitle language during extraction
  • hand structured JSON results back to a parent skill

Example prompts for the agent

  • Grab the subtitles from this Bilibili video and write the files to ./output
  • Extract the transcript for this BV ID, language zh-Hans
  • Render SRT and VTT from the subtitles of this link

How to install bilibili-subtitle

1Skills CLI (Vercel)

npx skills add HamsteRider-m/bilibili-subtitle --skill bilibili-subtitle -a claude-code

2Manually: put the files in place

~/.claude/skills/bilibili-subtitle/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bilibili-subtitle/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about bilibili-subtitle

How do I install bilibili-subtitle in Claude Code?

Run npx skills add HamsteRider-m/bilibili-subtitle --skill bilibili-subtitle -a claude-code. The skill file then lands at ~/.claude/skills/bilibili-subtitle/SKILL.md.

What does bilibili-subtitle do?

It runs BBDown in subtitle-only mode, reads the downloaded subtitle file and renders a Markdown transcript plus SRT and VTT. With --json-output it also reports file paths, warnings and errors.

What does the skill need to run?

A pixi environment, the BBDown tool and gh, which the installer uses to fetch BBDown nightly builds. Without BBDown the skill fails with E001 and asks you to run ./install.sh.

Similar skills

All skills for Automation and no-code: n8n, Zapier, Make →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor