[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-01c07d99-be16-45ef-92e5-d2374ea9c366":3,"$fWvRDSMcZLsUfqYFu4rXN1wG93pACJ6ev36c8CYUbz6E":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"01c07d99-be16-45ef-92e5-d2374ea9c366","youtube-automation","通过Rube MCP（Composio）自动化YouTube任务：上传视频、管理播放列表、搜索内容、获取分析、处理评论。始终首先搜索当前架构的工具。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: youtube-automation\ndescription: \"Automate YouTube tasks via Rube MCP (Composio): upload videos, manage playlists, search content, get analytics, and handle comments. Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# YouTube Automation via Rube MCP\n\nAutomate YouTube operations through Composio's YouTube toolkit via Rube MCP.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active YouTube connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube`\n3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Upload and Manage Videos\n\n**When to use**: User wants to upload a video or update video metadata\n\n**Tool sequence**:\n1. `YOUTUBE_UPLOAD_VIDEO` - Upload a new video [Required]\n2. `YOUTUBE_UPDATE_VIDEO` - Update title, description, tags, privacy [Optional]\n3. `YOUTUBE_UPDATE_THUMBNAIL` - Set a custom thumbnail [Optional]\n\n**Key parameters**:\n- `title`: Video title (max 100 characters)\n- `description`: Video description (max 5000 bytes)\n- `tags`: Array of keyword tags\n- `categoryId`: YouTube category ID (e.g., '22' for People & Blogs)\n- `privacyStatus`: 'public', 'private', or 'unlisted'\n- `videoFilePath`: Object with `{name, mimetype, s3key}` for the video file\n\n**Pitfalls**:\n- UPLOAD_VIDEO consumes high quota; prefer UPDATE_VIDEO for metadata-only changes\n- videoFilePath must be an object with s3key, not a raw file path or URL\n- Tags total must not exceed 500 characters including separators\n- Angle brackets `\u003C >` in tags are automatically stripped\n- Description limit is 5000 bytes, not characters (multibyte chars count more)\n\n### 2. Search YouTube Content\n\n**When to use**: User wants to find videos, channels, or playlists\n\n**Tool sequence**:\n1. `YOUTUBE_SEARCH_YOU_TUBE` - Search for content [Required]\n2. `YOUTUBE_VIDEO_DETAILS` - Get full details for a specific video [Optional]\n3. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get details for multiple videos [Optional]\n\n**Key parameters**:\n- `q`: Search query (supports exact phrases, exclusions, channel handles)\n- `type`: 'video', 'channel', or 'playlist'\n- `maxResults`: Results per page (1-50)\n- `pageToken`: For pagination\n\n**Pitfalls**:\n- Search endpoint only returns 'snippet' part; use VIDEO_DETAILS for statistics\n- Search results are capped at 500 total items\n- Search has higher quota cost (100 units) vs list endpoints (1 unit)\n- BATCH video details practical limit is ~50 IDs per call; chunk larger sets\n\n### 3. Manage Playlists\n\n**When to use**: User wants to create playlists or manage playlist contents\n\n**Tool sequence**:\n1. `YOUTUBE_LIST_USER_PLAYLISTS` - List user's existing playlists [Optional]\n2. `YOUTUBE_CREATE_PLAYLIST` - Create a new playlist [Optional]\n3. `YOUTUBE_ADD_VIDEO_TO_PLAYLIST` - Add a video to a playlist [Optional]\n4. `YOUTUBE_LIST_PLAYLIST_ITEMS` - List videos in a playlist [Optional]\n\n**Key parameters**:\n- `playlistId`: Playlist ID ('PL...' for user-created, 'UU...' for uploads)\n- `part`: Resource parts to include (e.g., 'snippet,contentDetails')\n- `maxResults`: Items per page (1-50)\n- `pageToken`: Pagination token from previous response\n\n**Pitfalls**:\n- Do NOT pass channel IDs ('UC...') as playlist IDs; convert 'UC' to 'UU' for uploads\n- Large playlists require pagination via pageToken; follow nextPageToken until absent\n- items[].id is not the videoId; use items[].snippet.resourceId.videoId\n- Creating duplicate playlist names is allowed; check existing playlists first\n\n### 4. Get Channel and Video Analytics\n\n**When to use**: User wants to analyze channel performance or video metrics\n\n**Tool sequence**:\n1. `YOUTUBE_GET_CHANNEL_ID_BY_HANDLE` - Resolve a handle to channel ID [Prerequisite]\n2. `YOUTUBE_GET_CHANNEL_STATISTICS` - Get channel subscriber\u002Fview\u002Fvideo counts [Required]\n3. `YOUTUBE_LIST_CHANNEL_VIDEOS` - List all videos from a channel [Optional]\n4. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get per-video statistics [Optional]\n5. `YOUTUBE_GET_CHANNEL_ACTIVITIES` - Get recent channel activities [Optional]\n\n**Key parameters**:\n- `channelId`: Channel ID ('UC...'), handle ('@handle'), or 'me'\n- `forHandle`: Channel handle (e.g., '@Google')\n- `id`: Comma-separated video IDs for batch details\n- `parts`: Resource parts to include (e.g., 'snippet,statistics')\n\n**Pitfalls**:\n- Channel statistics are lifetime totals, not per-period\n- BATCH video details may return fewer items than requested for private\u002Fdeleted videos\n- Response data may be nested under `data` or `data_preview`; parse defensively\n- contentDetails.duration uses ISO 8601 format (e.g., 'PT4M13S')\n\n### 5. Manage Subscriptions and Comments\n\n**When to use**: User wants to subscribe to channels or view video comments\n\n**Tool sequence**:\n1. `YOUTUBE_SUBSCRIBE_CHANNEL` - Subscribe to a channel [Optional]\n2. `YOUTUBE_UNSUBSCRIBE_CHANNEL` - Unsubscribe from a channel [Optional]\n3. `YOUTUBE_LIST_USER_SUBSCRIPTIONS` - List subscriptions [Optional]\n4. `YOUTUBE_LIST_COMMENT_THREADS` - List comments on a video [Optional]\n\n**Key parameters**:\n- `channelId`: Channel to subscribe\u002Funsubscribe\n- `videoId`: Video ID for comment threads\n- `maxResults`: Results per page\n- `pageToken`: Pagination token\n\n**Pitfalls**:\n- Subscribing to an already-subscribed channel may return an error\n- Comment threads return top-level comments with up to 5 replies each\n- Comments may be disabled on some videos\n- Unsubscribe requires the subscription ID, not the channel ID\n\n## Common Patterns\n\n### Channel ID Resolution\n\n**Handle to Channel ID**:\n```\n1. Call YOUTUBE_GET_CHANNEL_ID_BY_HANDLE with '@handle'\n2. Extract channelId from response\n3. Use in subsequent channel operations\n```\n\n**Uploads Playlist**:\n```\n1. Get channel ID (starts with 'UC')\n2. Replace 'UC' prefix with 'UU' to get uploads playlist ID\n3. Use with LIST_PLAYLIST_ITEMS to enumerate all videos\n```\n\n### Pagination\n\n- Set `maxResults` (max 50 per page)\n- Check response for `nextPageToken`\n- Pass token as `pageToken` in next request\n- Continue until `nextPageToken` is absent\n\n### Batch Video Details\n\n- Collect video IDs from search or playlist listings\n- Chunk into groups of ~50 IDs\n- Call GET_VIDEO_DETAILS_BATCH per chunk\n- Merge results across chunks\n\n## Known Pitfalls\n\n**Quota Management**:\n- YouTube API has a daily quota limit (default 10,000 units)\n- Upload = 1600 units; search = 100 units; list = 1 unit\n- Prefer list endpoints over search when possible\n- Monitor quota usage to avoid hitting daily limits\n\n**ID Formats**:\n- Video IDs: 11-character alphanumeric strings\n- Channel IDs: Start with 'UC' followed by 22 characters\n- Playlist IDs: Start with 'PL' (user) or 'UU' (uploads)\n- Do not confuse channel IDs with playlist IDs\n\n**Thumbnails**:\n- Custom thumbnails require channel phone verification\n- Must be JPG, PNG, or GIF; under 2MB\n- Recommended: 1280x720 resolution (16:9 aspect ratio)\n\n**Response Parsing**:\n- Statistics values are returned as strings, not integers; cast before math\n- Duration uses ISO 8601 format (PT#H#M#S)\n- Batch responses may wrap data under different keys\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| Upload video | YOUTUBE_UPLOAD_VIDEO | title, description, tags, categoryId, privacyStatus, videoFilePath |\n| Update video | YOUTUBE_UPDATE_VIDEO | video_id, title, description, tags |\n| Set thumbnail | YOUTUBE_UPDATE_THUMBNAIL | videoId, thumbnailUrl |\n| Search YouTube | YOUTUBE_SEARCH_YOU_TUBE | q, type, maxResults |\n| Video details | YOUTUBE_VIDEO_DETAILS | id, part |\n| Batch video details | YOUTUBE_GET_VIDEO_DETAILS_BATCH | id, parts |\n| List playlists | YOUTUBE_LIST_USER_PLAYLISTS | maxResults, pageToken |\n| Create playlist | YOUTUBE_CREATE_PLAYLIST | (check schema) |\n| Add to playlist | YOUTUBE_ADD_VIDEO_TO_PLAYLIST | (check schema) |\n| List playlist items | YOUTUBE_LIST_PLAYLIST_ITEMS | playlistId, maxResults |\n| Channel statistics | YOUTUBE_GET_CHANNEL_STATISTICS | id\u002FforHandle\u002Fmine |\n| List channel videos | YOUTUBE_LIST_CHANNEL_VIDEOS | channelId, maxResults |\n| Channel ID by handle | YOUTUBE_GET_CHANNEL_ID_BY_HANDLE | channel_handle |\n| Subscribe | YOUTUBE_SUBSCRIBE_CHANNEL | channelId |\n| List subscriptions | YOUTUBE_LIST_USER_SUBSCRIPTIONS | (check schema) |\n| List comments | YOUTUBE_LIST_COMMENT_THREADS | videoId |\n| Channel activities | YOUTUBE_GET_CHANNEL_ACTIVITIES | (check schema) |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,148,468,"2026-05-16 13:48:14",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"16b03e88-0d6c-4189-bbfa-0e5fd8daa8dc","1.0.0","youtube-automation.zip",3732,"uploads\u002Fskills\u002F01c07d99-be16-45ef-92e5-d2374ea9c366\u002Fyoutube-automation.zip","11b1680cbde640df48eee483fefac0fcd2538e16cbede10441e61e48ccc09f54","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":9278}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]