Downloads YouTube video subtitles via yt-dlp, cleans VTT into Markdown with frontmatter, and generates capture seeds for knowledge base ingestion. For single video URLs only.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
适用场景:
/ingest-youtube <url>,针对单条视频。不该用(负边界):
yt-dlp -f best。--days 时间窗批量入库 —— 本脚本每次只处理一条视频 URL。yt-dlp --write-auto-sub 并输出到 stdout。yt-dlp 已安装;未安装则退出并提示安装方式:brew install yt-dlp(macOS)或 pip3 install --user yt-dlp。yt-dlp --ignore-config --list-subs -- <url> 枚举可用字幕。yt-dlp --write-sub --sub-lang <lang> --skip-download 下载最高优先级字幕为 VTT。默认语言偏好 en,es(英文优先、西语次之)。yt-dlp --print-json --skip-download 取视频元数据(标题、频道、上传日期、时长、video_id、URL)。External Inputs/YouTube/<channel-slug>/<YYYY-MM-DD>-<video-slug>.md。Meta/Captures/<YYYY-MM-DD>-youtube-<channel-slug>-<video-id>.md 生成写作种子 stub,落入 captures 聚合器。python3 ingest.py <youtube-url> [--vault <path>] [--lang <code>]
默认值:
--vault:$VAULT_ROOT 环境变量,或当前目录。--lang:en,es(英文优先、西语次之,匹配常见双语默认)。--whisper:预留的未来回退标志;当前版本在没有字幕时只写 stub,尚未实现本地转录。输出契约 —— 库文件 frontmatter:
---
type: external-input
source: youtube
video_id: <11-char ID>
url: https://www.youtube.com/watch?v=<id>
channel: <channel-name>
channel_url: https://www.youtube.com/<handle>
title: <video title>
upload_date: <YYYY-MM-DD>
duration_seconds: <int>
language: <ISO code>
subtitle_source: manual | auto | whisper
word_count: <int>
ingested_at: <ISO 8601 timestamp>
---
正文是清洗后的段落散文;源中有说话人标签时,每轮发言按 **<说话人>:** <文本> 格式排版。
对「史上第一条 YouTube 视频」做验收测试:
python3 ingest.py "https://www.youtube.com/watch?v=jNQXAC9IVRw" --vault /tmp/test
预期输出:
Wrote 39 words to /tmp/test/External Inputs/YouTube/jawed/2005-04-24-me-at-the-zoo.md. Language: en. Subtitle source: manual.
输出文件应包含合法 frontmatter 与干净的段落正文。
--list-subs 没有人工或自动字幕时,脚本写一条只含元数据和源 URL 的 stub 库笔记,而非静默失败。--whisper 当前会报告回退未实现。手动回退做法:用 yt-dlp 下载音频,用本地 Whisper 工作流转录,补上字幕/文字稿后再重跑入库。yt-dlp(必需,brew install yt-dlp 或 pip3 install --user yt-dlp);whisper-cpp(可选,仅用于脚本外的手动回退)。yt-dlp 行为。采编自 sickn33/antigravity-awesome-skills(原始 skill 捆绑于 adelaidasofia/ai-brain-starter),许可证 MIT。
What SKILL.md sets; muted values are Claude Code's defaults
/10-platform:youtube-transcript-ingestfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录Other plugins' skills for the same job