Communitygithub.com

YouTube 内容工具

将 YouTube 视频转录为摘要、推文线程和博客文章等多种格式。

YouTube 内容工具 是什么?

这是一个 AI 助手工具,专门用于处理 YouTube 视频内容。它能够从 YouTube 视频中提取转录文本,并将其转换为多种结构化格式,包括章节列表、视频摘要、章节摘要、Twitter/X 推文线程、博客文章以及带时间戳的引用语录。该工具通过一个 uv 管理的 Python 脚本来获取转录,支持标准 YouTube 网址、短链接、Shorts、嵌入视频、直播链接以及纯视频 ID 等多种输入格式。工作流程包括获取转录、验证语言和非空内容、必要时对长文本进行分块处理、按用户要求格式转换输出,以及最终校验结果的完整性和一致性。该工具主要适用于总结视频、提取关键信息、创建社交媒体内容或撰写博客帖子等场景。支持的语言链(如 `--language tr,en`)让用户能够在多语言转录可用时选择特定语言,从而提升灵活性和可用性。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/delorenj/skills/tree/HEAD/youtube-content

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

YouTube 内容工具 是做什么的?

何时使用

当用户分享 YouTube 网址或视频链接、要求总结视频、请求转录、或希望从任何 YouTube 视频中提取内容并重新格式化时使用。将转录文本转换为结构化内容(章节、摘要、推文线程、博客文章)。

从 YouTube 视频中提取转录并将其转换为有用的格式。

设置

使用 uv 将依赖安装到同一个由 Hermes 管理的环境中,该环境运行辅助脚本:

uv pip install youtube-transcript-api

辅助脚本

SKILL_DIR 是包含此 SKILL.md 文件的目录。该脚本接受任何标准 YouTube 网址格式、短链接(youtu.be)、Shorts、嵌入视频、直播链接或原始的 11 字符视频 ID。

# 带元数据的 JSON 输出
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID"

# 纯文本(适合直接用于后续处理)
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --text-only

# 带时间戳
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --timestamps

# 特定语言及回退链
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --language tr,en

输出格式

获取转录后,根据用户要求进行格式化:

  • 章节:按主题转换分组,输出带时间戳的章节列表
  • 摘要:整个视频的简练概述(5-10 句话)
  • 章节摘要:每个章节附一段简短段落摘要
  • 推文线程:Twitter/X 推文格式 — 编号帖子,每条不超过 280 个字符
  • 博客文章:包含标题、章节和关键要点的完整文章
  • 引用语录:带时间戳的精彩引述

示例 — 章节输出

00:00 引言 — 主持人以问题陈述开场
03:45 背景 — 先前工作以及现有解决方案的不足之处
12:20 核心方法 — 对提出方法的逐步讲解
24:10 结果 — 基准比较和关键要点
31:55 问答环节 — 观众关于可扩展性和下一步计划的问题

工作流程

  1. 获取:使用辅助脚本通过 uv run python3 并加上 --text-only --timestamps 选项获取转录。
  2. 验证:确认输出非空且为预期语言。如果为空,则在不带 --language 的情况下重试,以获取任何可用的转录。如果仍然为空,则告知用户该视频可能已禁用转录功能。
  3. 必要时分块:如果转录超过约 50K 字符,则将其拆分为重叠块(约 40K 字符,重叠 2K),分别总结每个块后再合并。
  4. 转换:按照用户要求的输出格式进行转换。如果用户没有指定格式,则默认输出摘要。
  5. 验证:重新阅读转换后的输出,检查连贯性、时间戳正确性和完整性,然后再呈现给用户。

错误处理

  • 转录已禁用:告知用户;建议他们检查视频页面是否有字幕可用。
  • 私密或不可用的视频:传递错误信息,并请用户确认网址是否正确。
  • 没有匹配的语言:在不带 --language 的情况下重试,以获取任何可用的转录,然后向用户说明实际语言。
  • 缺少依赖:运行 uv pip install youtube-transcript-api 并重试。

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

delorenj/skills

Plan and generate terminal ASCII animations/screensaver-style output (FPS, refresh rules, loop policy, low-flicker guidance), with a static poster frame and an optional local demo script.

delorenj/skills

ASCII video: convert video/audio to colored ASCII MP4/GIF.

