Communitygithub.com

NeverSight/learn-skills.dev

通过 Rube MCP(Composio)自动化 YouTube 任务:上传视频、管理播放列表、搜索内容、获取分析数据以及处理评论。始终优先搜索工具以获取当前架构。

learn-skills.dev 是什么?

该技能(Skill)专为 AI 代理(如 Claude Code、Cursor、Codex)设计,通过 Composio 的 YouTube 工具包和 Rube MCP 协议实现 YouTube 任务的全面自动化。它支持视频上传与管理、内容搜索、播放列表创建与编辑、频道与视频分析、订阅管理以及评论互动等核心工作流。技能文档强调使用前必须调用 RUBE_SEARCH_TOOLS 获取最新的工具架构,并通过 RUBE_MANAGE_CONNECTIONS 建立活跃的 YouTube 连接。此外,该技能详细说明了每个工作流的最佳实践、关键参数及常见陷阱(如配额管理、ID 格式转换、响应解析),帮助开发者高效、可靠地构建 YouTube 自动化流程。

兼容平台~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 单位),而列表端点仅需 1 单位
  • 批量获取视频详情的实际限制约为每次调用 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')

注意事项:

  • 频道统计数据是生命周期总计,而非特定时间段数据
  • 对于私有或已删除的视频,批量视频详情返回的项目数可能少于请求数
  • 响应数据可能嵌套在 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.

相关技能