bilibili-watcher
Skill2 starsChanged 8 months agoMITView on GitHub
Fetch and read transcripts from Bilibili (B站) videos. Use when you need to summarize a Bilibili video, answer questions about its content, or extract information from it.
- Installs packages
In this repository2 other files it gives its agents.
- claude-to-codex-historySkill
- youtube-watcherSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Run the helper script using a path relative to this skill directory:
- Very specific: line 57
If the user sees "Subtitles are only available when logged in" or "No Bilibili login cookies found":
- Distinctive: line 61
If the video genuinely has no subtitles (Bilibili does not auto-caption every video), the script exits with a clear message.
- Distinctive: line 71
If the user requests a specific output language (e.g.
- Very specific: line 81
Read the [language: XX] header from the output.
- Distinctive: line 87
Search the text for keywords or answer the user's question.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bilibili Watcher
Fetch transcripts from Bilibili (B站) videos for summarization, QA, and content extraction. Mirrors the youtube-watcher skill but handles Bilibili's login-gated subtitle access.
Usage
Get Transcript
Retrieve the text transcript of a Bilibili video. The script auto-detects the subtitle language and reads login cookies from Firefox by default.
Run the helper script using a path relative to this skill directory:
python3 scripts/get_transcript.py "https://www.bilibili.com/video/BVxxxxxxxxxx"Accepted URL formats:
https://www.bilibili.com/video/BVxxxxxxxxxxhttps://www.bilibili.com/video/avxxxxxxxxhttps://b23.tv/xxxxx(short link)- Any of the above with
?p=Nfor multi-part video selectors
To override the language (rare — Bilibili is almost always Chinese):
python3 scripts/get_transcript.py --lang zh "https://www.bilibili.com/video/BVxxxxxxxxxx"To use a different browser for cookies (default is firefox):
python3 scripts/get_transcript.py --browser chrome "https://www.bilibili.com/video/BVxxxxxxxxxx"Bilibili Login Requirement
Bilibili gates subtitles behind login. Without cookies, only danmaku (user comment overlay) is available — not a real transcript. The script reads login cookies from the user's browser via yt-dlp --cookies-from-browser.
Default: Firefox (reason: on macOS, Chrome encrypts cookies with Keychain and Safari's cookie file is in a sandboxed container requiring Full Disk Access — Firefox avoids both issues). User must be logged into bilibili.com in Firefox for the skill to work.
If the user sees "Subtitles are only available when logged in" or "No Bilibili login cookies found":
- Tell them to log into bilibili.com in Firefox (or supply
--browserto pick another). - Retry.
If the video genuinely has no subtitles (Bilibili does not auto-caption every video), the script exits with a clear message. Suggest checking for the CC icon in the Bilibili player.
Language Rules
The script outputs a [language: XX] header indicating the detected transcript language. Follow these rules:
- Always summarize and respond in the same language as the transcript, unless the user explicitly asks for a different language.
- Chinese transcript → Chinese summary
- Japanese transcript → Japanese summary
- English transcript → English summary (rare on Bilibili)
- If the user requests a specific output language (e.g. "summarize in English"), follow the user's instruction instead.
Examples
Summarize a Bilibili video:
- Get the transcript:
python3 scripts/get_transcript.py "https://www.bilibili.com/video/BV1g7wJz8Ey4" - Read the
[language: XX]header from the output. - Summarize in that same language (almost always Chinese for Bilibili).
Find specific information:
- Get the transcript.
- Search the text for keywords or answer the user's question.
- Respond in the transcript's language unless the user indicates otherwise.
Notes
- Requires
yt-dlpinstalled and on PATH (brew install yt-dlporpip install yt-dlp). - Requires the user to be logged into Bilibili in a supported browser (Firefox by default).
- Prefers manual subtitles over AI-generated subtitles.
- Skips
danmaku(user comment overlay) — it is not a transcript. - Works with multi-part videos via
?p=NURL selectors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

