← Back to Skills Marketplace
54lynnn

Bilibili AI Subtitle

by 54Lynnn · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
377
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install bilibili-ai-subtitle
Description
Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated...
README (SKILL.md)

Bilibili AI Subtitle Downloader v2.0

Download AI-generated subtitles from Bilibili videos quickly.

What This Skill Does

This skill downloads AI-generated subtitles (自动生成的字幕) from Bilibili videos. These are subtitles automatically created by Bilibili's AI system, not manually uploaded by creators.

Key improvements from v1.x:

  • ✅ Customizable language priority (e.g., prefer English over Chinese)
  • ✅ Better filename format: Title_Author_Date_Duration_BVid.txt
  • ✅ Three-part document structure (Info, Summary, Full Text)
  • ✅ Improved UTF-8 filename handling
  • ✅ Better WSL Chromium/Windows Edge Cookie support

Supported AI Languages

Bilibili uses ai- prefix for AI-generated subtitles:

Code Language 语言
ai-zh Chinese 中文
ai-en English 英文
ai-ja Japanese 日文
ai-es Spanish 西班牙文
ai-ar Arabic 阿拉伯文
ai-pt Portuguese 葡萄牙文
ai-ko Korean 韩文
ai-de German 德文
ai-fr French 法文

Usage

Basic Usage

./scripts/bilibili_ai_subtitle.sh "https://www.bilibili.com/video/BVxxxxx/"

Specify Language Priority

# Prefer English, fallback to Chinese
./scripts/bilibili_ai_subtitle.sh -l en,zh "BVxxxxx"

# Prefer Japanese
./scripts/bilibili_ai_subtitle.sh --lang ja "BVxxxxx"

# Multiple languages in order of preference
./scripts/bilibili_ai_subtitle.sh -l en,zh,ja,es "BVxxxxx"

Output

File name format: VideoTitle_Author_Date_Duration_BVid.txt

File structure:

第一部分:视频信息
├── 视频标题
├── B站链接
├── 作者
├── 发布时间
├── 视频时长
├── 原视频语言
└── 转录来源

第二部分:视频摘要
└── 自动生成的内容摘要

第三部分:完整原文
└── 完整字幕文本

Setup

Browser Cookie (Recommended)

For accessing member-only videos, log in to Bilibili in:

  • WSL Chromium (preferred): chromium-browser &
  • Windows Edge: Log in normally

The script will automatically detect and use available cookies.

Requirements

  • yt-dlp installed
  • Optional: Browser with Bilibili login (for member-only videos)

Notes

  • AI subtitles are generated automatically by Bilibili's system
  • Accuracy varies (typically 85-95% for clear speech)
  • Not all videos have AI subtitles available
  • Some videos may require membership to access AI subtitles

Comparison with bilibili-transcript

Feature bilibili-ai-subtitle bilibili-transcript
Purpose Download AI subtitles only Full transcription workflow
Speed ⚡ Fast (instant download) Varies (subtitles → Whisper)
Subtitle sources AI only CC → AI → Whisper
Use case Quick subtitle grab Complete transcription
Dependencies yt-dlp only yt-dlp + optional Whisper

Recommendation: Use bilibili-ai-subtitle for quick AI subtitle download, use bilibili-transcript when you need complete transcription (including voice transcription for videos without subtitles).

Usage Guidance
This skill appears coherent for its stated purpose. Before installing/running: 1) Ensure yt-dlp and python3 are installed and up-to-date. 2) Review the script yourself (it is short and readable). 3) Be aware it will try to read local browser cookie stores (WSL Chromium path or Windows Edge user data under /mnt/c/Users) to access member-only videos — if you don't want that, run the script without cookies or remove the cookie-detection block. 4) Provide an explicit output directory when invoking to avoid the hardcoded /home/administrator path. 5) Run in a sandbox or test environment if you are unsure about giving the script access to browser profile directories.
Capability Analysis
Type: OpenClaw Skill Name: bilibili-ai-subtitle Version: 2.0.0 The script `scripts/bilibili_ai_subtitle.sh` automatically attempts to locate and access browser cookie databases from the host system, specifically targeting WSL Chromium and Windows Edge profiles (via `/mnt/c/Users/`). While this is documented as a feature to allow `yt-dlp` to access member-only content, the automated scanning of host user directories and browser data represents a significant privacy risk. There is no evidence of intentional data exfiltration or malicious logic, but the capability to access sensitive host-level credentials warrants a suspicious classification.
Capability Assessment
Purpose & Capability
The name/description (download Bilibili AI subtitles) align with the provided script and SKILL.md. The script uses yt-dlp to list and fetch AI subtitles, parses metadata, and writes a formatted TXT — all directly related to the stated purpose.
Instruction Scope
Runtime instructions and the script stay within subtitle-download scope. The script enumerates local browser cookie stores (WSL Chromium path and Windows Edge user data under /mnt/c/Users) to supply yt-dlp with cookies for member-only videos — this is relevant to the feature but does access local browser profile paths. No other files, external endpoints, or unrelated system data are accessed or transmitted.
Install Mechanism
There is no install step (instruction-only + shell script). No remote downloads or archive extraction are performed by the skill itself. The only declared dependency in SKILL.md is yt-dlp (the script also uses python3, coreutils like sed/grep/find/wc/date which are normal).
Credentials
The skill requests no environment variables or credentials. It does, however, attempt to read local browser cookie stores and enumerates /mnt/c/Users to locate a Windows Edge profile for cookie extraction — behavior that is explainable for accessing member-only videos but is sensitive because it uses authenticated browser cookies. Also the default output directory is a hardcoded path (/home/administrator/.openclaw/workspace/...) if none is provided, which may be surprising; supplying an explicit output directory is advisable.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify other skills or global agent config. It runs only when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bilibili-ai-subtitle
  3. After installation, invoke the skill by name or use /bilibili-ai-subtitle
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
Major update: Add language priority selection (-l/--lang), improve filename format, three-part document structure, better UTF-8 handling. Sync improvements from bilibili-transcript.
v1.3.0
Add multi-language AI subtitle support: ai-zh, ai-en, ai-ja, ai-es, ai-ar, ai-pt, ai-ko. Auto-detect available language.
v1.2.0
Fix: Use both --write-subs and --write-auto-subs for reliable AI subtitle download. Add better WSL Chromium detection.
v1.1.0
Fix: Use correct language code 'ai-zh' for Bilibili AI subtitles. Add WSL Chromium support.
v1.0.0
Initial release: Download Bilibili AI-generated subtitles quickly
Metadata
Slug bilibili-ai-subtitle
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Bilibili AI Subtitle?

Download Bilibili AI-generated subtitles (auto-subtitles) for videos. Use when you need to quickly get subtitles from Bilibili videos that have AI-generated... It is an AI Agent Skill for Claude Code / OpenClaw, with 377 downloads so far.

How do I install Bilibili AI Subtitle?

Run "/install bilibili-ai-subtitle" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bilibili AI Subtitle free?

Yes, Bilibili AI Subtitle is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Bilibili AI Subtitle support?

Bilibili AI Subtitle is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bilibili AI Subtitle?

It is built and maintained by 54Lynnn (@54lynnn); the current version is v2.0.0.

💬 Comments