Back to Workflow & Productivity

YouTube Video Downloader

automationmedia-processingpythonarchivingcli
β˜… 4.4 (153)⭐ 64.8kπŸ•’ 2026-05-22Source β†—

Install this skill

npx skills add ComposioHQ/awesome-claude-skills

Works across Claude Code, Cursor, Codex, Copilot & Antigravity

What this skill does

  • β€’Download single YouTube videos with selectable resolutions from 360p to 1080p
  • β€’Convert video streams into mp4, webm, or mkv formats automatically
  • β€’Extract audio-only content and save as high-quality MP3 files
  • β€’Specify custom output directories for better project organization
  • β€’Auto-handles yt-dlp dependency installation upon first execution

When to use it

  • βœ“Fetching instructional video content for offline analysis
  • βœ“Creating audio transcripts from video lectures using local speech-to-text tools
  • βœ“Archiving demonstration videos for local project documentation
  • βœ“Gathering source media for generative AI training or data processing pipelines

When not to use it

  • βœ•Downloading YouTube playlists or entire channels in bulk
  • βœ•Downloading age-restricted, private, or geo-blocked content that requires authentication

How to invoke it

Example prompts that trigger this skill:

  • β€œSave the video at this URL as an MP4 file”
  • β€œDownload the video from https://youtube.com/watch?v=xyz as a 720p file”
  • β€œGet just the audio from this video and save it to my downloads folder”
  • β€œDownload the video at this link in webm format”
  • β€œPull the 1080p version of this YouTube video into my assets directory”

Example workflow

  1. Identify a technical tutorial video URL for your project
  2. Ask the agent to download the video in 720p format
  3. Specify the target output directory in the command parameters
  4. The agent installs necessary dependencies if missing
  5. The agent processes the stream and verifies the file exists in the directory

Prerequisites

  • –Python 3.x installed in the environment
  • –Active internet connection for media fetching

Pitfalls & limitations

  • !Does not support batch processing of playlists
  • !High-resolution downloads consume significant disk space and bandwidth
  • !Performance depends on host machine network stability and YouTube's throttling policies

FAQ

Where are the files saved by default?
The script saves all processed media to /mnt/user-data/outputs/ unless you specify a custom path.
Does this tool work for private videos?
No, this tool does not support authentication and cannot access private or restricted content.
Can I download an entire playlist?
The tool is optimized for single videos and will skip playlists by default.
Do I need to install yt-dlp manually?
No, the skill script is configured to detect and install yt-dlp automatically if it is not already present.

How it compares

Unlike manual browser downloads, this tool allows for programmatic resolution and format enforcement, ensuring consistent file types for downstream media processing.

Source & trust

⭐ 65k starsπŸ•’ Updated 2026-05-22πŸ›‘ runs-shell, network

From the source: β€œ# YouTube Video Downloader Download YouTube videos with full control over quality and format settings. ## Quick Start The simplest way to download a video: ```bash python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID" ``` This downloads the video in best available quality as MP…”

View the full SKILL.md source

# YouTube Video Downloader

Download YouTube videos with full control over quality and format settings.

## Quick Start

The simplest way to download a video:

```bash
python scripts/download_video.py "https://www.youtube.com/watch?v=VIDEO_ID"
```

This downloads the video in best available quality as MP4 to `/mnt/user-data/outputs/`.

## Options

### Quality Settings

Use `-q` or `--quality` to specify video quality:

- `best` (default): Highest quality available
- `1080p`: Full HD
- `720p`: HD
- `480p`: Standard definition
- `360p`: Lower quality
- `worst`: Lowest quality available

Example:
```bash
python scripts/download_video.py "URL" -q 720p
```

### Format Options

Use `-f` or `--format` to specify output format (video downloads only):

- `mp4` (default): Most compatible
- `webm`: Modern format
- `mkv`: Matroska container

Example:
```bash
python scripts/download_video.py "URL" -f webm
```

### Audio Only

Use `-a` or `--audio-only` to download only audio as MP3:

```bash
python scripts/download_video.py "URL" -a
```

### Custom Output Directory

Use `-o` or `--output` to specify a different output directory:

```bash
python scripts/download_video.py "URL" -o /path/to/directory
```

## Complete Examples

1. Download video in 1080p as MP4:
```bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 1080p
```

2. Download audio only as MP3:
```bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -a
```

3. Download in 720p as WebM to custom directory:
```bash
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 720p -f webm -o /custom/path
```

## How It Works

The skill uses `yt-dlp`, a robust YouTube downloader that:
- Automatically installs itself if not present
- Fetches video information before downloading
- Selects the best available streams matching your criteria
- Merges video and audio streams when needed
- Supports a wide range of YouTube video formats

## Important Notes

- Downloads are saved to `/mnt/user-data/outputs/` by default
- Video filename is automatically generated from the video title
- The script handles installation of yt-dlp automatically
- Only single videos are downloaded (playlists are skipped by default)
- Higher quality videos may take longer to download and use more disk space

Quoted from ComposioHQ/awesome-claude-skills for reference β€” see the original for the authoritative, latest version.

πŸ“„ Full skill instructions β€” original source: ComposioHQ/awesome-claude-skills
The YouTube Video Downloader skill allows developers to automate media acquisition directly from within their development environment. By abstracting the command-line usage of yt-dlp, this tool provides a predictable interface for fetching video content, extracting specific quality tiers, or isolating audio streams. It is particularly helpful for developers building training datasets, archiving documentation, or localizing media assets for offline testing. Rather than manually navigating browser-based downloaders, you can direct your AI agent to pull assets directly into your workspace. It handles the underlying stream negotiation, format conversion, and directory management, outputting files directly to your defined local storage. This tool is ideal for agents that need to gather visual or auditory information to inform coding tasks, technical research, or content synthesis workflows without leaving the editor.

How to Use This Skill Unit

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/skills/video-downloader/
  3. Save the file as SKILL.md
  4. The agent will automatically discover the skill based on its description.

Option B: Global Installation (All Agents)

Save the file to these locations to make it available across all projects:

  • Claude Code: ~/.claude/skills/ComposioHQ/awesome-claude-skills/video-downloader/SKILL.md
  • Cursor: ~/.cursor/skills/ComposioHQ/awesome-claude-skills/video-downloader/SKILL.md
  • Antigravity: ~/.gemini/antigravity/skills/ComposioHQ/awesome-claude-skills/video-downloader/SKILL.md

πŸš€ Install with CLI:
npx skills add ComposioHQ/awesome-claude-skills

Read the Master Guide: Mastering Agent Skills β†’

Recommended Rules

View more rules β†’

Recommended Workflows

View more workflows β†’

Recommended MCP Servers

View more MCP servers β†’

Take It Further

Maximize your productivity with these powerful resources

πŸ“‹

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
πŸ“–

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide

How to use this Skill in Claude Code & Cursor

For Claude Code (CLI)

To use this skill in Claude Code, copy the rule content into your project's custom instructions or follow our Add-Skill CLI guide. This ensures Claude follows your standards during every code generation.

For Cursor & Windsurf

For Cursor or Windsurf, individual skills are best used in the "Rules for AI" section. This specific unit helps the agent avoid workflow & productivity issues, leading to cleaner, more efficient code.

Why the skill format matters: the standardized Agent Skills format lets your AI agent load detailed instructions only when they are relevant, keeping your prompt clean while improving results.

Source & attribution

This skill is categorized under Workflow & Productivity and is published by ComposioHQ, maintained in ComposioHQ/awesome-claude-skills.

← Browse All Agent Skills
Sponsored AI assistant. Recommendations may be paid.