@hamsterider-m/bilibili-subtitle
BExtract Bilibili subtitles with BBDown and render transcript outputs.
Install
agr install @hamsterider-m/bilibili-subtitle --target claudeWrites 7 files into .claude/skills/, pinned to git-ef8b313f.
- .claude/skills/bilibili-subtitle/.gitignore
- .claude/skills/bilibili-subtitle/README.md
- .claude/skills/bilibili-subtitle/SKILL.md
- .claude/skills/bilibili-subtitle/install.sh
- .claude/skills/bilibili-subtitle/opencode.json
- .claude/skills/bilibili-subtitle/pixi.toml
- .claude/skills/bilibili-subtitle/pyproject.toml
Document
Bilibili Subtitle Skill
Extract Bilibili subtitles with BBDown and render transcript outputs.
When To Use
Use this skill when a Bilibili video already has downloadable subtitles, including Bilibili AI subtitles exposed by BBDown. This skill only extracts subtitle files exposed by BBDown.
Commands
| Task | Command |
|---|---|
| Preflight | pixi run python -m bilibili_subtitle --check |
| JSON preflight | pixi run python -m bilibili_subtitle --check-json |
| Extract | pixi run python -m bilibili_subtitle "URL" -o ./output |
| Extract JSON | pixi run python -m bilibili_subtitle "URL" -o ./output --json-output |
| Select language | pixi run python -m bilibili_subtitle "URL" --language zh-Hans -o ./output |
Workflow
- Parse the Bilibili URL, BV ID, or av ID.
- Run BBDown in subtitle-only mode.
- Load the downloaded subtitle file.
- Render Markdown transcript, SRT, and VTT files.
- Optionally emit JSON for parent skills.
Outputs
output/
├── {title}.transcript.md
├── {title}.srt
└── {title}.vtt
JSON Contract
pixi run python -m bilibili_subtitle "URL" -o /tmp/output --json-output
The response includes exit_code, output.files, warnings, and errors.
Dependencies
pixifor the Python environmentBBDownfor subtitle extractionghfor installer-driven BBDown nightly downloads
Error Handling
| Code | Level | Meaning | Remediation |
|---|---|---|---|
| E001 | FATAL | BBDown missing | Run ./install.sh |
| E002 | FATAL | BBDown auth required | Run BBDown login |
| E003 | RECOVERABLE | Download failed | Check URL/network/login/language |
| E004 | RECOVERABLE | No downloadable subtitles | Try another language or video |
| E005 | FATAL | Invalid URL/ID | Provide a Bilibili URL, BV ID, or av ID |
| E006 | FATAL | Output write failed | Check output directory permissions |
| E007 | RECOVERABLE | Invalid subtitle content | Retry or inspect BBDown output |
Trustgrade B
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- warnLicenseno SPDX license detected
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-ef8b313f50982026-07-31