← 返回 Skills 市场
pzc163

bili-mindmap

作者 Magic Yang · GitHub ↗ · v0.2.1 · MIT-0
cross-platform ✓ 安全检测通过
365
总下载
1
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install bili-mindmap
功能描述
Turn a Bilibili video URL or BV number into a human-like XMind mind map. Use when the user wants to collect subtitles, comments, AI summary, and transcript f...
使用说明 (SKILL.md)

Bili Mindmap

Turn a Bilibili video into a mind map that feels closer to something a human actually organized.

Recommended Flow

  • Python scripts collect video details, subtitles, AI summary, comments, and ASR fallback when needed.
  • The host platform's injected model reads the prepared context and writes a high-quality outline.md.
  • Python renders outline.md into an .xmind file.

Preconditions

  • bili must be installed and available.
  • If audio fallback is needed, bilibili-cli[audio] should be installed.
  • If cloud ASR is used on Windows, the Aliyun config file should already exist.
  • If local ASR is preferred on Linux or macOS, make sure the Parakeet endpoint is running.

Core Constraints

  • Prefer subtitles first. Only fall back to ASR when subtitles are unavailable.
  • Login check is mandatory: run bili status before bili login.
  • The main way to produce outline.md should be the host model, not the local rule-based script.
  • The main structure should come from subtitles or ASR. Comments and the site AI summary are supplemental only.
  • Do not mechanically copy spoken transcript text. Merge themes, compress phrasing, and organize by logic.
  • If information is weak or incomplete, mark it explicitly instead of inventing facts.

Main Workflow

  1. Accept either a full video URL or a BV id.
  2. Run bili status to check login.
  3. If needed, run bili login and wait for the user to scan.
  4. Run python scripts/prepare_bili_context.py --source \x3Cvideo-url-or-bv> --login-if-needed --transcribe-if-needed.
  5. Read the generated files: context.md, host_outline_prompt.md, manifest.json, video_details.json, subtitles.txt, ai_summary.txt, and comments.txt.
  6. Feed host_outline_prompt.md to the host platform model and let it write outline.md. Only use scripts/generate_outline.py when the host model path is unavailable.
  7. Run python scripts/render_xmind.py --outline \x3Coutput-dir/outline.md> --output \x3Coutput-dir/result.xmind>.
  8. Tell the user where the .xmind file was written and which sources were most important.

One-Command Workflow

run_bili_mindmap.py now supports two workflows:

  • --workflow host: recommended quality path. Collects context first, then waits for a host-generated outline.md.
  • --workflow local: fallback path. Uses scripts/generate_outline.py locally.

Recommended command:

python scripts/run_bili_mindmap.py   --source "BV1ABcsztEcY"   --output-dir output/BV1ABcsztEcY   --workflow host   --login-if-needed   --transcribe-if-needed

On the first run, if outline.md does not exist yet, the script will stop after context preparation and print:

  • the context.md path
  • the host_outline_prompt.md path
  • the expected outline.md path

After the host model writes outline.md, run the same command again and it will render the .xmind file.

Fallback Workflow

When the host model cannot be used, fall back to the local outline generator:

python scripts/generate_outline.py   --context-dir \x3Coutput-dir>   --output \x3Coutput-dir/outline.md>

This is only a fallback. It is usually lower quality than the host-model result.

Collection Strategy

Collect information in this order:

  1. bili video \x3Csource> for video details
  2. bili video \x3Csource> --subtitle for subtitles
  3. bili video \x3Csource> --ai for the site AI summary
  4. bili video \x3Csource> --comments for hot comments
  5. If subtitles are unavailable:
    • bili audio \x3Csource> -o \x3Coutput-dir/audio> to extract audio
    • auto mode falls back in moonshine -> parakeet -> aliyun order

Output Requirements

  • Use the video title as the root topic.
  • Keep subtitles or ASR as the main evidence.
  • Prefer abstraction and synthesis over transcript copying.
  • Mark uncertainty explicitly.
  • The final artifacts should include both outline.md and .xmind.

Important Files

  • scripts/prepare_bili_context.py: login checks, content collection, ASR fallback, and generation of context.md plus host_outline_prompt.md
  • scripts/generate_outline.py: local fallback outline generator
  • scripts/render_xmind.py: pure Python XMind renderer
  • scripts/run_bili_mindmap.py: one-command entry point with host and local workflows
  • references/mindmap-outline-template.md: structure template for the final outline
  • references/host-llm-outline-spec.md: quality and behavior rules for the host model path
  • vendor/aliyun_asr/: bundled Aliyun file transcription implementation
