📺

YouTube 秒变 Telegraph 图文文章

youtube-instant-article · v5.2
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
内容创作 安全 A 级 作者 viticci 公开目录收录
4.5k 下载 948 安装 21.3k 收藏 12.5k 浏览

简介

基于 OpenAI GPT-5.2 的 YouTube 视频智能转文章工具,一键生成带时间戳和视觉幻灯片的 Telegraph 即时预览文章,适合 Telegram 内容分享与知识管理。

原始描述

Transform YouTube videos into Telegraph Instant View articles with visual slides and timestamped summaries. Use this skill whenever a user shares a YouTube URL (youtube.com or youtu.be) and asks to summarize, explain, or process the video. This is the DEFAULT skill for all YouTube video requests - do NOT use the generic summarize tool for YouTube.

通过你的 Agent 添加

安装目录:youtube-instant-article/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/youtube-instant-article/
Codex CLI~/.codex/skills/youtube-instant-article/
DeepSeek Harness~/.agents/skills/youtube-instant-article/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

youtube-instant-article 是一款专为 YouTube 视频设计的自动化内容转换工具。用户只需提供 YouTube 链接,系统即可自动提取视频标题、关键帧画面、生成带时间戳的智能摘要,最终输出为 Telegraph 平台的 Instant View 文章。整个流程通过 generate.sh 脚本一键完成,无需手动干预。

使用方式极为简洁:通过 Bash 命令加载环境变量后调用脚本,传入 YouTube URL 即可。支持 --slides-max 参数控制幻灯片数量,以及 --debug 模式保留临时文件用于排查问题。典型处理时间为 20-60 秒,具体取决于视频长度。

显著优点

深度集成 Telegram 生态:生成的 Telegraph 文章支持 Instant View 即时预览,在 Telegram 内即可获得原生 App 般的阅读体验,无需跳转外部浏览器。

视觉化内容呈现:不同于纯文本摘要,该工具提取关键帧作为视觉幻灯片,并将图片智能穿插在时间戳段落之间,形成图文交织的阅读节奏,显著提升信息吸收效率。

高质量 AI 摘要:采用 OpenAI GPT-5.2 模型,能在 4-5 秒内生成结构化摘要,自动识别关键时间节点、核心论点与精彩引语,并以 blockquote 形式突出显示。

零配置图床方案:使用 catbox.moe 作为图片托管服务,无需 API 密钥、无过期限制、CDN 稳定可靠,大幅降低用户使用门槛。

潜在缺点与局限性

多服务依赖风险:功能链条涉及 OpenAI API、Telegraph API、catbox.moe 图床、YouTube 解析等多个外部服务,任一环节故障都会导致整体不可用。特别是 catbox.moe 作为免费服务,存在服务稳定性隐患。

隐私数据外传:视频帧画面需上传至第三方图床,视频内容需发送至 OpenAI API 处理,不适合处理敏感或私密视频内容。

平台锁定效应:输出格式强绑定 Telegraph 平台,若 Telegraph 服务政策变更或受限,历史内容可能受影响。

安装依赖复杂:除标准工具外,需从第三方 Homebrew tap 安装 summarize 工具,增加了供应链审计成本。

适合的目标群体

  • Telegram 内容创作者:需要将视频内容快速转化为适合频道推送的图文格式
  • 知识管理用户:构建个人视频学习笔记库,利用时间戳实现精准回顾
  • 社交媒体运营者:为 YouTube 视频制作引流摘要,提升跨平台传播效率
  • 研究与记者:快速消化长视频内容,提取关键论点与引语用于引用

使用风险

网络连通性要求:所有核心功能依赖外网服务,离线环境完全无法使用。

API 成本累积:OpenAI GPT-5.2 调用按 token 计费,高频使用需关注费用支出。

Instant View 延迟:Telegram 对新页面生成 Instant View 需 1-2 分钟,非即时可用。

临时文件管理:DEBUG 模式下临时文件保留,可能意外泄露处理过程中的视频帧截图。

