agentleFS
CLRT19CLRT19/skills/bilibili-watcher/SKILL.md

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

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
  1. Distinctive:

    Run the helper script using a path relative to this skill directory:

    line 27
  2. Very specific:

    If the user sees "Subtitles are only available when logged in" or "No Bilibili login cookies found":

    line 57
  3. Distinctive:

    If the video genuinely has no subtitles (Bilibili does not auto-caption every video), the script exits with a clear message.

    line 61
  4. Distinctive:

    If the user requests a specific output language (e.g.

    line 71
  5. Very specific:

    Read the [language: XX] header from the output.

    line 81
  6. Distinctive:

    Search the text for keywords or answer the user's question.

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/BVxxxxxxxxxx
  • https://www.bilibili.com/video/avxxxxxxxx
  • https://b23.tv/xxxxx (short link)
  • Any of the above with ?p=N for 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":

  1. Tell them to log into bilibili.com in Firefox (or supply --browser to pick another).
  2. 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:

  1. 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)
  2. If the user requests a specific output language (e.g. "summarize in English"), follow the user's instruction instead.

Examples

Summarize a Bilibili video:

  1. Get the transcript:
    python3 scripts/get_transcript.py "https://www.bilibili.com/video/BV1g7wJz8Ey4"
  2. Read the [language: XX] header from the output.
  3. Summarize in that same language (almost always Chinese for Bilibili).

Find specific information:

  1. Get the transcript.
  2. Search the text for keywords or answer the user's question.
  3. Respond in the transcript's language unless the user indicates otherwise.

Notes

  • Requires yt-dlp installed and on PATH (brew install yt-dlp or pip 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=N URL selectors.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.