Communitygithub.com

delorenj/skills - YouTube 內容工具

從 YouTube 影片中提取逐字稿,並將其轉換為摘要、討論串、部落格文章等結構化內容。

skills - YouTube 內容工具 是什麼?

這個技能專門處理 YouTube 影片內容,能自動提取逐字稿並根據使用者需求轉換成多種格式,例如重點摘要、時間戳章節列表、Twitter/X 討論串、部落格文章或精彩語錄。它支援各種 YouTube 網址格式(含短網址、Shorts、嵌入、直播連結),甚至可以直接接受 11 字元的影片 ID。 技能運作流程包含:使用輔助腳本擷取逐字稿、驗證內容有效性(若無匹配語言會自動降級嘗試)、必要時將長篇逐字稿拆成區塊處理(超過 50K 字元時分段再合併),最後轉換為使用者要求的格式。錯誤處理相當完整,能應對逐字稿停用、影片無法觀看、語言不匹配等狀況,並提供明確的替代方案。 此技能特別適合開發者、內容創作者或研究人員,能快速從影片中萃取關鍵資訊,節省手動觀看與整理的時間。支援平台包括 Claude Code、Cursor、Codex 等技術型 AI 代理,只需安裝 youtube-transcript-api 套件即可使用。

相容平台✓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 Q&A —— 觀眾針對擴展性與後續步驟提問

工作流程

  1. 擷取:使用輔助腳本搭配 --text-only --timestamps 參數,透過 uv run python3 執行。
  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.

相關技能