Xpersona
B

Bili Mindmap

CLAWHUB · Unverified

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...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ahj62dx6vrx81jzdz78s08583ja5j:bili-mindmap
  1. Install using `clawhub skill install s17ahj62dx6vrx81jzdz78s08583ja5j:bili-mindmap` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/pzc163/bili-mindmap before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-pzc163-bili-mindmap/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

25,439 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: bili-mindmap
description: 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 fallback, then generate structured notes or mind maps for a Bilibili video.
version: 0.2.1
metadata:
  clawdbot:
    emoji: ":brain:"
---

# 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 <video-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 <output-dir/outline.md> --output <output-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:

```bash
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 p

README.md

# bili-mindmap

`bili-mindmap` is a publishable single-skill directory for turning a Bilibili video URL or `BV` id into `outline.md` and an `.xmind` file. It collects video metadata, subtitles, AI summary, comments, and ASR fallback material when subtitles are missing.

## Recommended Architecture

The preferred architecture is now host-model-driven:

- Python collects the raw materials.
- The host platform's injected model reads `context.md` and `host_outline_prompt.md`, then writes `outline.md`.
- Python renders `outline.md` into `.xmind`.

This means:

- You do not need to manually configure an OpenAI-compatible API inside the skill for the high-quality path.
- `scripts/generate_outline.py` still exists, but only as a local fallback.

## Package Contents

- `SKILL.md`: main skill entry
- `agents/openai.yaml`: UI metadata
- `references/mindmap-outline-template.md`: target outline structure template
- `references/host-llm-outline-spec.md`: host-model outline rules
- `scripts/prepare_bili_context.py`: collects context and writes `context.md` plus `host_outline_prompt.md`
- `scripts/generate_outline.py`: local fallback outline generator
- `scripts/render_xmind.py`: pure Python `.xmind` exporter
- `scripts/run_bili_mindmap.py`: one-command runner with `host` and `local` workflows
- `vendor/aliyun_asr/`: bundled Aliyun transcription implementation

## External Dependencies

- `bili` must be installed.
- If audio fallback is needed, `bilibili-cli[audio]` is recommended.
- Moonshine ASR requires the Python dependencies in `requirements.txt`.
- Aliyun ASR requires the Aliyun config file.
- Parakeet requires a local transcription endpoint compatible with the OpenAI Transcriptions API.

## ASR Strategy

- `--asr-provider auto`: try `moonshine -> parakeet -> aliyun`
- `--asr-provider moonshine`: Moonshine only
- `--asr-provider parakeet`: Parakeet only
- `--asr-provider aliyun`: Aliyun only

## Recommended Usage

The preferred flow inside the host platform is:

1. Run `python scripts/prepare_bili_context.py` to generate `context.md` and `host_outline_prompt.md`.
2. Let the host model generate `outline.md` from that prepared prompt package.
3. Run `python scripts/render_xmind.py` to export `.xmind`.

If you want a one-command entry point, use:

```bash
python scripts/run_bili_mindmap.py   --source "https://www.bilibili.com/video/BV1ABcsztEcY"   --output-dir output/BV1ABcsztEcY   --workflow host   --login-if-needed   --transcribe-if-needed
```

Behavior:

- On the first run, if `outline.md` does not exist yet, the script prepares the materials and prints the paths to `context.md`, `host_outline_prompt.md`, and the expected `outline.md`.
- After the host model writes `outline.md`, run the same command again and the script will automatically detect the existing outline, reuse its root title for naming when possible, and export the final `.xmind`.
- If you omit `--output-dir`, the script now falls back to the stable default directory `output/<BV-or-slug>`, so 

_meta.json

{
  "ownerId": "kn7ehm56yn3ygz56ecy5pc7jfh823a5j",
  "slug": "bili-mindmap",
  "version": "0.2.1",
  "publishedAt": 1774530323015
}

references/host-llm-outline-spec.md

# Host LLM Outline Spec

## Goal

Generate an `outline.md` that feels like a human-organized mind map rather than a transcript or ASR chunk dump.

## Source Priority

1. Full subtitle text or ASR transcript
2. Video metadata such as title, author, link, duration, and metrics
3. Site AI summary as supplemental material
4. Hot comments as supplemental feedback and debate

If sources conflict, prefer subtitles or ASR over the AI summary and comments.

## Required Thinking Pattern

1. Infer the video's central thesis first.
2. Group the full source into 3-6 logical modules.
3. Name each module with an abstract topic label.
4. Distill cross-section conclusions into `核心内容`.
5. Preserve mechanisms, examples, evidence, data, and contrasts in `关键细节`.
6. Keep comments in `评论反馈` instead of letting them dominate the outline.

## Hard Requirements

- Use the video title as the root topic.
- Follow the template structure from `references/mindmap-outline-template.md`.
- Organize `内容脉络` by logic, not by transcript or ASR order.
- Use abstract topic labels instead of copying spoken transcript lines.
- Merge adjacent spans when they are explaining the same underlying idea.
- `核心内容` should contain synthesized conclusions, not timeline bullets.
- `关键细节` should stay concrete: mechanisms, evidence, cases, numbers, steps, or contrasts.
- Mark uncertainty explicitly instead of inventing facts.

## Failure Modes

- Bad: branch titles that still read like raw transcript sentences.
- Bad: treating each time slice or ASR segment as a sibling branch.
- Bad: repeating the same idea in both `内容脉络` and `核心内容`.
- Bad: letting comments replace the source transcript as the main structure.
- Good: short abstract titles that sound like a human summary.
- Good: a branch structure that reveals argument and causality instead of speaking order.

## Output Requirements

- Output clean Markdown only.
- Start with `# <video title>`.
- Use Markdown bullet indentation for hierarchy.
- Do not add prefaces, notes, or explanations outside the outline itself.

