Communitygithub.com

YouTube视频下载器

以可自定义的质量和格式选项下载YouTube视频。当用户要求下载、保存或获取YouTube视频时使用此技能。支持多种画质(最佳、1080p、720p、480p、360p)、多种格式(mp4、webm、mkv)以及仅下载MP3音频。

YouTube视频下载器 是什么?

该技能提供了一个能够直接从YouTube下载视频和音频的脚本,让用户充分控制输出质量和格式。它默认使用`yt-dlp`工具,如果没有安装则会自动安装。用户可以通过命令行参数指定画质(如1080p、720p)和格式(mp4、webm、mkv),也可以选择仅下载MP3音频。下载的文件默认保存在`/mnt/user-data/outputs/`目录中,文件名会自动根据视频标题生成。该技能简化了视频下载过程,并集成了错误处理与日志记录功能。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-claude-skills/tree/HEAD/video-downloader

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

YouTube视频下载器 是做什么的?

以完全控制质量和格式设置的方式下载YouTube视频。

快速开始

下载视频最简单的方式:

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

这将以下载最佳可用质量MP4格式的视频,并保存到/mnt/user-data/outputs/。

选项

画质设置

使用-q或--quality指定视频画质:

  • best(默认):最高可用画质
  • 1080p:全高清
  • 720p:高清
  • 480p:标清
  • 360p:较低画质
  • worst:最低可用画质

示例:

python scripts/download_video.py "URL" -q 720p

格式选项

使用-f或--format指定输出格式(仅限视频下载):

  • mp4(默认):最兼容
  • webm:现代格式
  • mkv:Matroska容器

示例:

python scripts/download_video.py "URL" -f webm

仅下载音频

使用-a或--audio-only仅下载MP3音频:

python scripts/download_video.py "URL" -a

自定义输出目录

使用-o或--output指定不同的输出目录:

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

完整示例

  1. 以1080p画质下载MP4视频:
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 1080p
  1. 仅下载MP3音频:
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -a
  1. 以720p画质下载WebM格式到自定义目录:
python scripts/download_video.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -q 720p -f webm -o /custom/path

工作原理

该技能使用yt-dlp,一个强大的YouTube下载器,它能够:

  • 如果未安装,自动安装自身
  • 在下载前获取视频信息
  • 选择匹配条件的最佳可用流
  • 必要时合并视频和音频流
  • 支持广泛的YouTube视频格式

重要说明

  • 下载文件默认保存到/mnt/user-data/outputs/
  • 视频文件名会根据视频标题自动生成
  • 脚本会自动处理yt-dlp的安装
  • 仅下载单个视频(默认跳过播放列表)
  • 更高画质的视频可能需要更长的下载时间和更多的磁盘空间

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

agent-mail-automation

Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.

agentql-automation

Automate Agentql tasks via Rube MCP (Composio). Always search tools first for current schemas.

agenty-automation

Automate Agenty tasks via Rube MCP (Composio). Always search tools first for current schemas.

相关技能