yt-dlp

A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

Copy this and send it to your AI assistant to learn

Install skill "yt-dlp" with this command: npx skills add 1999azzar/yt-dlp

yt-dlp Skill

Overview

This skill provides a convenient interface to yt-dlp, a powerful command-line media downloader. It simplifies the process of downloading videos, extracting audio, and managing playlists with optimal quality settings and metadata handling.

Usage

  • Role: Media Archivist.
  • Trigger: "Download this video", "Get MP3 from YouTube", "Archive this channel".
  • Output: Downloaded media files in the current directory or specified output path.

Dependencies

  • yt-dlp: The core downloader (must be installed in PATH).
  • ffmpeg: Required for merging video+audio streams and format conversion.

Commands

scripts/download.sh

The primary entry point. It wraps yt-dlp with sensible defaults for high-quality archiving.

Syntax:

./scripts/download.sh <URL> [OPTIONS]

Defaults:

  • Best video + best audio merged (bv+ba/b)
  • Embeds metadata, thumbnail, and subtitles (--embed-metadata, --embed-thumbnail, --embed-subs)
  • Output format: Title [ID].mp4 (%(title)s [%(id)s].%(ext)s)

Examples:

  1. Download a single video (best quality):

    scripts/download.sh "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
    
  2. Download a playlist:

    scripts/download.sh "https://www.youtube.com/playlist?list=PL..."
    
  3. Extract Audio (MP3):

    scripts/download.sh "URL" -x --audio-format mp3
    
  4. Download specific resolution (e.g., 1080p):

    scripts/download.sh "URL" -f "bv*[height<=1080]+ba/b[height<=1080]"
    
  5. Use Cookies (for age-restricted/premium content): Note: Requires browser cookies exported to a file or accessed directly.

    scripts/download.sh "URL" --cookies-from-browser chrome
    

Installation & Security

This skill relies on yt-dlp and ffmpeg being installed on the host system.

  • Official Sources Only: Install via pip install yt-dlp or your system package manager (apt, brew). Avoid running curl scripts from untrusted sources.
  • Cookies: Use --cookies-from-browser with caution. For autonomous agents, prefer exporting a cookies.txt file manually to limit access to your active browser session.

Reference Guide

For advanced usage, see the comprehensive Usage Guide.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

arxiv-paper-writer

Use this skill whenever the user wants Claude Code to write, scaffold, compile, debug, or review an arXiv-style academic paper, especially survey papers with LaTeX, BibTeX citations, TikZ figures, tables, and PDF output. This skill should trigger for requests like writing a full paper, creating an arXiv paper project, turning a research topic into a LaTeX manuscript, reproducing the Paper-Write-Skill-Test agent-survey workflow, or setting up a Windows/Linux Claude Code paper-writing loop.

Archived SourceRecently Updated
Coding

cli-proxy-troubleshooting

排查 CLI Proxy API(codex-api-proxy)的配置、认证、模型注册和请求问题。适用场景包括:(1) AI 请求报错 unknown provider for model, (2) 模型列表中缺少预期模型, (3) codex-api-key/auth-dir 配置不生效, (4) CLI Proxy 启动后 AI 无法调用, (5) 认证成功但请求失败或超时。包含源码级排查方法:模型注册表架构、认证加载链路、 SanitizeCodexKeys 规则、常见错误的真实根因。

Archived SourceRecently Updated
Coding

visual-summary-analysis

Performs AI analysis on input video clips/image content and generates a smooth, natural scene description. | 视觉摘要智述技能,对传入的视频片段/图片内容进行AI分析,生成一段通顺自然的场景描述内容

Archived SourceRecently Updated
Coding

frontend-skill

全能高级前端研发工程师技能。擅长AI时代前沿技术栈(React最新 + shadcn/ui + Tailwind CSS v4 + TypeScript + Next.js),精通动效库与交互特效开发。采用Glue Code风格快速实现代码,强调高质量产品体验与高度友好的UI视觉规范。在组件调用、交互特效、全局Theme上保持高度规范:绝不重复造轮子,相同逻辑出现两次即封装为组件。具备安全意识,防范各类注入攻击。开发页面具有高度自适应能力,响应式设计贯穿始终。当用户无特殊技术栈要求时,默认采用主流前沿技术栈。

Archived SourceRecently Updated