Communitygithub.com

NeverSight/learn-skills.dev

透過 Rube MCP (Composio) 自動化 YouTube 任務:上傳影片、管理播放清單、搜尋內容、取得分析數據及處理留言。務必先搜尋工具以取得當前綱要。

learn-skills.dev 是什麼?

這項技能讓 AI 代理能透過 Rube MCP 伺服器,直接與 YouTube API 互動,實現完整的 YouTube 自動化操作。代理可以上傳和更新影片、設定縮圖、搜尋內容、管理播放清單、分析頻道與影片成效、管理訂閱及留言。支援的平台涵蓋任何可設定 MCP 伺服器的 AI 代理環境,例如 Claude Desktop、Cursor、Codex 等。運作原理是代理先呼叫 `RUBE_SEARCH_TOOLS` 獲取最新的工具架構,再根據使用者需求依序呼叫對應的 YouTube 工具(如 `YOUTUBE_UPLOAD_VIDEO`、`YOUTUBE_SEARCH_YOU_TUBE`)。技能文件詳細說明了每個工作流程的工具順序、關鍵參數與常見陷阱,例如配額管理、ID 格式轉換與回應解析,幫助開發者避免常見錯誤並最佳化 API 使用。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/aaaaqwq/claude-code-skills/youtube-automation

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

透過 Rube MCP 進行 YouTube 自動化

透過 Composio 的 YouTube 工具組,經由 Rube MCP 自動化 YouTube 操作。

先決條件

  • 必須已連線 Rube MCP(可使用 RUBE_SEARCH_TOOLS)
  • 必須透過 RUBE_MANAGE_CONNECTIONS 以 youtube 工具組建立有效的 YouTube 連線
  • 務必先呼叫 RUBE_SEARCH_TOOLS 以取得目前的工具架構

設定

取得 Rube MCP:在您的客戶端設定中,將 https://rube.app/mcp 新增為 MCP 伺服器。不需要 API 金鑰 — 只需新增端點即可運作。

  1. 確認 RUBE_SEARCH_TOOLS 有回應,以驗證 Rube MCP 可用
  2. 使用 youtube 工具組呼叫 RUBE_MANAGE_CONNECTIONS
  3. 若連線狀態不是 ACTIVE,請依照回傳的驗證連結完成 Google OAuth
  4. 在執行任何工作流程前,確認連線狀態顯示為 ACTIVE

核心工作流程

1. 上傳與管理影片

使用時機:使用者想要上傳影片或更新影片中繼資料

工具順序:

  1. YOUTUBE_UPLOAD_VIDEO - 上傳新影片 [必要]
  2. YOUTUBE_UPDATE_VIDEO - 更新標題、說明、標籤、隱私設定 [選用]
  3. YOUTUBE_UPDATE_THUMBNAIL - 設定自訂縮圖 [選用]

關鍵參數:

  • title:影片標題(最多 100 個字元)
  • description:影片說明(最多 5000 位元組)
  • tags:關鍵字標籤陣列
  • categoryId:YouTube 分類 ID(例如 '22' 代表人物與部落格)
  • privacyStatus:'public'、'private' 或 'unlisted'
  • videoFilePath:包含 {name, mimetype, s3key} 的物件,代表影片檔案

常見陷阱:

  • UPLOAD_VIDEO 消耗大量配額;若僅變更中繼資料,建議優先使用 UPDATE_VIDEO
  • videoFilePath 必須是含有 s3key 的物件,而非原始檔案路徑或 URL
  • 標籤總長度不得超過 500 個字元(含分隔符號)
  • 標籤中的角括號 < > 會自動被移除
  • 說明限制為 5000 位元組,而非字元數(多位元組字元會佔用更多空間)

2. 搜尋 YouTube 內容

使用時機:使用者想要尋找影片、頻道或播放清單

工具順序:

  1. YOUTUBE_SEARCH_YOU_TUBE - 搜尋內容 [必要]
  2. YOUTUBE_VIDEO_DETAILS - 取得特定影片的完整詳細資料 [選用]
  3. YOUTUBE_GET_VIDEO_DETAILS_BATCH - 取得多部影片的詳細資料 [選用]

