Communitygithub.com

ComeOnOliver/skillshub

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

skillshub 是什麼?

此技能可讓開發者或 AI 代理(例如 Claude Code、Cursor 等)透過 Rube MCP 伺服器與 Composio 的 YouTube 工具包整合,實現 YouTube 任務的自動化。它支援上傳和更新影片、管理播放清單、搜尋內容、擷取頻道與影片分析數據,以及管理訂閱和留言。設定過程簡單:只要在客戶端設定中將 `https://rube.app/mcp` 加入為 MCP 伺服器,並透過 Composio 的 YouTube 工具包啟用連線即可。為確保工具與資料結構最新,必須在執行任何工作流程前先呼叫 `RUBE_SEARCH_TOOLS`。此技能也涵蓋了常見陷阱,例如影片上傳可能消耗較高的 API 配額、參數格式要求(如 `videoFilePath` 必須為包含 `s3key` 的物件),以及分頁與批次處理的說明。整體而言,它提供了一個結構化且可靠的方式,透過 composable 的工具調用來管理 YouTube 內容。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/sickn33/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 單位),列表端點僅 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.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能