Communitygithub.com

NeverSight/learn-skills.dev

通过 Rube MCP (Composio) 自动化 TikTok 任务:上传/发布视频、发布照片、管理内容以及查看用户资料/统计信息。请始终先搜索工具以获取当前架构。

learn-skills.dev 是什么?

该技能通过 Composio 的 TikTok 工具包,经由 Rube MCP,实现了 TikTok 内容创作和资料操作的自动化。它支持在支持 MCP 的 AI 代理平台(如 Claude Code、Cursor 等)上运行,前提是已配置并连接了 Rube MCP。技能的核心工作流程包括上传和发布视频、发布图片、管理已发布的视频列表以及查看用户资料和统计信息。关键最佳实践是,任何操作前都必须调用 `RUBE_SEARCH_TOOLS` 获取最新的工具架构,并通过 `RUBE_MANAGE_CONNECTIONS` 建立并验证 TikTok OAuth 连接。技能文档详细列出了每个工作流程的工具调用序列、参数说明和常见陷阱,例如视频上传与发布是分离的步骤、处理时间、分页机制以及内容格式和速率限制等。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/aaaaqwq/agi-super-skills/tiktok-automation

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

通过 Rube MCP 自动化 TikTok

通过 Composio 的 TikTok 工具包,经由 Rube MCP 自动化 TikTok 内容创作和资料操作。

前置条件

  • 必须连接 Rube MCP(RUBE_SEARCH_TOOLS 可用)
  • 通过 RUBE_MANAGE_CONNECTIONS 建立并激活 TikTok 连接,工具包为 tiktok
  • 务必首先调用 RUBE_SEARCH_TOOLS 以获取当前工具架构

设置

获取 Rube MCP:在客户端配置中,将 https://rube.app/mcp 添加为 MCP 服务器。无需 API 密钥——只需添加端点即可使用。

  1. 确认 Rube MCP 已可用:确认 RUBE_SEARCH_TOOLS 有响应
  2. 调用 RUBE_MANAGE_CONNECTIONS,工具包指定为 tiktok
  3. 如果连接状态不是 ACTIVE,请按照返回的认证链接完成 TikTok OAuth
  4. 在运行任何工作流之前,确认连接状态显示为 ACTIVE

核心工作流

1. 上传并发布视频

适用场景:用户想要上传视频并在 TikTok 上发布

工具调用顺序:

  1. TIKTOK_UPLOAD_VIDEO 或 TIKTOK_UPLOAD_VIDEOS - 上传视频文件 [必需]
  2. TIKTOK_FETCH_PUBLISH_STATUS - 检查上传/处理状态 [必需]
  3. TIKTOK_PUBLISH_VIDEO - 发布已上传的视频 [必需]

上传关键参数:

  • video:视频文件对象,包含 s3key、mimetype、name
  • title:视频标题/说明

发布关键参数:

  • publish_id:上传步骤返回的 ID
  • title:视频说明文本
  • privacy_level:隐私级别,可选值:'PUBLIC_TO_EVERYONE'、'MUTUAL_FOLLOW_FRIENDS'、'FOLLOWER_OF_CREATOR'、'SELF_ONLY'
  • disable_duet:禁用合拍功能
  • disable_stitch:禁用剪接功能
  • disable_comment:禁用评论

注意事项:

  • 视频上传和发布是两个独立的步骤;先上传,再发布
  • 上传后,轮询 FETCH_PUBLISH_STATUS 直到处理完成,再发布
  • 视频必须符合 TikTok 要求:MP4/WebM 格式,最长 10 分钟,最大 4GB
  • 说明/标题有字符限制,请查看当前 TikTok 指南
  • 隐私级别字符串区分大小写,必须完全匹配
  • 根据视频大小,处理可能需要 30-120 秒

2. 发布照片

适用场景:用户想要在 TikTok 上发布照片

工具调用顺序:

  1. TIKTOK_POST_PHOTO - 上传并发布照片 [必需]
  2. TIKTOK_FETCH_PUBLISH_STATUS - 检查处理状态 [可选]

关键参数:

  • photo:照片文件对象,包含 s3key、mimetype、name
  • title:照片说明文本
  • privacy_level:帖子的隐私设置

