youtube-content – skill Viết lách & Nội dung cho agent AI
Chuyển transcript YouTube thành tóm tắt, thread và blog.
Cài skill youtube-content bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-content-80f07.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /youtube-content – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-content-80f07.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $youtube-content – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-content-80f07.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /youtube-content – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-content-80f07.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /youtube-content – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
YouTube Content Tool
When to use
Use when the user shares a YouTube URL or video link, asks to summarize a video, requests a transcript, or wants to extract and reformat content from any YouTube video. Transforms transcripts into structured content (chapters, summaries, threads, blog posts).
Extract transcripts from YouTube videos and convert them into useful formats.
Setup
Use terminal with the Python from a PM-prepared Hermes source checkout. The
youtube extra declares the helper's dependency; do not install packages into
Hermes with raw pip or project-discovering uv run.
From that checkout, first follow the isolated development-home setup in
[Package Management](https://hermes-agent.nousresearch.com/docs/reference/package-management#developer-workflow),
then prepare the extra and reactivate before running the helper:
source ./activate
python -c "import pm; pm.sync_venv(['youtube'], explicit=True)"
source ./activate
python -c "import youtube_transcript_api; print(youtube_transcript_api.__file__)"On Windows, use . .\activate.ps1 instead of source ./activate. If the terminal
runs on a different host or in a sandbox, use an explicitly isolated helper
environment there, not the agent's production environment. Run every command
below with the interpreter whose import check succeeded.
Helper Script
SKILL_DIR is the directory containing this SKILL.md file. The script accepts any standard YouTube URL format, short links (youtu.be), shorts, embeds, live links, or a raw 11-character video ID.
# JSON output with metadata
python SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID"
# Plain text (good for piping into further processing)
python SKILL_DIR/scripts/fetch_transcript.py "URL" --text-only
# With timestamps
python SKILL_DIR/scripts/fetch_transcript.py "URL" --timestamps
# Specific language with fallback chain
python SKILL_DIR/scripts/fetch_transcript.py "URL" --language tr,enOutput Formats
After fetching the transcript, format it based on what the user asks for:
- Chapters: Group by topic shifts, output timestamped chapter list
- Summary: Concise 5-10 sentence overview of the entire video
- Chapter summaries: Chapters with a short paragraph summary for each
- Thread: Twitter/X thread format — numbered posts, each under 280 chars
- Blog post: Full article with title, sections, and key takeaways
- Quotes: Notable quotes with timestamps
Example — Chapters Output
00:00 Introduction — host opens with the problem statement
03:45 Background — prior work and why existing solutions fall short
12:20 Core method — walkthrough of the proposed approach
24:10 Results — benchmark comparisons and key takeaways
31:55 Q&A — audience questions on scalability and next stepsWorkflow
1. Fetch the transcript using terminal and the prepared Python with --text-only --timestamps.
2. Validate: confirm the output is non-empty and in the expected language. If empty, retry without --language to get any available transcript. If still empty, tell the user the video likely has transcripts disabled.
3. Chunk if needed: if the transcript exceeds ~50K characters, split into overlapping chunks (~40K with 2K overlap) and summarize each chunk before merging.
4. Transform into the requested output format. If the user did not specify a format, default to a summary.
5. Verify: re-read the transformed output to check for coherence, correct timestamps, and completeness before presenting.
Error Handling
- Transcript disabled: tell the user; suggest they check if subtitles are available on the video page.
- Private/unavailable video: relay the error and ask the user to verify the URL.
- No matching language: retry without
--languageto fetch any available transcript, then note the actual language to the user. - Dependency missing: repeat PM preparation and reactivation above, then verify the helper uses that Python. Do not repair the selected generation with pip.
Skill liên quan
- geo-content – Đánh giá chất lượng nội dung và E-E-A-T cho khả năng được AI trích dẫn — đánh giá…
- geo-llmstxt – Phân tích và tạo file llms.txt -- một quy ước đề xuất giúp các hệ thống AI hiểu cấu trúc…
- get-seen-in-replies – Viết phản hồi cho tweet của người khác sao cho đáng đọc ngay cả khi đứng riêng. Dùng khi…
- goal-instruction-writer – Xem trước, soạn thảo, tinh chỉnh hoặc kiểm toán các Goal bền vững cho agent, với bằng…
- guest-posting-opportunity-finder – Guest Posting Opportunity Finder. Dùng khi làm việc với chủ đề, đối tượng độc giả và…
- headline-analyzer – Headline Analyzer. Dùng khi làm việc với tiêu đề và tóm tắt bài viết dự kiến.
- healthcare-job-search – Tìm việc làm ngành y tế đang tuyển tại Mỹ (điều dưỡng, CNA, y tế đồng minh, trị liệu…
- hig-components-content – Hướng dẫn Apple Human Interface Guidelines cho các thành phần hiển thị nội dung.