delorenj/skills

Plan, build and quality-check a premium short commercial for a real business (roofing, property, ecommerce, B2B software) using AI-generated footage, code-built motion (HTML/GSAP), selective Three.js and an independent-critic "Gauntlet" loop. Use when asked to make a launch-style / SaaS-style video, business ad, explainer, sample reel or pitch video, or to review and improve one. Encodes motion principles distilled from 28 professional launch films, a quality bar, audio rules and a business-offer playbook.

delorenj/skills

CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering.

delorenj/skills

Generate professional voiceovers using ElevenLabs AI. Use when the user needs to create voiceovers for videos, audio narration, or text-to-speech content. Supports multiple voices with character presets (narrator, salesperson, expert) for natural delivery. Includes single scene regeneration for fine-tuning.

delorenj/skills

HyperFrames CLI dev loop — `npx hyperframes` for scaffolding (init), validation (lint, inspect), preview, render, and environment troubleshooting (doctor, browser, info, upgrade). Use when running any of these commands or troubleshooting the HyperFrames build/render environment. For asset preprocessing commands (`tts`, `transcribe`, `remove-background`), invoke the `hyperframes-media` skill instead.

delorenj/skills

Asset preprocessing for HyperFrames compositions — text-to-speech narration (Kokoro), audio/video transcription (Whisper), and background removal for transparent overlays (u2net). Use when generating voiceover from text, transcribing speech for captions, removing the background from a video or image to use as a transparent overlay, choosing a TTS voice or whisper model, or chaining these (TTS → transcribe → captions). Each command downloads its own model on first run.

delorenj/skills

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, and registry discovery.

delorenj/skills

Create video compositions, animations, title cards, overlays, captions, voiceovers, audio-reactive visuals, and scene transitions in HyperFrames HTML. Use when asked to build any HTML-based video content, add captions or subtitles synced to audio, generate text-to-speech narration, create audio-reactive animation (beat sync, glow, pulse driven by music), add animated text highlighting (marker sweeps, hand-drawn circles, burst lines, scribble, sketchout), or add transitions between scenes (crossfades, wipes, reveals, shader transitions). Covers composition authoring, timing, media, and the full video production workflow. For dev-loop CLI commands (init, lint, inspect, preview, render) see the hyperframes-cli skill; for asset preprocessing commands (tts, transcribe, remove-background) see the hyperframes-media skill.

delorenj/skills

Manim CE animations: 3Blue1Brown math/algo videos.

delorenj/skills

Join a Google Meet or Zoom call as a video meeting agent via PikaStreaming. Trigger: user drops a Google Meet or Zoom link, or asks to join a meeting.

delorenj/skills

Translate an existing Remotion (React-based) video composition into a HyperFrames HTML composition. Use ONLY when the user explicitly asks to port, convert, migrate, translate, or rewrite a Remotion composition as HyperFrames (e.g. "port my Remotion project to HyperFrames"). Do NOT use when (a) authoring a NEW HyperFrames composition (even if A/B-testing a Remotion video); (b) Remotion is mentioned in passing; (c) Remotion code is shared as reference, not for translation; (d) the user wants "the same video as my Remotion one" without explicitly asking to migrate the source — treat as a fresh HyperFrames build. When in doubt, default to the `hyperframes` skill. Detects unsupported patterns (useState, useEffect side effects, async calculateMetadata, third-party React component libraries, `@remotion/lambda`) and recommends the runtime interop escape hatch instead of a lossy translation.

delorenj/skills

Generate speech using the self-hosted voxxy (vox) TTS service at https://vox.delo.sh. Use when the user asks to speak, say, narrate, synthesize speech, clone a voice, create a voice, add or register a voice, pipe TTS, or control voice qualities by description (e.g. "a young woman with a cheerful voice"). Handles HTTP API usage, voice profile management, description-based voice design, cloning, MCP registration, and integration patterns for new platforms.

delorenj/skills

Capture a website and create a HyperFrames video from it. Use when: (1) a user provides a URL and wants a video, (2) someone says "capture this site", "turn this into a video", "make a promo from my site", (3) the user wants a social ad, product tour, or any video based on an existing website, (4) the user shares a link and asks for any kind of video content. Even if the user just pastes a URL — this is the skill to use.

相关技能