youtube-summary
Summarize YouTube videos into structured Markdown with youtube2md, including chaptered notes, timestamp links, and key takeaways. Use when the user provides one or more YouTube URLs and asks for summaries, study notes, language-specific summaries, transcript extraction, or machine-readable JSON output.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- env
- [ { "name": "OPENAI_API_KEY", "required": false, "description": "Enables full summarization mode. When set, transcript content is sent to OpenAI. Omit to use extract-only mode with local summarization." } ]
- name
- youtube-summary
- description
- Summarize YouTube videos into structured Markdown with youtube2md, including chaptered notes, timestamp links, and key takeaways. Use when the user provides one or more YouTube URLs and asks for summaries, study notes, language-specific summaries, transcript extraction, or machine-readable JSON output.
03 SKILL.md 正文
YouTube Summary (youtube2md)
Use the official youtube2md CLI behavior from the repository.
Runtime + security prerequisites
- Require Node.js 18+.
- Require preinstalled
youtube2mdon PATH.- Recommended pinned install:
npm i -g youtube2md@1.0.1
- Recommended pinned install:
- Require python3 for transcript text preparation (
prepare.py) in extract mode. - Default runner uses local
youtube2mdexecutable only. - Runtime npm execution (
npx) is intentionally not supported in this skill. - The
YOUTUBE2MD_BINenvironment variable override is rejected by the runner. OPENAI_API_KEYenables full summarization mode; transcript/content may be sent to OpenAI through youtube2md’s workflow.- For sensitive content, omit
OPENAI_API_KEYand use extract mode.
- For sensitive content, omit
- In sensitive environments, audit the upstream
youtube2mdpackage and dependencies before installation or version bumps.
See references/security.md before first-time install/enable.
Workflow
-
Validate input
- Accept
youtube.comandyoutu.beURLs. - If URLs are missing, ask for one URL per line.
- Accept
-
Choose mode
- Full mode: generates Markdown.
- Use when
OPENAI_API_KEYis available and external API use is acceptable.
- Use when
- Extract mode (
--extract-only): outputs transcript JSON and prepares transcript text (.txt).- Use when API key is unavailable or when transcript-only output is requested.
- Prefer a no-error path: check key first and run extract directly when key is missing.
- Full mode: generates Markdown.
-
Run converter
- Preferred runner script:
scripts/run_youtube2md.sh <url> full [output_md_path] [language] [model]- If
OPENAI_API_KEYis missing, runner auto-falls back to extract mode by default.
- If
scripts/run_youtube2md.sh <url> extract [output_json_path]
- Optional machine-readable CLI output:
YOUTUBE2MD_JSON=1 scripts/run_youtube2md.sh <url> fullYOUTUBE2MD_JSON=1 scripts/run_youtube2md.sh <url> extract
- Runtime controls:
- Use only locally installed
youtube2mdexecutable. - Do not use runtime npm execution (
npx) for this skill.
- Use only locally installed
- Direct CLI equivalent:
youtube2md --url <url> [--out <path>] [--lang <language>] [--model <model>]- Add
--extract-onlyfor transcript-only mode.
- Preferred runner script:
-
Verify output
- Full mode: Markdown file exists and is non-empty.
- Extract mode: JSON file exists and is non-empty.
- Extract mode: prepared TXT file exists and is non-empty.
- If using
--json, parseok: true/falseand handle errorcode.
-
Respond to the user
- Follow
references/output-format.mdas the default response shape. - Follow
references/summarization-behavior.mdfor source policy and chapter/takeaway density. - Do not include generated local file path(s) in normal user-facing replies.
- Share file paths only when explicitly requested by the user (e.g., debugging/export workflows).
- Summary source policy:
- Full mode succeeded → use youtube2md Markdown output as the summary source.
- Non-full mode (extract) → use prepared
.txttranscript text as the summary source.
- Keep user-facing flow smooth: if key is missing, use extract output and summarize from
.txtwithout surfacing avoidable tool-error noise.
- Follow
Multi-video requests
- Process URLs sequentially.
- Return per-video summary results (omit local file paths unless requested).
- If any fail, report successful items first, then failures with fixes.
Built-in behavior to trust
- Default output paths:
- Full mode:
./summaries/<video_id>.md - Extract mode:
./summaries/<video_id>.json - Local runner post-process (extract):
./summaries/<video_id>.txtviaprepare.py
- Full mode:
Packaging hygiene
- Do not publish generated outputs (e.g.,
summaries/*.json,summaries/*.txt) inside the skill folder. - Keep only source files (
SKILL.md,scripts/,references/, helpers) in release artifacts.
Resources
- CLI runner:
scripts/run_youtube2md.sh - Transcript text prep:
prepare.py - Output guidance:
references/output-format.md - Behavior reference:
references/summarization-behavior.md - Security/install notes:
references/security.md - Troubleshooting and error codes:
references/troubleshooting.md
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.