技能图谱SKILLSGROVE
技能图谱/短视频与自媒体/imjszhang/js-eyes/js-bilibili-ops-skill

js-bilibili-ops-skill

安装

$npx skills add https://github.com/imjszhang/js-eyes --skill js-bilibili-ops-skill
$git clone --depth 1 https://github.com/imjszhang/js-eyes.git /tmp/js-eyes && mkdir -p ~/.claude/skills && cp -r /tmp/js-eyes/skills/js-bilibili-ops-skill ~/.claude/skills/js-bilibili-ops-skill
请帮我安装这个 Agent Skill:https://github.com/imjszhang/js-eyes/tree/9b65ea07169177c8eca1ed204bde3794c3264550/skills/js-bilibili-ops-skill ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITBilibili 视频读取 skill,提供视频元数据与字幕读取能力。
以下 SKILL.md 内容转载自 imjszhang/js-eyes(提交 9b65ea0),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 imjszhang 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

js-bilibili-ops-skill

面向 Bilibili 视频详情读取的 skill。首版聚焦视频元数据与字幕,不包含下载、音频导出和字幕抽轨。

前置条件

本 Skill 要求 Node.js 22+、JS Eyes 2.8.5+,直接调用本机 yt-dlp,不依赖 JS Eyes 浏览器扩展或 allowRawEval。

  1. 本机可用 yt-dlp
  2. 公开视频不要求登录;会员、年龄限制或私有视频需要提供 yt-dlp 可读取的浏览器 cookies
  3. 若后续扩展下载能力,需要 ffmpeg

提供的 AI 工具

工具 说明
bilibili_get_video 读取视频元数据,可选同时获取字幕
bilibili_get_subtitles 只读取字幕内容

CLI

node skills/js-bilibili-ops-skill/index.js video "https://www.bilibili.com/video/BVxxxx"
node skills/js-bilibili-ops-skill/index.js subtitles "https://www.bilibili.com/video/BVxxxx" --pretty

Recording

js-bilibili-ops-skill 现已接入统一的 skill recording 底座,支持调用历史、结果缓存和调试记录。

  • 默认记录模式跟随 js-eyes 全局配置中的 recording.mode
  • CLI 可覆盖:
    • --recording-mode off|history|standard|debug
    • --debug-recording
    • --no-cache
    • --recording-base-dir /absolute/path
    • --run-id custom-id

该技能的 debug 语义以子进程链路为主,重点记录:

  • yt-dlp 调用命令与参数摘要
  • 每次尝试的 exit code
  • stderr 摘要与 cookie fallback 情况

默认按技能分目录落盘到 ~/.js-eyes/skill-records/js-bilibili-ops-skill/。

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 imjszhang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.