安全使用建议
What to consider before installing: 1) This skill runs the `bili` CLI and (when needed) `ffmpeg` and may prompt you to log in with `bili login` — expect interactive behavior and local Bilibili cookies/sessions to be used. 2) If subtitles are missing it can extract audio and call local ASR (moonshine/parakeet) or cloud ASR (Aliyun). Aliyun ASR requires a config file (default: ~/.openclaw/aliyun-asr-config.json or path via ALIYUN_ASR_CONFIG) containing your Access Key and secret — only provide those if you trust the environment. 3) The host-model workflow asks the platform model to read context.md/host_outline_prompt.md (which include subtitles, comments, transcripts); be mindful of what data you allow the host model to see (private or copyrighted content). 4) Review the vendor/aliyun_asr code and the expected config file before using cloud ASR to ensure you are comfortable storing credentials in the specified path. 5) If you want to reduce network risk, prefer the local ASR path or run in an isolated environment; ensure required CLIs (bili, ffmpeg) are from trusted sources. Overall the package is coherent with its purpose, but verify and control any cloud credentials you supply and be aware of the data sent to the host model or external ASR endpoints.
功能分析
Type: OpenClaw Skill Name: bili-mindmap Version: 0.2.1 The 'bili-mindmap' skill bundle is designed to automate the creation of XMind mind maps from Bilibili videos by collecting metadata, subtitles, and comments, with support for ASR (Automatic Speech Recognition) fallbacks. The code utilizes the 'bili' CLI tool and external ASR providers like Aliyun and Moonshine, requiring network access and subprocess execution for 'ffmpeg' and 'bili' commands. While these are high-privilege operations, they are functionally necessary for the stated purpose and implemented using safe practices (e.g., passing command arguments as lists to subprocess.run). No evidence of malicious intent, data exfiltration, or harmful prompt injection was found in the scripts or markdown instructions.
能力评估
Purpose & Capability
The package and scripts perform exactly what the description says: use the `bili` CLI to collect metadata/subtitles/comments, optionally extract audio and run ASR (moonshine, parakeet, or Aliyun), then generate outline.md and render an .xmind file. The bundled Aliyun and moonshine ASR providers align with the declared ASR fallback behavior.
Instruction Scope
Runtime instructions and scripts are scoped to collecting video data, optional login via the `bili` CLI, optional audio extraction/ASR, and writing outline.md/.xmind. They will read and write files in the chosen output directory and (optionally) a local Aliyun config file in the user's home directory. The host-model workflow explicitly asks the platform model to read generated context (context.md / host_outline_prompt.md) and produce outline.md — this will transmit collected video text (subtitles, comments, AI summary) into the host model, which is expected but worth noting as a data flow.
Install Mechanism
There is no external install spec; the package is instruction+scripts only. That lowers install-time risk. The vendor code is bundled (Aliyun ASR and Moonshine ASR wrappers) but is local source, not a remote download. The scripts do call external commands (bili, ffmpeg) and make network calls for cloud ASR — which is normal for the stated functionality.
Credentials
The registry metadata declares no required env vars, which is broadly correct, but the code does respect optional environment/config values: PARAKEET_URL and PARAKEET_MODEL (for a local Parakeet transcription endpoint) and ALIYUN_ASR_CONFIG or a default ~/.openclaw/aliyun-asr-config.json (containing access_key_id/access_key_secret/app_key). Those are proportional to ASR fallback functionality, but users should be aware the vendor Aliyun code will read a config file (or environment override) that contains cloud credentials if Aliyun ASR is used.
Persistence & Privilege
The skill does not request 'always: true' or any elevated platform privilege. It does not modify other skills or global agent settings. It runs as-invoked and expects interactive steps (e.g., `bili login`) when required.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bili-mindmap
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bili-mindmap 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.1
Release 0.2.1: host workflow, Moonshine ASR, context cleanup, host outline prompt generation
v0.1.0
Initial release — turn Bilibili videos into XMind mind maps. - Summarizes Bilibili videos into structured mind maps for XMind, using subtitles, AI summary, comments, and ASR transcript fallback. - Designed to automate login, content fetching, transcription, and outline/mind map generation, supporting both Windows and Linux/macOS with smart ASR fallback. - Outputs mind maps with themes for video overview, content flow, key details, comments, and takeaways; subtitles or ASR are the main sources, with comments and summaries as supplements. - Clearly reports main content sources and handles missing or unavailable information transparently. - Provides troubleshooting tips for common failures and highlights required dependencies and pipeline steps.
元数据
Slug bili-mindmap
版本 0.2.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 2
常见问题

bili-mindmap 是什么?

Turn a Bilibili video URL or BV number into a human-like XMind mind map. Use when the user wants to collect subtitles, comments, AI summary, and transcript f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 365 次。

如何安装 bili-mindmap?

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

bili-mindmap 是免费的吗?

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

bili-mindmap 支持哪些平台?

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

谁开发了 bili-mindmap?

由 Magic Yang(@pzc163)开发并维护,当前版本 v0.2.1。

💬 留言讨论