關鍵參數:

  • q:搜尋查詢(支援精確詞組、排除項目、頻道代號)
  • type:'video'、'channel' 或 'playlist'
  • maxResults:每頁結果數(1-50)
  • pageToken:用於分頁

常見陷阱:

  • 搜尋端點只回傳 'snippet' 部分;統計資料請使用 VIDEO_DETAILS
  • 搜尋結果上限為 500 個項目
  • 搜尋的配額成本較高(100 單位)vs 列表端點(1 單位)
  • BATCH 影片詳細資料的實際限制約為每次呼叫 50 個 ID;較大的集合請分批處理

3. 管理播放清單

使用時機:使用者想要建立播放清單或管理播放清單內容

工具順序:

  1. YOUTUBE_LIST_USER_PLAYLISTS - 列出使用者現有的播放清單 [選用]
  2. YOUTUBE_CREATE_PLAYLIST - 建立新的播放清單 [選用]
  3. YOUTUBE_ADD_VIDEO_TO_PLAYLIST - 將影片加入播放清單 [選用]
  4. YOUTUBE_LIST_PLAYLIST_ITEMS - 列出播放清單中的影片 [選用]

關鍵參數:

  • playlistId:播放清單 ID(使用者建立的為 'PL...',上傳的為 'UU...')
  • part:要包含的資源部分(例如 'snippet,contentDetails')
  • maxResults:每頁項目數(1-50)
  • pageToken:前一次回應的分頁權杖

常見陷阱:

  • 請勿將頻道 ID('UC...')當作播放清單 ID;若要用於上傳,請將 'UC' 轉換為 'UU'
  • 大型播放清單需要透過 pageToken 分頁;持續追蹤 nextPageToken 直到不存在為止
  • items[].id 並非 videoId;請使用 items[].snippet.resourceId.videoId
  • 允許建立重複名稱的播放清單;請先檢查現有播放清單

4. 取得頻道與影片分析數據

使用時機:使用者想要分析頻道表現或影片指標

工具順序:

  1. YOUTUBE_GET_CHANNEL_ID_BY_HANDLE - 將頻道代號解析為頻道 ID [必要前提]
  2. YOUTUBE_GET_CHANNEL_STATISTICS - 取得頻道的訂閱者/觀看次數/影片數量 [必要]
  3. YOUTUBE_LIST_CHANNEL_VIDEOS - 列出頻道的所有影片 [選用]
  4. YOUTUBE_GET_VIDEO_DETAILS_BATCH - 取得每支影片的統計資料 [選用]
  5. YOUTUBE_GET_CHANNEL_ACTIVITIES - 取得頻道近期活動 [選用]

關鍵參數:

  • channelId:頻道 ID('UC...')、代號('@handle')或 'me'
  • forHandle:頻道代號(例如 '@Google')
  • id:以逗號分隔的影片 ID,用於批次取得詳細資料
  • parts:要包含的資源部分(例如 'snippet,statistics')

常見陷阱:

  • 頻道統計資料是累計總量,而非特定週期的數據
  • BATCH 影片詳細資料可能回傳少於請求的項目(私人或已刪除影片)
  • 回應資料可能巢狀於 data 或 data_preview 之下;請防禦性解析
  • contentDetails.duration 使用 ISO 8601 格式(例如 'PT4M13S')

5. 管理訂閱與留言

使用時機:使用者想要訂閱頻道或查看影片留言

工具順序:

  1. YOUTUBE_SUBSCRIBE_CHANNEL - 訂閱頻道 [選用]
  2. YOUTUBE_UNSUBSCRIBE_CHANNEL - 取消訂閱頻道 [選用]
  3. YOUTUBE_LIST_USER_SUBSCRIPTIONS - 列出訂閱項目 [選用]
  4. YOUTUBE_LIST_COMMENT_THREADS - 列出影片的留言 [選用]

關鍵參數:

  • channelId:要訂閱或取消訂閱的頻道
  • videoId:留言所使用的影片 ID
  • maxResults:每頁結果數
  • pageToken:分頁權杖

