youtube-automation – skill Viết lách & Nội dung cho agent AI
Tự động hóa tác vụ YouTube qua Rube MCP (Composio): tải video lên, quản lý playlist, tìm kiếm nội dung, lấy phân tích và xử lý bình luận. Luôn tìm công cụ trước để lấy schema hiện tại.
Cài skill youtube-automation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-automation-5b358.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /youtube-automation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-automation-5b358.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $youtube-automation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-automation-5b358.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /youtube-automation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/youtube-automation-5b358.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /youtube-automation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
YouTube Automation via Rube MCP
Automate YouTube operations through Composio's YouTube toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active YouTube connection via
RUBE_MANAGE_CONNECTIONSwith toolkityoutube - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
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
Publishing and account boundaries
Verify the exact connected channel and target video/playlist IDs. Upload/public privacy changes, comments and subscriptions require explicit requested effects; use private staging when publication is not authorized. Confirm rights/consent for media and protect private/unlisted links. Read existing metadata before partial updates so omitted mutable fields are not accidentally cleared by an endpoint’s replacement semantics. Track the returned upload/video ID and inspect processing/status before retrying an uncertain upload. Verify current quota costs/limits in live schemas and official YouTube docs; values below are historical examples.
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 tagscategoryId: 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 result constraints depend on parameters/account; pagination is not proof of complete channel inventory
- 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 a channel ID as playlistId; read the uploads playlist ID from channel contentDetails
- 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 detailsparts: 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
dataordata_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/unsubscribevideoId: Video ID for comment threadsmaxResults: Results per pagepageToken: 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
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 operationsUploads Playlist:
1. Get channel ID (starts with 'UC')
2. Read contentDetails.relatedPlaylists.uploads from the actual channel resource
3. Use with LIST_PLAYLIST_ITEMS to enumerate all videosPagination
- Set
maxResults(max 50 per page) - Check response for
nextPageToken - Pass token as
pageTokenin next request - Continue until
nextPageTokenis 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
Known Pitfalls
Quota Management:
- YouTube API has a daily quota limit (default 10,000 units)
- Verify per-method quota costs before planning bulk operations; do not assume historical upload/list costs remain current.
- 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
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 |
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- youtube-full – Lấy transcript YouTube, tìm video, duyệt kênh và trích xuất playlist qua TranscriptAPI —…
- youtube-notetaker – Biến các bài nói trên YouTube thành ghi chú học tập cục bộ với slide, transcript, chú…
- youtube-seo-optimizer – Tạo gói SEO YouTube và podcast hoàn chỉnh với từ khóa được nghiên cứu trực tiếp — tiêu…
- youtube-summarizer – Trích xuất transcript từ video YouTube và tạo bản tóm tắt chi tiết, toàn diện bằng các…
- youtube-transcript – Lấy transcript YouTube qua DeepAPI hoặc công cụ dự phòng cục bộ và lưu đầu ra văn bản…
- youtube-transcript-skills – Lấy transcript video YouTube, tìm video/kênh, duyệt kênh và trích xuất playlist qua API…
- baoyu-article-illustrator – Phân tích cấu trúc bài viết, xác định vị trí cần minh họa, tạo hình minh họa theo cách…
- aeo – Kỹ năng Tối ưu hóa Công cụ Trả lời (AEO) — tối ưu nội dung để được các mô hình ngôn ngữ…