Communitygithub.com

ComposioHQ/youtube-downloader

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

youtube-downloader 是什麼?

此技能讓 AI 代理能夠從 YouTube 下載影片與音訊,並提供完整的格式與畫質控制。它透過 `yt-dlp` 這個強大且可靠的命令列工具,自動處理安裝、串流選擇以及視訊與音訊合併。使用者可以指定想要的畫質(如 1080p 或 720p)、容器格式(如 mp4 或 webm),或選擇僅下載音軌為 MP3 格式。下載的檔案預設會儲存在 `/mnt/user-data/outputs/` 目錄下。此技能有助於在多種 AI 代理平台(例如 Claude Code、Cursor、Codex)上簡化媒體收集與處理工作流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/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.

ComposioHQ/-21risk-automation

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

ComposioHQ/-2chat-automation

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

ComposioHQ/ably-automation

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

ComposioHQ/abstract-automation

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

ComposioHQ/abuselpdb-automation

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

ComposioHQ/abyssale-automation

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

ComposioHQ/accelo-automation

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

ComposioHQ/accredible-certificates-automation

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

ComposioHQ/acculynx-automation

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

ComposioHQ/active-campaign-automation

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

ComposioHQ/addresszen-automation

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

ComposioHQ/adobe-automation

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

ComposioHQ/adrapid-automation

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

ComposioHQ/adyntel-automation

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

ComposioHQ/aeroleads-automation

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

ComposioHQ/aero-workflow-automation

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

ComposioHQ/affinda-automation

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

ComposioHQ/affinity-automation

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

ComposioHQ/agencyzoom-automation

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

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能