references/mindmap-outline-template.md

# 视频标题

- 视频概览
  - 链接 / BV 号
  - UP 主 / 频道
  - 发布时间
  - 主题一句话总结
- 内容脉络
  - 逻辑主题 1
    - 高度概括的论点
    - 形成这个论点的原因 / 机制 / 对比
  - 逻辑主题 2
    - 高度概括的论点
    - 形成这个论点的原因 / 机制 / 对比
  - 逻辑主题 3
    - 高度概括的论点
    - 形成这个论点的原因 / 机制 / 对比
- 核心内容
  - 核心观点 1
    - 最关键的论据 / 解释
  - 核心观点 2
    - 最关键的论据 / 解释
  - 核心观点 3
    - 最关键的论据 / 解释
- 关键细节
  - 方法 / 步骤 / 机制
  - 数据 / 案例 / 对比
  - 值得记住的细节
- 评论反馈
  - 高价值补充
  - 主要争议
  - 代表性反应
- 总结 / 行动项
  - 最值得记住的结论
  - 可转述的判断
  - 后续可延伸的问题

## LLM 整理规则

- 优先依据字幕或 ASR 全文组织主干,再用 AI 总结和热门评论补充。
- 先理解“视频在讲什么”,再组织思维导图,不要按字幕顺序机械切片。
- `内容脉络` 必须体现逻辑层级,例如:背景铺垫、问题提出、核心论证、亮点拆解、总结评价。
- 每个节点优先用抽象后的短句或短语,不要整句照抄口语字幕。
- 遇到明显的分点表达,例如“第一点 / 第二点 / 第三点”,要优先整理为并列结构。
- 把相近观点合并到同一分支,避免碎片化节点。
- 对来源不确定的内容单独标记为“评论补充”或“AI 总结补充”。
- 当原文只是情绪表达时,要尽量上提成观点,例如把“玩着很劸退”整理为“前期体验强调压抑与挫败感”。
- 如果材料不足以支持明确结论,要写“信息不足”而不是臆造。

Sponsored

Ads related to Bili Mindmap and adjacent AI workflows.