版本兼容性:脚本依赖 zsh 的关联数组特性,纯 bash 环境无法运行。

技能正文


name: youtube-instant-article description: Transform YouTube videos into Telegraph Instant View articles with visual slides and timestamped summaries. Use this skill whenever a user shares a YouTube URL (youtube.com or youtu.be) and asks to summarize, explain, or process the video. This is the DEFAULT skill for all YouTube video requests - do NOT use the generic summarize tool for YouTube. argument-hint: allowed-tools: Bash(summarize:), Bash(curl:), Bash(jq:*)

YouTube Instant Article

Transform YouTube videos into Telegraph Instant View articles with visual slides and timestamped summaries.

When to Use

ALWAYS use this skill when:

  • User shares a YouTube URL (any youtube.com or youtu.be link)
  • "Summarize this video"
  • "What's this video about?"
  • "Turn this into an article"
  • "Give me the gist of this video"

Only use generic summarize for:

  • Non-YouTube URLs (articles, websites, PDFs)
  • Explicit "just give me the transcript" requests

Quick Start

source /Users/viticci/clawd/.env && {baseDir}/scripts/generate.sh "$ARGUMENTS"

Options

Flag Default Description
--slides-max N 6 Maximum slides to extract
--debug off Keep temp files for debugging

Environment Variables

Required environment variables are loaded from /Users/viticci/clawd/.env:

  • TELEGRAPH_TOKEN - Telegraph API access token
  • OPENAI_API_KEY - For GPT-5.2 summarization

Output

Telegraph Instant View article with:

  • 📺 Video link at top
  • 🖼️ Slides interleaved with timestamped sections
  • ⏱️ Key moments with timestamps
  • 💬 Notable quotes as blockquotes
  • ✨ Proper title from YouTube

Architecture

YouTube URL
    │
    ├─► summarize --extract (get video title)
    │
    ├─► summarize --slides (extract key frames)
    │
    ├─► summarize --timestamps (GPT-5.2 summary)
    │
    ├─► catbox.moe (upload images)
    │
    └─► Telegraph API (create article)

Key Features

Image Hosting: catbox.moe

  • No API key required
  • No expiration
  • Reliable CDN
  • Direct URL embedding

LLM: OpenAI GPT-5.2

  • Fast (~4-5 seconds)
  • High quality summaries
  • Automatic timestamp extraction

Layout: Interleaved Images

  • Images distributed across timestamp sections
  • Not grouped at top
  • Each major section gets a relevant slide

⚠️ Important Notes

Instant View Timing

Telegram needs 1-2 minutes to generate Instant View for new pages. If the ⚡ button doesn't appear immediately, wait and try again.

Script Requirements

  • Uses zsh (not bash) for associative array support
  • Requires: summarize, jq, curl
  • Optional: ffmpeg (for local video processing)

Always Use the Script

NEVER manually create Telegraph content. Always use generate.sh:

  • Ensures proper h4 headers (required for Instant View)
  • Distributes images correctly
  • Extracts video title automatically

Dependencies

  • summarize v0.10.0+ (brew install steipete/tap/summarize)
  • jq (brew install jq)
  • curl (pre-installed on macOS)
  • OpenAI API key with GPT-5.2 access

Processing Time

Video Length Approx. Time
< 15 min 20-30s
15-30 min 30-45s
30+ min 45-60s+

Troubleshooting

"Failed to get summary"

  • Check OPENAI_API_KEY is set
  • Verify API key has GPT-5.2 access
  • Try with --debug flag

No Instant View button

  • Wait 1-2 minutes for Telegram to process
  • Verify article has content (not empty)
  • Check images loaded (visit Telegraph URL directly)

Images not showing

  • catbox.moe might be temporarily down
  • Check upload succeeded in debug output
  • Verify URLs are HTTPS

正文来自原始仓库, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/viticci/youtube-instant-article

标签

content-mediaproductivityautomationapidocs

同类 Skill