注意事项:

  • 照片发布是较新的 TikTok 功能;可用性可能因账户类型而异
  • 支持的格式:JPEG、PNG、WebP
  • 图像大小和尺寸限制适用,请查看当前 TikTok 指南

3. 列出并管理视频

适用场景:用户想要查看已发布的视频

工具调用顺序:

  1. TIKTOK_LIST_VIDEOS - 列出已发布的视频 [必需]

关键参数:

  • max_count:每页返回的视频数量
  • cursor:下一页的分页游标

注意事项:

  • 仅返回认证用户自己的视频
  • 响应包含视频元数据:id、标题、创建时间、分享链接、时长等
  • 分页基于游标实现;检查响应中的 has_more 和 cursor 字段
  • 新发布的视频可能不会立即出现在列表中

4. 查看用户资料和统计信息

适用场景:用户想要查看自己的 TikTok 资料信息或账户统计

工具调用顺序:

  1. TIKTOK_GET_USER_PROFILE - 获取完整资料信息 [必需]
  2. TIKTOK_GET_USER_STATS - 获取账户统计 [可选]
  3. TIKTOK_GET_USER_BASIC_INFO - 获取基本信息 [替代方案]

关键参数:(无必需参数;返回认证用户的数据)

注意事项:

  • 资料数据仅属于认证用户;无法查看其他用户的资料
  • 统计信息包括关注者数量、关注数量、视频数量、收到的点赞数
  • GET_USER_PROFILE 返回的详细信息比 GET_USER_BASIC_INFO 更多
  • 统计信息可能有轻微延迟;并非实时数据

5. 检查发布状态

适用场景:用户想要检查内容上传或发布操作的状态

工具调用顺序:

  1. TIKTOK_FETCH_PUBLISH_STATUS - 轮询状态更新 [必需]

关键参数:

  • publish_id:来自先前上传/发布操作的发布 ID

注意事项:

  • 状态值包括 processing、success 和 failure 状态
  • 以合理间隔(5-10 秒)轮询,以避免频率限制
  • 失败的发布会在响应中包含错误详情
  • 内容审核可能会导致处理延迟或拒绝

常见模式

视频发布流程

1. 通过 TIKTOK_UPLOAD_VIDEO 上传视频 -> 获取 publish_id
2. 使用 publish_id 轮询 TIKTOK_FETCH_PUBLISH_STATUS 直到完成
3. 如果状态为 ready,调用 TIKTOK_PUBLISH_VIDEO 并传入最终设置
4. 可选地再次轮询状态以确认发布完成

分页

  • 使用前一次响应中的 cursor 获取下一页
  • 检查 has_more 布尔值以确定是否还有更多结果
  • max_count 控制页面大小

已知问题

内容要求:

  • 视频:MP4/WebM,最大 4GB,最长 10 分钟
  • 照片:JPEG/PNG/WebP
  • 说明:字符限制因地区而异
  • 内容必须符合 TikTok 社区准则

认证:

  • OAuth 令牌具有作用域;确保 video.upload 和 video.publish 权限已授权
  • 令牌会过期;如果操作返回 401,请重新认证

速率限制:

  • TikTok API 对每个应用程序有严格的速率限制
  • 对于 429 响应,实现指数退避策略
  • 上传操作有每日限制

响应解析:

  • 响应数据可能嵌套在 data 或 data.data 下
  • 使用防御性解析和回退模式
  • 发布 ID 是字符串;请完全按照返回的值使用

快速参考

任务工具名称关键参数
上传视频TIKTOK_UPLOAD_VIDEOvideo, title
上传多个视频TIKTOK_UPLOAD_VIDEOSvideos
发布视频TIKTOK_PUBLISH_VIDEOpublish_id, title, privacy_level
发布照片TIKTOK_POST_PHOTOphoto, title, privacy_level
列出视频TIKTOK_LIST_VIDEOSmax_count, cursor
获取资料TIKTOK_GET_USER_PROFILE(无)
获取用户统计TIKTOK_GET_USER_STATS(无)
获取基本信息TIKTOK_GET_USER_BASIC_INFO(无)
检查发布状态TIKTOK_FETCH_PUBLISH_STATUSpublish_id

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.

相关技能