--- name: youtube-automation description: "YouTube Automation via Rube MCP workflow skill. Use this skill when the user needs 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 and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off." version: "0.0.1" category: cli-automation tags: ["youtube-automation", "automate", "youtube", "tasks", "via", "rube", "mcp", "composio"] complexity: advanced risk: caution tools: ["codex-cli", "claude-code", "cursor", "gemini-cli", "opencode"] source: community author: "sickn33" date_added: "2026-04-15" date_updated: "2026-04-25" --- # YouTube Automation via Rube MCP ## Overview This public intake copy packages `plugins/antigravity-awesome-skills-claude/skills/youtube-automation` from `https://github.com/sickn33/antigravity-awesome-skills` into the native Omni Skills editorial shape without hiding its origin. Use it when the operator needs the upstream workflow, support files, and repository context to stay intact while the public validator and private enhancer continue their normal downstream flow. This intake keeps the copied upstream files intact and uses the `external_source` block in `metadata.json` plus `ORIGIN.md` as the provenance anchor for review. # YouTube Automation via Rube MCP Automate YouTube operations through Composio's YouTube toolkit via Rube MCP. Imported source sections that did not map cleanly to the public headings are still preserved below or in the support files. Notable imported sections: Prerequisites, Common Patterns, Known Pitfalls, Limitations. ## When to Use This Skill Use this section as the trigger filter. It should make the activation boundary explicit before the operator loads files, runs commands, or opens a pull request. - This skill is applicable to execute the workflow or actions described in the overview. - Use when the request clearly matches the imported source intent: 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. - Use when the operator should preserve upstream workflow detail instead of rewriting the process from scratch. - Use when provenance needs to stay visible in the answer, PR, or review packet. - Use when copied upstream references, examples, or scripts materially improve the answer. - Use when the workflow should remain reviewable in the public intake repo before the private enhancer takes over. ## Operating Table | Situation | Start here | Why it matters | | --- | --- | --- | | First-time use | `metadata.json` | Confirms repository, branch, commit, and imported path through the `external_source` block before touching the copied workflow | | Provenance review | `ORIGIN.md` | Gives reviewers a plain-language audit trail for the imported source | | Workflow execution | `SKILL.md` | Starts with the smallest copied file that materially changes execution | | Supporting context | `SKILL.md` | Adds the next most relevant copied source file without loading the entire package | | Handoff decision | `## Related Skills` | Helps the operator switch to a stronger native skill when the task drifts | ## Workflow This workflow is intentionally editorial and operational at the same time. It keeps the imported source useful to the operator while still satisfying the public intake standards that feed the downstream enhancer flow. 1. Verify Rube MCP is available by confirming RUBESEARCHTOOLS responds 2. Call RUBEMANAGECONNECTIONS with toolkit youtube 3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth 4. Confirm connection status shows ACTIVE before running any workflows 5. YOUTUBEUPLOADVIDEO - Upload a new video [Required] 6. YOUTUBEUPDATEVIDEO - Update title, description, tags, privacy [Optional] 7. YOUTUBEUPDATETHUMBNAIL - Set a custom thumbnail [Optional] ### Imported Workflow Notes #### Imported: Setup **Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works. 1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds 2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube` 3. If connection is not ACTIVE, follow the returned auth link to complete Google OAuth 4. Confirm connection status shows ACTIVE before running any workflows #### Imported: Core Workflows ### 1. Upload and Manage Videos **When to use**: User wants to upload a video or update video metadata **Tool sequence**: 1. `YOUTUBE_UPLOAD_VIDEO` - Upload a new video [Required] 2. `YOUTUBE_UPDATE_VIDEO` - Update title, description, tags, privacy [Optional] 3. `YOUTUBE_UPDATE_THUMBNAIL` - Set a custom thumbnail [Optional] **Key parameters**: - `title`: Video title (max 100 characters) - `description`: Video description (max 5000 bytes) - `tags`: Array of keyword tags - `categoryId`: YouTube category ID (e.g., '22' for People & Blogs) - `privacyStatus`: 'public', 'private', or 'unlisted' - `videoFilePath`: Object with `{name, mimetype, s3key}` for the video file **Pitfalls**: - UPLOAD_VIDEO consumes high quota; prefer UPDATE_VIDEO for metadata-only changes - videoFilePath must be an object with s3key, not a raw file path or URL - Tags total must not exceed 500 characters including separators - Angle brackets `< >` in tags are automatically stripped - Description limit is 5000 bytes, not characters (multibyte chars count more) ### 2. Search YouTube Content **When to use**: User wants to find videos, channels, or playlists **Tool sequence**: 1. `YOUTUBE_SEARCH_YOU_TUBE` - Search for content [Required] 2. `YOUTUBE_VIDEO_DETAILS` - Get full details for a specific video [Optional] 3. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get details for multiple videos [Optional] **Key parameters**: - `q`: Search query (supports exact phrases, exclusions, channel handles) - `type`: 'video', 'channel', or 'playlist' - `maxResults`: Results per page (1-50) - `pageToken`: For pagination **Pitfalls**: - Search endpoint only returns 'snippet' part; use VIDEO_DETAILS for statistics - Search results are capped at 500 total items - Search has higher quota cost (100 units) vs list endpoints (1 unit) - BATCH video details practical limit is ~50 IDs per call; chunk larger sets ### 3. Manage Playlists **When to use**: User wants to create playlists or manage playlist contents **Tool sequence**: 1. `YOUTUBE_LIST_USER_PLAYLISTS` - List user's existing playlists [Optional] 2. `YOUTUBE_CREATE_PLAYLIST` - Create a new playlist [Optional] 3. `YOUTUBE_ADD_VIDEO_TO_PLAYLIST` - Add a video to a playlist [Optional] 4. `YOUTUBE_LIST_PLAYLIST_ITEMS` - List videos in a playlist [Optional] **Key parameters**: - `playlistId`: Playlist ID ('PL...' for user-created, 'UU...' for uploads) - `part`: Resource parts to include (e.g., 'snippet,contentDetails') - `maxResults`: Items per page (1-50) - `pageToken`: Pagination token from previous response **Pitfalls**: - Do NOT pass channel IDs ('UC...') as playlist IDs; convert 'UC' to 'UU' for uploads - Large playlists require pagination via pageToken; follow nextPageToken until absent - items[].id is not the videoId; use items[].snippet.resourceId.videoId - Creating duplicate playlist names is allowed; check existing playlists first ### 4. Get Channel and Video Analytics **When to use**: User wants to analyze channel performance or video metrics **Tool sequence**: 1. `YOUTUBE_GET_CHANNEL_ID_BY_HANDLE` - Resolve a handle to channel ID [Prerequisite] 2. `YOUTUBE_GET_CHANNEL_STATISTICS` - Get channel subscriber/view/video counts [Required] 3. `YOUTUBE_LIST_CHANNEL_VIDEOS` - List all videos from a channel [Optional] 4. `YOUTUBE_GET_VIDEO_DETAILS_BATCH` - Get per-video statistics [Optional] 5. `YOUTUBE_GET_CHANNEL_ACTIVITIES` - Get recent channel activities [Optional] **Key parameters**: - `channelId`: Channel ID ('UC...'), handle ('@handle'), or 'me' - `forHandle`: Channel handle (e.g., '@Google') - `id`: Comma-separated video IDs for batch details - `parts`: Resource parts to include (e.g., 'snippet,statistics') **Pitfalls**: - Channel statistics are lifetime totals, not per-period - BATCH video details may return fewer items than requested for private/deleted videos - Response data may be nested under `data` or `data_preview`; parse defensively - contentDetails.duration uses ISO 8601 format (e.g., 'PT4M13S') ### 5. Manage Subscriptions and Comments **When to use**: User wants to subscribe to channels or view video comments **Tool sequence**: 1. `YOUTUBE_SUBSCRIBE_CHANNEL` - Subscribe to a channel [Optional] 2. `YOUTUBE_UNSUBSCRIBE_CHANNEL` - Unsubscribe from a channel [Optional] 3. `YOUTUBE_LIST_USER_SUBSCRIPTIONS` - List subscriptions [Optional] 4. `YOUTUBE_LIST_COMMENT_THREADS` - List comments on a video [Optional] **Key parameters**: - `channelId`: Channel to subscribe/unsubscribe - `videoId`: Video ID for comment threads - `maxResults`: Results per page - `pageToken`: Pagination token **Pitfalls**: - Subscribing to an already-subscribed channel may return an error - Comment threads return top-level comments with up to 5 replies each - Comments may be disabled on some videos - Unsubscribe requires the subscription ID, not the channel ID #### Imported: Prerequisites - Rube MCP must be connected (RUBE_SEARCH_TOOLS available) - Active YouTube connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `youtube` - Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas ## Examples ### Example 1: Ask for the upstream workflow directly ```text Use @youtube-automation to handle . Start from the copied upstream workflow, load only the files that change the outcome, and keep provenance visible in the answer. ``` **Explanation:** This is the safest starting point when the operator needs the imported workflow, but not the entire repository. ### Example 2: Ask for a provenance-grounded review ```text Review @youtube-automation against metadata.json and ORIGIN.md, then explain which copied upstream files you would load first and why. ``` **Explanation:** Use this before review or troubleshooting when you need a precise, auditable explanation of origin and file selection. ### Example 3: Narrow the copied support files before execution ```text Use @youtube-automation for . Load only the copied references, examples, or scripts that change the outcome, and name the files explicitly before proceeding. ``` **Explanation:** This keeps the skill aligned with progressive disclosure instead of loading the whole copied package by default. ### Example 4: Build a reviewer packet ```text Review @youtube-automation using the copied upstream files plus provenance, then summarize any gaps before merge. ``` **Explanation:** This is useful when the PR is waiting for human review and you want a repeatable audit packet. ## Best Practices Treat the generated public skill as a reviewable packaging layer around the upstream repository. The goal is to keep provenance explicit and load only the copied source material that materially improves execution. - Keep the imported skill grounded in the upstream repository; do not invent steps that the source material cannot support. - Prefer the smallest useful set of support files so the workflow stays auditable and fast to review. - Keep provenance, source commit, and imported file paths visible in notes and PR descriptions. - Point directly at the copied upstream files that justify the workflow instead of relying on generic review boilerplate. - Treat generated examples as scaffolding; adapt them to the concrete task before execution. - Route to a stronger native skill when architecture, debugging, design, or security concerns become dominant. ## Troubleshooting ### Problem: The operator skipped the imported context and answered too generically **Symptoms:** The result ignores the upstream workflow in `plugins/antigravity-awesome-skills-claude/skills/youtube-automation`, fails to mention provenance, or does not use any copied source files at all. **Solution:** Re-open `metadata.json`, `ORIGIN.md`, and the most relevant copied upstream files. Check the `external_source` block first, then restate the provenance before continuing. ### Problem: The imported workflow feels incomplete during review **Symptoms:** Reviewers can see the generated `SKILL.md`, but they cannot quickly tell which references, examples, or scripts matter for the current task. **Solution:** Point at the exact copied references, examples, scripts, or assets that justify the path you took. If the gap is still real, record it in the PR instead of hiding it. ### Problem: The task drifted into a different specialization **Symptoms:** The imported skill starts in the right place, but the work turns into debugging, architecture, design, security, or release orchestration that a native skill handles better. **Solution:** Use the related skills section to hand off deliberately. Keep the imported provenance visible so the next skill inherits the right context instead of starting blind. ## Related Skills - `@00-andruia-consultant` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@00-andruia-consultant-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@10-andruia-skill-smith` - Use when the work is better handled by that native specialization after this imported skill establishes context. - `@10-andruia-skill-smith-v2` - Use when the work is better handled by that native specialization after this imported skill establishes context. ## Additional Resources Use this support matrix and the linked files below as the operator packet for this imported skill. They should reflect real copied source material, not generic scaffolding. | Resource family | What it gives the reviewer | Example path | | --- | --- | --- | | `references` | copied reference notes, guides, or background material from upstream | `references/n/a` | | `examples` | worked examples or reusable prompts copied from upstream | `examples/n/a` | | `scripts` | upstream helper scripts that change execution or validation | `scripts/n/a` | | `agents` | routing or delegation notes that are genuinely part of the imported package | `agents/n/a` | | `assets` | supporting assets or schemas copied from the source package | `assets/n/a` | ### Imported Reference Notes #### Imported: Quick Reference | Task | Tool Slug | Key Params | |------|-----------|------------| | Upload video | YOUTUBE_UPLOAD_VIDEO | title, description, tags, categoryId, privacyStatus, videoFilePath | | Update video | YOUTUBE_UPDATE_VIDEO | video_id, title, description, tags | | Set thumbnail | YOUTUBE_UPDATE_THUMBNAIL | videoId, thumbnailUrl | | Search YouTube | YOUTUBE_SEARCH_YOU_TUBE | q, type, maxResults | | Video details | YOUTUBE_VIDEO_DETAILS | id, part | | Batch video details | YOUTUBE_GET_VIDEO_DETAILS_BATCH | id, parts | | List playlists | YOUTUBE_LIST_USER_PLAYLISTS | maxResults, pageToken | | Create playlist | YOUTUBE_CREATE_PLAYLIST | (check schema) | | Add to playlist | YOUTUBE_ADD_VIDEO_TO_PLAYLIST | (check schema) | | List playlist items | YOUTUBE_LIST_PLAYLIST_ITEMS | playlistId, maxResults | | Channel statistics | YOUTUBE_GET_CHANNEL_STATISTICS | id/forHandle/mine | | List channel videos | YOUTUBE_LIST_CHANNEL_VIDEOS | channelId, maxResults | | Channel ID by handle | YOUTUBE_GET_CHANNEL_ID_BY_HANDLE | channel_handle | | Subscribe | YOUTUBE_SUBSCRIBE_CHANNEL | channelId | | List subscriptions | YOUTUBE_LIST_USER_SUBSCRIPTIONS | (check schema) | | List comments | YOUTUBE_LIST_COMMENT_THREADS | videoId | | Channel activities | YOUTUBE_GET_CHANNEL_ACTIVITIES | (check schema) | #### Imported: Common Patterns ### Channel ID Resolution **Handle to Channel ID**: ``` 1. Call YOUTUBE_GET_CHANNEL_ID_BY_HANDLE with '@handle' 2. Extract channelId from response 3. Use in subsequent channel operations ``` **Uploads Playlist**: ``` 1. Get channel ID (starts with 'UC') 2. Replace 'UC' prefix with 'UU' to get uploads playlist ID 3. Use with LIST_PLAYLIST_ITEMS to enumerate all videos ``` ### Pagination - Set `maxResults` (max 50 per page) - Check response for `nextPageToken` - Pass token as `pageToken` in next request - Continue until `nextPageToken` is absent ### Batch Video Details - Collect video IDs from search or playlist listings - Chunk into groups of ~50 IDs - Call GET_VIDEO_DETAILS_BATCH per chunk - Merge results across chunks #### Imported: Known Pitfalls **Quota Management**: - YouTube API has a daily quota limit (default 10,000 units) - Upload = 1600 units; search = 100 units; list = 1 unit - Prefer list endpoints over search when possible - Monitor quota usage to avoid hitting daily limits **ID Formats**: - Video IDs: 11-character alphanumeric strings - Channel IDs: Start with 'UC' followed by 22 characters - Playlist IDs: Start with 'PL' (user) or 'UU' (uploads) - Do not confuse channel IDs with playlist IDs **Thumbnails**: - Custom thumbnails require channel phone verification - Must be JPG, PNG, or GIF; under 2MB - Recommended: 1280x720 resolution (16:9 aspect ratio) **Response Parsing**: - Statistics values are returned as strings, not integers; cast before math - Duration uses ISO 8601 format (PT#H#M#S) - Batch responses may wrap data under different keys #### Imported: Limitations - Use this skill only when the task clearly matches the scope described above. - Do not treat the output as a substitute for environment-specific validation, testing, or expert review. - Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.