SkillsGrove
SkillsGrove/Vídeo corto y creadores/imjszhang/js-eyes/js-youtube-ops-skill

js-youtube-ops-skill

Instalación

$npx skills add https://github.com/imjszhang/js-eyes --skill js-youtube-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-youtube-ops-skill ~/.claude/skills/js-youtube-ops-skill
Instala por favor esta Agent Skill por mí: https://github.com/imjszhang/js-eyes/tree/9b65ea07169177c8eca1ed204bde3794c3264550/skills/js-youtube-ops-skill. Lee primero su SKILL.md y sus scripts, y solo instálala en mi carpeta de skills cuando hayas confirmado que es segura.

Resumen

Descripción original · MITYouTube 视频读取 skill,提供视频元数据与字幕读取能力。
El SKILL.md siguiente se reproduce de imjszhang/js-eyes (commit 9b65ea0) bajo la licencia MIT. El texto no se ha modificado; solo se omiten los metadatos de cabecera del archivo, las imágenes se muestran como enlaces y los archivos muy largos se truncan. Copyright 2026 imjszhang. Licencia: LICENSE. Solo se muestra el archivo de instrucciones; consulta el repositorio original para ver los scripts.

js-youtube-ops-skill

面向 YouTube 视频详情读取的 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 工具

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

CLI

node skills/js-youtube-ops-skill/index.js video "https://www.youtube.com/watch?v=xxxx"
node skills/js-youtube-ops-skill/index.js subtitles "https://www.youtube.com/watch?v=xxxx" --pretty

Recording

js-youtube-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-youtube-ops-skill/。

Ver el texto completo de la licencia (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.