youtube-podcast-to-md

youtube-podcast-to-md is a skill for Codex from sanqi-cd/Sanqi-Skills. It costs 98 tokens per session (2,295 once invoked), scanned C, original, MIT.

A tool that turns YouTube podcast, interview, and long-video subtitles into organized Chinese Markdown notes. YouTube is a video-sharing site, and Markdown is plain text with simple formatting.

In plain words
What is it for?
Use it to create a short summary or a fuller Chinese transcript from a YouTube link, with source timestamps and fallback handling when subtitles are unavailable.
Why use it?
It saves time spent copying, translating, cleaning up, and structuring long spoken discussions while keeping timestamps and speaker information where available.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Good fit Use it to create a short summary or a fuller Chinese transcript from a YouTube link, with source timestamps and fallback handling when subtitles are unavailable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sanqi-cd/Sanqi-Skills --skill youtube-podcast-to-md
Clone the repo
git clone --depth 1 https://github.com/sanqi-cd/Sanqi-Skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for youtube-podcast-to-md

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md/github.svg)](https://agentmods.dev/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md)
Your own site
<a href="https://agentmods.dev/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md"><img src="https://agentmods.dev/badge/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for youtube-podcast-to-md

Your own site · 80×15
<a href="https://agentmods.dev/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md"><img src="https://agentmods.dev/badge/skills/sanqi-cd/sanqi-skills/youtube-podcast-to-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,295 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.02295
Opus 5 $0.00049 $0.01148
Sonnet 5 $0.00020 $0.00459
Haiku 4.5 $0.00010 $0.00230

Measured 12d ago against content hash 86c2676bdd47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

youtube-podcast-to-md scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/clean_transcript.py, scripts/fetch_transcript.py, scripts/fetch_with_whisper.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

trap 'rm -rf -- "$TMP_DIR"' EXIT
youtube-podcast-to-md/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

YouTube 播客 → 中文 Markdown

概述

将 YouTube 播客视频的字幕提取,整理为高质量中文 Markdown 文档,默认针对英文播客优化;其他语言也可尽力处理。两种输出模式:

  • 精简版(summary):提取核心观点、关键数据、结构化摘要,过滤闲聊和重复表达
  • 完整版(full):高保真还原整个对话,保留对话结构、论述逻辑和信息完整性,经轻度书面化处理后呈现为自然流畅的中文对话

工作流(必须按顺序执行)

全局约定:

  • 临时根目录默认使用 ${YTP2MD_TMP_DIR:-/tmp/youtube-podcast-to-md/},每次任务必须在其中创建独立运行目录
  • 最终 Markdown 默认输出到 ${YTP2MD_OUTPUT_DIR:-$PWD};若用户想直接落到某个笔记库或知识库目录,请显式把 YTP2MD_OUTPUT_DIR 指向目标目录
  • 任务结束后只清理本次独立运行目录,不删除用户指定的临时根目录
  • 本技能可任意目录下执行,不依赖当前工作目录
  • 所有命令使用 python3
  • yt-dlp 可以直接在 PATH 中可用,或通过 python3 -m yt_dlp 可用;不要依赖某台机器上的固定 PATH
  • 运行脚本时,把 SKILL_DIR 视为当前 skill 根目录(即包含本 SKILL.md 的目录)

Step 1:确认输入参数

从用户消息中提取:

  • URL:YouTube 视频链接
  • 模式:精简版 or 完整版;用户未指定时默认精简版,只有高保真要求明显影响成本或结果时再确认

Step 2:环境准备

SKILL_DIR="/absolute/path/to/youtube-podcast-to-md"
TMP_ROOT="${YTP2MD_TMP_DIR:-/tmp/youtube-podcast-to-md}"
OUTPUT_DIR="${YTP2MD_OUTPUT_DIR:-$PWD}"

mkdir -p "$TMP_ROOT" "$OUTPUT_DIR"
TMP_DIR="$(mktemp -d "$TMP_ROOT/run.XXXXXX")"
trap 'rm -rf -- "$TMP_DIR"' EXIT

python3 -m venv "$TMP_ROOT/.venv"
PYTHON="$TMP_ROOT/.venv/bin/python"
"$PYTHON" -m pip install --quiet -r "$SKILL_DIR/requirements.txt"

若需 Whisper 兜底,额外安装以下其一:

"$PYTHON" -m pip install --quiet -r "$SKILL_DIR/requirements-whisper.txt"

Whisper 还要求系统可调用 ffmpeg。安装失败时报告缺失依赖,不要静默退回不可靠结果。

Step 3:获取字幕

运行 "$PYTHON" "$SKILL_DIR/scripts/fetch_transcript.py" <URL> "$TMP_DIR",脚本按优先级自动选择:

  1. YouTube 手动上传的英文字幕(质量最高)
  2. YouTube 自动生成的英文字幕
  3. YouTube 上其他可用字幕(自动适配)
  4. 若以上均不可用 → 运行 "$PYTHON" "$SKILL_DIR/scripts/fetch_with_whisper.py" <URL> "$TMP_DIR" 使用 Whisper 离线转录

补充说明:

  • fetch_transcript.py 会优先拿英文字幕;如果只有其他语言字幕,会继续返回该语言字幕
  • fetch_with_whisper.py 默认使用 --language auto 自动识别语言;若你明确只想按英文转录,可传 --language en

中间文件(位于 "$TMP_DIR"):

  • transcript_raw.txt — 原始字幕文本(含 [TS:MM:SS] 时间戳标记)
  • transcript_meta.json — 视频元数据(标题、频道、时长、字幕来源等)

Step 4:字幕清洗与分块

运行 "$PYTHON" "$SKILL_DIR/scripts/clean_transcript.py" "$TMP_DIR/transcript_raw.txt" "$TMP_DIR",执行:

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 182 lines · 98 tokens per session scan C 86c2676bdd47

Subscribe to this mod's changes

youtube-podcast-to-md is a skill published in the GitHub repository sanqi-cd/Sanqi-Skills (27 stars, last pushed 10d ago), licensed MIT. It adds 98 tokens to every session and 2,295 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style continuous motion, shapes that grow / move / rotate as the slide advances. Trigger on: 'morph', 'morph transition', 'smooth transition', 'continuous animation across slides', 'Keynote-style…

iOfficeAI/OfficeCLI · 169 tokens

officecli-financial-model

Use this skill when the user wants to build a financial model — 3-statement model, DCF valuation, LBO, SaaS unit economics, sensitivity / scenario analysis, debt schedule, or fundraising projections — in Excel. Trigger on: 'financial model', '3-statement model', 'P&L + BS + CF', 'DCF', 'WACC', 'NPV', 'terminal value'…

iOfficeAI/OfficeCLI · 222 tokens

officecli-word-form

Use this skill to create fillable Word forms (.docx) with real Content Controls (SDT) + legacy FormField checkboxes + MERGEFIELD mail-merge placeholders + document protection. Trigger on: 'fillable form', 'form fields', 'content controls', 'SDT', 'word form', 'fill in', 'only editable fields', 'protect document'…

iOfficeAI/OfficeCLI · 224 tokens

officecli-academic-paper

Use this skill to build academic-style .docx output: journal / conference / thesis chapters carrying formal citation style (APA, Chicago, IEEE, MLA), numbered equations, figure & table cross-references, footnotes/endnotes, bibliography, or multi-column journal layout. Trigger on: 'research paper', 'journal paper'…

iOfficeAI/OfficeCLI · 141 tokens

officecli-docx

Use this skill any time a .docx file is involved -- as input, output, or both. This includes: creating Word documents, reports, letters, memos, or proposals; reading, parsing, or extracting text from any .docx file; editing, modifying, or updating existing documents; working with templates, tracked changes, comments…

iOfficeAI/OfficeCLI · 114 tokens

officecli-pptx

Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with…

iOfficeAI/OfficeCLI · 106 tokens