← 返回 Skills 市场
harrylabsj

Bilibili Digest

作者 haidong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
49
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bilibili-digest
功能描述
Extract, structure, and summarize Bilibili video/column content into structured notes with timestamps, key points, and chapter indexes.
使用说明 (SKILL.md)

Bilibili Digest Skill

Extract Bilibili (B站) video/column content and transform it into structured, note-ready Markdown with AI-generated summaries, timestamped key points, chapter segmentation, and cross-video integration.

How It Works

This skill operates in a pipeline:

  1. Parse – Extract BV/column ID from any Bilibili URL (including b23.tv short links)
  2. Fetch – Retrieve video metadata (title, author, duration, views), CC subtitles, and danmaku via Bilibili public APIs
  3. Segment – Auto-detect video chapters from timestamps or subtitle gaps
  4. Summarize – Call LLM (DeepSeek) to generate structured summary, key points, resources, and action steps
  5. Export – Output as Markdown (default), Obsidian, JSON, or prepare for Notion/Feishu

Fallback Strategy for Missing Subtitles

If a video has no CC subtitles, the skill degrades gracefully:

  • Generate a summary from title + description + danmaku highlights
  • Prompt the user to paste their own notes as enrichment

API Rate Limiting

  • Minimum 1-second interval between Bilibili API calls
  • Exponential backoff retry (max 3 attempts) on 429 / timeout
  • Local cache (24h TTL) at ~/.openclaw/data/bilibili-digest/cache/

Usage

clawhub run bilibili-digest --url \x3Cbilibili-url> [options]

Options

Option Type Default Description
--url string required Single Bilibili URL
--urls json-array Multiple URLs for batch processing
--summary-mode enum detailed minimal, overview, detailed, mindmap
--include-transcript bool false Include full transcript text
--include-danmaku bool false Include danmaku sentiment analysis
--export-format enum markdown markdown, json, obsidian, notion, feishu
--output-dir string ./bilibili-notes/ Output directory
--cross-video-merge bool false Merge insights across multiple videos
--language enum zh-CN zh-CN, en-US

Sample Prompts

1. Extract a single video into structured notes (most common)

clawhub run bilibili-digest --url "https://www.bilibili.com/video/BV1xx411c7mD"
# → Structured Markdown with title, author, key points (with timestamps), chapters, resources

2. Batch process a tutorial series with cross-video merge

clawhub run bilibili-digest \
  --urls '["https://www.bilibili.com/video/BV1xx01","https://www.bilibili.com/video/BV1xx02"]' \
  --cross-video-merge
# → Combined knowledge tree across multiple videos

3. Quick minimal summary for social sharing

clawhub run bilibili-digest --url "https://www.bilibili.com/video/BV1xx411c7mD" \
  --summary-mode minimal
# → One-liner + 3-5 core bullet points

4. Export in Obsidian format with full transcript

clawhub run bilibili-digest --url "https://www.bilibili.com/video/BV1xx411c7mD" \
  --summary-mode detailed --export-format obsidian --include-transcript
# → Obsidian-compatible note with WikiLinks, tags, and YAML frontmatter

5. Mindmap summary for quick review

clawhub run bilibili-digest --url "https://www.bilibili.com/video/BV1xx411c7mD" \
  --summary-mode mindmap
# → Hierarchical mindmap with main topics, subtopics, and key connections,
#   ideal for sharing or importing into mind-mapping tools (XMind, etc.)

First-Success Path

Step 1: Install → clawhub install bilibili-digest
Step 2: Run → clawhub run bilibili-digest --url "https://www.bilibili.com/video/BV1xx411c7mD"
Step 3: Receive → Structured Markdown note (\x3C30 seconds)
Step 4: Copy to note-taking app → Value achieved

Core Scripts

The scripts/ directory contains Python modules:

File Purpose
parser.py Extract BV/CV IDs and expand b23.tv short links
api.py Bilibili API client with rate limiting and retry
subtitle.py CC subtitle extraction and cleanup
danmaku.py Danmaku density detection and sentiment grouping
segmenter.py Chapter detection from subtitle gaps and transition words
summarizer.py LLM-based structured summary generation
exporter.py Markdown / Obsidian / JSON / Notion / Feishu export
cross_merge.py Cross-video knowledge merging
__init__.py Package init
安全使用建议
Install if you are comfortable with Bilibili content being fetched, cached locally, written into note files, and summarized by the configured LLM. Avoid using it on private notes or sensitive pasted context unless you are comfortable with that content being processed by the model runtime.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The documented behavior matches the stated purpose: parse Bilibili URLs, fetch metadata/subtitles/danmaku, summarize content, segment chapters, merge batches, and export notes.
Instruction Scope
The main description is concise, but the SKILL.md and schemas disclose batch processing, danmaku analysis, cross-video merge, LLM summarization, cache, and export formats.
Install Mechanism
No auto-install, privilege escalation, background service, obfuscated loader, or destructive setup was found; scripts are plain Python modules using standard libraries.
Credentials
Network access to Bilibili and LLM processing are proportionate to summarization, and file writes are limited to cache/output behavior, but users should understand extracted content may be processed outside the local machine.
Persistence & Privilege
The skill uses a disclosed 24-hour cache under ~/.openclaw/data/bilibili-digest/cache/ and writes requested exports; it does not persist credentials or create long-running background tasks.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bilibili-digest
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bilibili-digest 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Bilibili Digest 1.0.0 — Initial Release - Extracts and summarizes Bilibili videos/columns into structured, timestamped notes. - Supports single and batch processing of Bilibili URLs, including short links. - Outputs in multiple formats: Markdown, Obsidian, JSON, Notion, and Feishu. - Handles missing subtitles with fallback summary strategies using available metadata and danmaku. - Implements chapter segmentation, API rate limiting, error retry, and 24h local cache. - Provides options for summary detail, transcript inclusion, danmaku analysis, and cross-video merging.
元数据
Slug bilibili-digest
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bilibili Digest 是什么?

Extract, structure, and summarize Bilibili video/column content into structured notes with timestamps, key points, and chapter indexes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 49 次。

如何安装 Bilibili Digest?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bilibili-digest」即可一键安装,无需额外配置。

Bilibili Digest 是免费的吗?

是的,Bilibili Digest 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bilibili Digest 支持哪些平台?

Bilibili Digest 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bilibili Digest?

由 haidong(@harrylabsj)开发并维护,当前版本 v1.0.0。

💬 留言讨论