New to Claude Skills? Learn how to install them →

nousresearch on GitHub

YouTube Content Tool

Free

Transform YouTube transcripts into structured content.

Get this skill

Free · Opens the source repo

What YouTube Content Tool does

The YouTube Content Tool is designed to assist users in extracting and transforming transcripts from YouTube videos into various structured formats. By simply providing a YouTube URL, users can fetch the transcript of a video and convert it into useful outputs such as summaries, chapters, blog posts, and social media threads. This tool is particularly beneficial for content creators, educators, and researchers who need to distill video content into concise and organized formats for easier consumption and sharing.

The tool operates through a helper script that utilizes the youtube-transcript-api library to fetch transcripts in different formats. Users can specify options such as text-only output, inclusion of timestamps, and even language preferences. Once the transcript is obtained, it can be reformatted based on user requests, allowing for flexibility in how the information is presented. Whether you need a brief summary, detailed chapter breakdowns, or a full blog post, this tool streamlines the process of content extraction and transformation.

To get started, users need to set up the tool in a Hermes-managed environment and run the provided script with the desired parameters. The workflow includes fetching the transcript, validating its content, and transforming it into the requested format. The tool also includes error handling to manage common issues such as disabled transcripts or unavailable videos, ensuring a smoother user experience.

Overall, the YouTube Content Tool is an essential resource for anyone looking to leverage video content for educational or promotional purposes, making it easier to digest and repurpose information from YouTube.

When to use it

Use this tool when you need to extract, summarize, or reformat content from YouTube videos for various applications.

When not to use it

This tool is not suitable for videos without available transcripts or for users who require real-time video analysis.

What you can build with it

Content Creation

Easily extract and summarize video content for blog posts or articles.

Educational Resources

Generate structured summaries for educational videos to aid in learning.

Social Media Engagement

Transform video insights into concise Twitter/X threads for audience engagement.

How to install YouTube Content Tool

View source

1. Install with the skills CLI

npx skills add nousresearch/hermes-agent/youtube-content --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by nousresearch

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 uv so the dependency is installed into the same Hermes-managed environment that runs the helper script:

uv pip install youtube-transcript-api

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
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID"

# Plain text (good for piping into further processing)
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --text-only

# With timestamps
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --timestamps

# Specific language with fallback chain
uv run python3 SKILL_DIR/scripts/fetch_transcript.py "URL" --language tr,en

Output 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 steps

Workflow

  1. Fetch the transcript using the helper script with --text-only --timestamps via uv run python3.
  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 --language to fetch any available transcript, then note the actual language to the user.
  • Dependency missing: run uv pip install youtube-transcript-api and retry.

Frequently asked questions about YouTube Content Tool

Similar skills