bilibili-downloader
- Repo stars 0
- Author updated Live
- Author repo skills
- Domain
- Other
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @guozheng07 · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- macOS · Windows
- Runtime requirements
- Python >=3.8
- Permissions
-
- Read-only
- Shell exec
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: bilibili-downloader
description: 本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性: 当用户输入以下关键词时触发本技能: 当用户选择固定时间点截图时,支持以下自然语言格式: 参考文档位于 reference/ 目…
category: other
runtime: Python
---
# bilibili-downloader output preview
## PART A: Task fit
- Use case: 本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性: 当用户输入以下关键词时触发本技能: 当用户选择固定时间点截图时,支持以下自然语言格式: 参考文档位于 reference/ 目录,包含详细的使用说明和技术文档。 用户:https://www.bilibili.com/bangumi/play/ep1231575 runs entirely locally; runs on Python >=3.8. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “功能介绍 / 触发条件 / 工作流程” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性: 当用户输入以下关键词时触发本技能: 当用户选择固定时间点截图时,支持以下自然语言格式: 参考文档位于 reference/ 目录,包含详细的使用说明和技术文档。 用户:https://www.bilibili.com/bangumi/play/ep1231575 runs entirely locally; runs on Python >=3.8. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “功能介绍 / 触发条件 / 工作流程” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, run shell commands, write/modify files.
Start with a small task and check whether the result follows “功能介绍 / 触发条件 / 工作流程”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: bilibili-downloader
description: 本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性: 当用户输入以下关键词时触发本技能: 当用户选择固定时间点截图时,支持以下自然语言格式: 参考文档位于 reference/ 目…
category: other
source: guozheng07/skills
---
# bilibili-downloader
## When to use
- 本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性: 当用户输入以下关键词时触发本技能: 当用户选择固定时间点截图时,支持以下自然语言格式: 参考文档位于 reference/ 目录,包含详细的使用说明和技术文档。 用户:h…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “功能介绍 / 触发条件 / 工作流程” and keep inference separate from source facts.
- read files, run shell commands, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "bilibili-downloader" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 功能介绍 / 触发条件 / 工作流程
rules -> SKILL.md triggers / order / output contract
runtime -> Python | read files, run shell commands, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Bilibili 视频下载与截图技能
功能介绍
本技能用于下载哔哩哔哩(B站)视频并提供截图功能,支持以下特性:
- 支持高清视频下载(默认4K)
- 支持cookie登录(可访问会员内容)
- 自动检测并转码不兼容编码(AV1/HEVC)
- 多种截图模式:固定时间点截图、等间隔截图
- 支持自然语言时间戳解析(如"26分26秒")
- 跨平台支持(Windows、macOS)
触发条件
当用户输入以下关键词时触发本技能:
- "下载b站"
- "B站视频下载"
- "下载哔哩哔哩视频"
- "b站视频截图"
工作流程
步骤1:获取视频链接
- 触发技能后,首先询问用户提供B站视频链接
- 等待用户输入视频链接
步骤2:获取Cookie信息
- 提示用户获取B站Cookie信息的方法:
- 使用浏览器访问B站并登录
- 安装Cookie-Editor插件
- 导出JSON格式的Cookie
- 复制Cookie内容并粘贴
- 等待用户输入Cookie信息
步骤3:下载视频
- 使用提供的Cookie信息和视频链接开始下载
- 默认下载最高清视频(4K)
- 默认下载路径:
- Windows:桌面\bilibili_downloads
- macOS:桌面/bilibili_downloads
- 显示下载进度
- 下载完成后显示视频保存位置
步骤4:截图操作
- 询问用户是否需要对下载的视频进行截图
- 如果用户选择是,说明支持的截图模式:
- 固定时间点截图:用户指定具体时间点
- 等间隔截图:按照指定时间间隔自动截图
- 根据用户选择的模式执行截图操作
步骤5:自然语言时间戳解析
当用户选择固定时间点截图时,支持以下自然语言格式:
- "26分26秒" → 转换为 "26:26"
- "1小时30分" → 转换为 "1:30:00"
- "15秒" → 转换为 "15"
脚本说明
本技能使用以下脚本:
scripts/bilibili_downloader.py:核心下载和截图功能scripts/chat_handler.py:处理用户输入和对话流程scripts/time_parser.py:自然语言时间戳解析
参考文档
参考文档位于 reference/ 目录,包含详细的使用说明和技术文档。
使用示例
示例1:基本下载流程
用户:下载b站
技能:请提供B站视频链接
用户:https://www.bilibili.com/bangumi/play/ep1231575
技能:请提供B站Cookie信息(JSON格式)
用户:[{"domain":".bilibili.com","name":"SESSDATA","value":"xxx"}]
技能:正在下载视频... 技能:视频下载完成,保存位置:桌面\bilibili_downloads\xxx.mp4 技能:是否需要对视频进行截图?
用户:是
技能:支持的截图模式:
- 固定时间点截图:例如"00:07:48"
- 等间隔截图:例如每10分钟一张 请选择截图模式并提供参数
用户:固定时间点,26分26秒
技能:正在截图... 技能:截图完成,保存位置:桌面\bilibili_downloads\screenshots
示例2:仅截图操作
用户:下载b站
技能:请提供B站视频链接
用户:https://www.bilibili.com/bangumi/play/ep1231575
技能:请提供B站Cookie信息(JSON格式)
用户:[{"domain":".bilibili.com","name":"SESSDATA","value":"xxx"}]
技能:正在下载视频... 技能:视频下载完成,保存位置:桌面\bilibili_downloads\xxx.mp4 技能:是否需要对视频进行截图?
用户:否
技能:操作完成,视频已保存到桌面\bilibili_downloads
注意事项
- 请确保只下载自己拥有版权或获得授权的内容
- Cookie信息具有时效性,过期后需要重新获取
- 部分视频可能需要B站大会员权限才能下载高清版本
- 下载和转码过程可能需要较长时间,请耐心等待
- 截图功能需要FFmpeg支持,请确保已安装
依赖要求
- Python 3.8+
- yt-dlp
- FFmpeg
- Cookie-Editor浏览器插件(用于获取Cookie)
错误处理
- 如果下载失败提示需要登录,请检查Cookie信息是否正确
- 如果视频无法播放,可能需要转码,请重新尝试
- 如果截图失败,请检查FFmpeg是否正确安装
输出格式
视频保存格式
桌面/bilibili_downloads/
├── 视频文件名_分辨率.mp4
└── screenshots/
├── 视频文件名_分辨率_screenshot_001_00-00-00.png
└── ...
截图命名格式
{视频名}_{分辨率}_screenshot_{序号}_{时间}.png
例如:凡人修仙传第167集_2160_screenshot_001_00-07-48.png
技能目录结构
bilibili-downloader/
├── SKILL.md # 技能配置和使用说明
├── scripts/ # 脚本目录
│ ├── bilibili_downloader.py # 核心下载和截图功能
│ ├── chat_handler.py # 用户对话处理
│ └── time_parser.py # 自然语言时间解析
└── reference/ # 参考文档目录
└── README.md # 参考文档
正确运行方法
方法1:从技能目录运行
# 打开命令提示符或 PowerShell
cd "C:\Users\Administrator\Desktop\bilibili-downloader\scripts"
python chat_handler.py
方法2:使用完整路径运行
# 打开命令提示符或 PowerShell
python "C:\Users\Administrator\Desktop\bilibili-downloader\scripts\chat_handler.py"
注意事项
- 正确路径:脚本位于
bilibili-downloader\scripts\目录下 - 避免错误:不要尝试从其他目录运行脚本,可能会导致路径错误
- 依赖检查:运行前请确保已安装 Python 3.8+、yt-dlp 和 FFmpeg
运行前准备
- 安装 Python:从官网下载并安装 Python 3.8 或更高版本
- 安装 yt-dlp:运行命令
pip install yt-dlp - 安装 FFmpeg:
- Windows:下载并解压到
C:\ffmpeg\bin,然后添加到系统环境变量 - 或使用 scoop 安装:
scoop install ffmpeg
- Windows:下载并解压到
Decide Fit First
Design Intent
How To Use It
Boundaries And Review