brainstorming
Explore user intent, requirements, and design options through collaborative dialogue before implementation. Use before building new features, components, or…
Extract subtitles/transcripts from YouTube videos. Triggers: "youtube transcript", "extract subtitles", "video captions", "视频字幕", "字幕提取", "YouTube转文字", "提取字幕".
$ npx -y skills add feiskyer/claude-code-settings --skill youtube-transcribe-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/youtube-transcribe-skillContext preview
The summary Claude sees to decide when to auto-load this skill.
Extract subtitles/transcripts from YouTube videos. Triggers: "youtube transcript", "extract subtitles", "video captions", "视频字幕", "字幕提取", "YouTube转文字", "提取字幕".
name: youtube-transcribe-skill description: 'Extract subtitles/transcripts from YouTube videos. Triggers: "youtube transcript", "extract subtitles", "video captions", "视频字幕", "字幕提取", "YouTube转文字", "提取字幕".'
Extract subtitles/transcripts from a YouTube video URL and save them as a local file.
Input YouTube URL: $ARGUMENTS
Confirm the input is a valid YouTube URL (supports `youtube.com/watch?v=`, `youtu.be/`, and `youtube.com/shorts/` formats). If no URL is provided via arguments, check the conversation context for a YouTube link.
Use command-line tools to quickly extract subtitles.
Execute `which yt-dlp`.
yt-dlp --cookies-from-browser=chrome --get-title "[VIDEO_URL]"
yt-dlp --cookies-from-browser=chrome --write-auto-sub --write-sub --sub-lang zh-Hans,zh-Hant,en --skip-download --output "<Video Title>.%(ext)s" "[VIDEO_URL]"
`yt-dlp` saves subtitles as `.vtt` or `.srt` files. Convert the downloaded file to plain `Timestamp Text` format:
1. Read the downloaded subtitle file (`.vtt` or `.srt`). 2. Strip VTT/SRT headers, styling tags, and duplicate lines. 3. Save as `<Video Title>.txt` with one `Timestamp Text` entry per line.
When the CLI method fails or `yt-dlp` is missing, use Chrome DevTools MCP to extract subtitles via browser UI automation.
Check if Chrome DevTools MCP tools are available (look for tools matching `chrome__new_page` or similar).
If Chrome DevTools MCP is **not** available and `yt-dlp` was **not** found in Step 2, stop and notify the user: "Unable to proceed. Please either install `yt-dlp` (for fast CLI extraction) or configure Chrome DevTools MCP (for browser automation)."
Use Chrome DevTools MCP `new_page` to open the video URL.
Use Chrome DevTools MCP `take_snapshot` to read the page accessibility tree.
The "Show transcript" button is usually hidden within the collapsed description area.
1. Search the snapshot for a button labeled **"...more"**, **"...更多"**, or **"Show more"** (in the description block below the video title). 2. Use Chrome DevTools MCP `click` to click that button.
1. Use Chrome DevTools MCP `take_snapshot` to get the updated UI. 2. Search for a button labeled **"Show transcript"**, **"显示转录稿"**, or **"内容转文字"**. 3. Use Chrome DevTools MCP `click` to click that button. 4. If the button is not found, the video may not have a transcript available — notify the user and stop.
Directly reading the accessibility tree for long transcript lists is slow and token-heavy. Use Chrome DevTools MCP `evaluate_script` to run this JavaScript instead:
() => {
const segments = document.querySelectorAll("ytd-transcript-segment-renderer");
if (!segments.length) return "BUFFERING";
return Array.from(segments)
.map((seg) => {
const time = seg.querySelector(".segment-timestamp")?.innerText.trim();
const text = seg.querySelector(".segment-text")?.innerText.trim();
return `${time} ${text}`;
})
.join("\n");
};If it returns `"BUFFERING"`, wait a few seconds and retry (up to 3 attempts).
1. Save the extracted text as `<Video Title>.txt`. 2. Use Chrome DevTools MCP `close_page` to release resources.
给 Claude Code 加上深度调研、图片生成、GitHub 自动化等能力,配好多模型切换,开箱即用。 OpenAI Codex 的配置和自定义 prompt 请参考 feiskyer/codex-settings。
Explore user intent, requirements, and design options through collaborative dialogue before implementation. Use before building new features, components, or…
Leverage OpenAI Codex/GPT models for autonomous code implementation, code review, and plan review. Triggers: "codex", "use gpt", "gpt-5", "let openai",…
Multi-agent research orchestration: split a research goal into parallel sub-goals, run each via headless `claude -p` subprocesses, aggregate results into a…
Fix GitHub issues end-to-end — analysis, branch creation, implementation, testing, and PR submission. Use whenever the user mentions fixing a GitHub issue,…
Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents. Use this skill whenever the user wants to review a PR,…
Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Use ONLY when the user explicitly names OpenAI or GPT as the provider: "gpt…