360 Secure SkillHub
360 安全技能中心

youtube-transcript

该 Skill 通过 yt-dlp 从 YouTube 视频提取去重后的纯文字字幕,支持指定字幕语言代码,可将结果写入文件或输出到标准输出;使用时由用户提供 YouTube 链接并运行随附的 Python 脚本,需要环境已安装 yt-dlp 与 Python 3.10 以上版本。

yuvadm
yuvadm
热度 49.28
最近更新 2026-08-04 00:35:37
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add yuvadm/youtube-transcript
Metadata
name
youtube-transcript
description
Fetch and save YouTube video transcripts as clean plain text. Use when the user provides a YouTube URL or wants to extract a transcript from a podcast, interview, or talk.

YouTube Transcript

Extracts clean, deduplicated plain-text transcripts from YouTube videos using yt-dlp.

Dependencies

  • yt-dlp (must be installed and on PATH)
  • Python 3.10+

Usage

Fetch a transcript and save it to a file:

python3 .pi/skills/youtube-transcript/yt_transcript.py "YOUTUBE_URL" -o transcript.txt

Options:

  • -l LANG — subtitle language code (default: en)
  • -o FILE — output file path (default: stdout)

Workflow

When the user gives a YouTube URL:

  1. Fetch transcript — Run the script, optionally with -o <path> to save to a file.
  2. Review — Read through the transcript and summarise the key points if the user asks.