yt-dlp

lwmxiaobei/yt-dlp-skill · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/lwmxiaobei/yt-dlp-skill --skill yt-dlp
0 commentsdiscussion
summary

Download videos and extract audio from 900+ platforms including YouTube, Twitter, TikTok, and Instagram.

  • Supports three core operations: video download with quality selection (best, 1080p, 720p, 480p), audio extraction in multiple formats (MP3, M4A, OPUS, FLAC, WAV), and URL detection from conversation text
  • Auto-detects video links in conversations and prompts user to download; handles single and multiple URLs with playlist support
  • Includes three Python scripts: download_video.py for
skill.md

yt-dlp Video Downloader Skill

This skill provides tools for downloading videos and extracting audio from various platforms using yt-dlp.

Features

  • Download videos from multiple platforms (YouTube, Twitter/X, Vimeo, TikTok, Instagram, Facebook, etc.)
  • Extract audio from videos
  • Auto-detect video URLs in conversations
  • Support for different quality settings and formats

Usage Patterns

1. Command-based Download

When user explicitly asks to download a video:

User: Download this video https://youtube.com/watch?v=...

Action: Extract URL and call download script

2. Auto-detection in Conversations

When conversation contains video URLs:

User: Check out this video https://twitter.com/... and let me know what you think

Action: Detect video URL, ask user if they want to download it

3. Audio Extraction

When user wants to extract audio only:

User: Extract the audio from https://youtu.be/...

Action: Use audio extraction script

Available Scripts

Note: Scripts are located in the scripts/ directory

download_video.py

Main video downloader with quality and format options.

Usage:

# Download video
scripts/download_video.py <url> -o <output_dir>

# Download with specific quality
scripts/download_video.py <url> --quality 720p
scripts/download_video.py <url> --quality audio  # For audio only

# Custom format selector
scripts/download_video.py <url> --format "bestvideo[height<=1080]+bestaudio/best"

# Extract info only
scripts/download_video.py <url> --info-only

Quality options: best, 1080p, 720p, 480p, audio

extract_audio.py

Extract audio from videos in various formats.

Usage:

# Extract as MP3 (default)
/scripts/extract_audio.py <url> -o <output_dir>

# Extract as M4A
/scripts/extract_audio.py <url> --format m4a

# Custom quality
/scripts/extract_audio.py <url> --quality 320

Formats: mp3, m4a, opus, flac, wav

extract_urls.py

Extract video URLs from text or files.

Usage:

# Extract from text argument
/scripts/extract_urls.py "Check https://youtube.com/watch?v=..."

# Extract from file
/scripts/extract_urls.py <file_path>

# Read from stdin
cat file.txt | /scripts/extract_urls.py

Video Platform Support

The skill recognizes URLs from:

  • YouTube (youtube.com, youtu.be)
  • Twitter/X (twitter.com, x.com)
  • Vimeo (vimeo.com)
  • TikTok (tiktok.com)
  • Instagram (instagram.com)
  • Facebook (facebook.com, fb.watch)
  • Twitch (twitch.tv, clips.twitch.tv)
  • Dailymotion (dailymotion.com)
  • Reddit (reddit.com)
  • Streamable (streamable.com)
  • And many more supported by yt-dlp

Workflow

When User Provides Video URL

  1. Extract URL from user's input using extract_urls.py
  2. Confirm with user what action to take:
    • Download video
    • Extract audio
    • Show video info
  3. Execute appropriate script based on user's choice
  4. Notify user of success/failure and file location

When Auto-detecting URLs

  1. Scan conversation text with extract_urls.py (can process stdin)
  2. If video URLs found, ask user: "I found video URLs in this conversation. Would you like me to download them?"
  3. If yes, proceed with download workflow
  4. If no, continue with conversation

Handling Multiple URLs

  • For single URL: Direct download
  • For multiple URLs: Ask user if they want to download all or select specific ones
  • Provide option to download as playlist if URLs are from the same source

Quality and Format Selection

When user doesn't specify preferences:

  • Default to best available quality
  • For audio: Default to MP3 at 192kbps

When options needed:

# Ask user for quality preference if not specified
# Options: best (default), 1080p, 720p, 480p, audio

# Ask for format if extracting audio
# Options: mp3 (default), m4a, opus, flac, wav

Error Handling

Common issues and solutions:

  1. yt-dlp not installed:

    • Check with yt-dlp --version
    • Install with pip install yt-dlp or brew install yt-dlp
  2. ffmpeg not installed (required for format conversion):

    • Install with brew install ffmpeg (macOS)
    • Or apt install ffmpeg (Linux)
  3. Video not available:

    • Check if URL is accessible
    • Some videos may require authentication
    • Age-restricted content may need cookies
  4. Network errors:

    • Retry download
    • Check internet connection

Dependencies

  • yt-dlp: Main video downloader
  • ffmpeg: Audio/video processing (required for format conversion)
  • python3 with standard library

All scripts are self-contained and use only built-in Python modules.

how to use yt-dlp

How to use yt-dlp on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add yt-dlp
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/lwmxiaobei/yt-dlp-skill --skill yt-dlp

The skills CLI fetches yt-dlp from GitHub repository lwmxiaobei/yt-dlp-skill and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/yt-dlp

Reload or restart Cursor to activate yt-dlp. Access the skill through slash commands (e.g., /yt-dlp) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.665 reviews
  • Ava Ramirez· Dec 16, 2024

    yt-dlp reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ava Sanchez· Dec 16, 2024

    Keeps context tight: yt-dlp is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Hiroshi Smith· Dec 12, 2024

    Registry listing for yt-dlp matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Alexander Kapoor· Dec 4, 2024

    We added yt-dlp from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Sakura Gupta· Dec 4, 2024

    Registry listing for yt-dlp matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Hiroshi Reddy· Nov 23, 2024

    Keeps context tight: yt-dlp is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Alexander Sharma· Nov 23, 2024

    Solid pick for teams standardizing on skills: yt-dlp is focused, and the summary matches what you get after install.

  • Alexander Brown· Nov 23, 2024

    Useful defaults in yt-dlp — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Rahul Santra· Nov 19, 2024

    yt-dlp is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Valentina Chen· Nov 15, 2024

    yt-dlp is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

showing 1-10 of 65

1 / 7