用途:在需要搜索 YouTube、查找某主题视频或做调研时,调用该技能获取结构化、已格式化的视频结果及互动指标。
主要能力:使用 yt-dlp 搜索 YouTube,每条结果包含标题、频道名称与订阅数、播放量、时长、上传日期、互动比(播放量/订阅数,越高表示越超出该频道基准)以及直接 URL。结果之间用分隔线隔开,便于浏览。状态信息(搜索、过滤)输出到 stderr,格式化结果输出到 stdout。
使用方式:运行搜索脚本 python "~/.claude/skills/yt-search/scripts/search.py" <query> [--count N] [--months N] [--no-date-filter] 参数:<query> 为搜索词(必填);--count N 为返回结果数(默认 20);--months N 仅显示最近 N 个月的视频(默认 6);--no-date-filter 包含任意时间的视频。 示例: python "~/.claude/skills/yt-search/scripts/search.py" claude code tutorial python "~/.claude/skills/yt-search/scripts/search.py" obsidian workflow --count 5 --months 3 python "~/.claude/skills/yt-search/scripts/search.py" AI agents --count 10 --no-date-filter
限制:需先安装 yt-dlp(pip install yt-dlp)。脚本会抓取请求数量的 2 倍以补偿日期过滤。订阅数来自 yt-dlp 元数据,偶尔可能不可用,显示为 N/A。其余平台支持、收费与价格信息暂未提供。