Communitygithub.com

ComposioHQ/awesome-claude-skills

下載 YouTube 影片,可自訂畫質與格式。當使用者要求下載、儲存或取得 YouTube 影片時使用此技能。支援多種畫質選項(最佳、1080p、720p、480p、360p)、多種格式(mp4、webm、mkv)以及純音軌下載為 MP3。

awesome-claude-skills 是什麼?

這個技能為 AI Agent(如 Claude Code)提供一個指令工具,讓使用者可以透過簡單的 CLI 命令下載 YouTube 影片。它利用 yt-dlp 這個強大的下載引擎,能夠自動處理安裝、選擇最佳串流、合併影音軌道等複雜程序。使用者可以指定畫質(從最佳到最差)、輸出格式(mp4、webm、mkv),或是僅下載音軌為 MP3 檔案。這個技能支援所有主流 AI Agent 平台,如 Claude Code、Cursor 和 Codex,讓開發者或使用者無需離開對話環境就能直接取得影片內容。所有下載的影片預設儲存於 `/mnt/user-data/outputs/` 目錄,並會自動以影片標題命名。這個工具特別適合需要快速擷取 YouTube 影片進行測試、分析或離線存取的場景。

相容平台✓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:Full HD
  • 720p:HD
  • 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.

相關技能