常見陷阱:

  • 訂閱已訂閱的頻道可能會回傳錯誤
  • 留言緒會回傳頂層留言,每則最多包含 5 則回覆
  • 某些影片可能已關閉留言功能
  • 取消訂閱需要使用訂閱 ID,而非頻道 ID

常見模式

頻道 ID 解析

頻道代號轉換為頻道 ID:

1. 使用 '@handle' 呼叫 YOUTUBE_GET_CHANNEL_ID_BY_HANDLE
2. 從回應中取出 channelId
3. 在後續頻道操作中使用

上傳播放清單:

1. 取得頻道 ID(以 'UC' 開頭)
2. 將 'UC' 前綴替換為 'UU',取得上傳播放清單 ID
3. 搭配 LIST_PLAYLIST_ITEMS 使用,列舉所有影片

分頁

  • 設定 maxResults(每頁最多 50 個)
  • 檢查回應中是否有 nextPageToken
  • 在下次請求中將權杖作為 pageToken 傳入
  • 持續直到 nextPageToken 不存在

批次取得影片詳細資料

  • 從搜尋或播放清單清單中收集影片 ID
  • 每約 50 個 ID 為一組進行分組
  • 對每組呼叫 GET_VIDEO_DETAILS_BATCH
  • 跨組合併結果

已知陷阱

配額管理:

  • YouTube API 有每日配額限制(預設 10,000 單位)
  • 上傳 = 1600 單位;搜尋 = 100 單位;列表 = 1 單位
  • 盡可能優先使用列表端點而非搜尋
  • 監控配額使用量,避免達到每日限制

ID 格式:

  • 影片 ID:11 個字元的字母數字字串
  • 頻道 ID:以 'UC' 開頭,後接 22 個字元
  • 播放清單 ID:以 'PL'(使用者)或 'UU'(上傳)開頭
  • 請勿混淆頻道 ID 與播放清單 ID

縮圖:

  • 自訂縮圖需要頻道電話驗證
  • 必須為 JPG、PNG 或 GIF 格式,且小於 2MB
  • 建議解析度:1280x720(16:9 比例)

回應解析:

  • 統計資料值以字串形式回傳,而非整數;進行數學運算前請先轉型
  • 持續時間採用 ISO 8601 格式(PT#H#M#S)
  • 批次回應可能將資料包裝在不同的鍵之下

快速參考

任務工具名稱關鍵參數
上傳影片YOUTUBE_UPLOAD_VIDEOtitle, description, tags, categoryId, privacyStatus, videoFilePath
更新影片YOUTUBE_UPDATE_VIDEOvideo_id, title, description, tags
設定縮圖YOUTUBE_UPDATE_THUMBNAILvideoId, thumbnailUrl
搜尋 YouTubeYOUTUBE_SEARCH_YOU_TUBEq, type, maxResults
影片詳細資料YOUTUBE_VIDEO_DETAILSid, part
批次影片詳細資料YOUTUBE_GET_VIDEO_DETAILS_BATCHid, parts
列出播放清單YOUTUBE_LIST_USER_PLAYLISTSmaxResults, pageToken
建立播放清單YOUTUBE_CREATE_PLAYLIST(請查閱架構)
加入播放清單YOUTUBE_ADD_VIDEO_TO_PLAYLIST(請查閱架構)
列出播放清單項目YOUTUBE_LIST_PLAYLIST_ITEMSplaylistId, maxResults
頻道統計資料YOUTUBE_GET_CHANNEL_STATISTICSid/forHandle/mine
列出頻道影片YOUTUBE_LIST_CHANNEL_VIDEOSchannelId, maxResults
透過代號取得頻道 IDYOUTUBE_GET_CHANNEL_ID_BY_HANDLEchannel_handle
訂閱YOUTUBE_SUBSCRIBE_CHANNELchannelId
列出訂閱YOUTUBE_LIST_USER_SUBSCRIPTIONS(請查閱架構)
列出留言YOUTUBE_LIST_COMMENT_THREADSvideoId
頻道活動YOUTUBE_GET_CHANNEL_ACTIVITIES(請查閱架構)

Individual skills in this repo

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

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相關技能