Skip to main content
skill CX Codex

tiktok-automation — Claude Code skill: what it does, how to install

tiktok-automation automates TikTok video uploads, photo publishing, and profile stats inspection through Rube MCP and Composio.

MIT 140 installs ★ 3,785 updated 2026-10-25

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add davepoon/buildwithclaude --skill tiktok-automation -a claude-code
Open on GitHub

What tiktok-automation does

This skill runs TikTok workflows via Composio tools exposed by Rube MCP. It handles video uploads (MP4 and WebM up to 4GB and 10 minutes), photo posts (JPEG, PNG, WebP), fetching published video lists, and viewing account metrics like follower counts or total likes.

Video publishing requires a two-step cycle: uploading the file with TIKTOK_UPLOAD_VIDEO, polling TIKTOK_FETCH_PUBLISH_STATUS until processing finishes, and calling TIKTOK_PUBLISH_VIDEO with explicit privacy flags like PUBLIC_TO_EVERYONE or SELF_ONLY. Without the https://rube.app/mcp endpoint and an active TikTok OAuth connection, calls will fail.

What it helps with

  • Upload and publish MP4 or WebM videos with privacy settings
  • Post JPEG, PNG, or WebP photos to an account
  • Fetch authenticated profile metrics and follower counts
  • List previously published videos using cursor pagination

Example prompts for the agent

  • Check my TikTok connection status via Rube MCP and fetch my profile stats
  • Upload clip.mp4 to TikTok, poll the status, and publish it publicly
  • List my recent published TikTok videos

How to install tiktok-automation

1Skills CLI (Vercel)

npx skills add davepoon/buildwithclaude --skill tiktok-automation -a claude-code

2Manually: put the files in place

~/.claude/skills/tiktok-automation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tiktok-automation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tiktok-automation

How do I install tiktok-automation in Claude Code?

Run npx skills add davepoon/buildwithclaude --skill tiktok-automation -a claude-code in your terminal.

What does tiktok-automation do?

It connects your coding agent to TikTok via Rube MCP to handle video uploads, photo posts, and account statistics retrieval.

What prerequisites are required before using it?

Add https://rube.app/mcp to your MCP client config and authenticate via RUBE_MANAGE_CONNECTIONS with the tiktok toolkit.

Source text

SKILL.md · MIT
---
name: tiktok-automation
description: "Automate TikTok tasks via Rube MCP (Composio): upload/publish videos, post photos, manage content, and view user profiles/stats. Always search tools first for current schemas."
requires:
  mcp: [rube]
category: social-media
---

# TikTok Automation via Rube MCP

Automate TikTok content creation and profile operations through Composio's TikTok toolkit via Rube MCP.

**Toolkit docs**: [composio.dev/toolkits/tiktok](https://composio.dev/toolkits/tiktok)

## Prerequisites

- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active TikTok connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `tiktok`
- Always call `RUBE_SEARCH_TOOLS` first 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 `tiktok`
3. If connection is not ACTIVE, follow the returned auth link to complete TikTok OAuth
4. Confirm connection status shows ACTIVE before running any workflows

## Core Workflows

### 1. Upload and Publish a Video

**When to use**: User wants to upload a video and publish it to TikTok

**Tool sequence**:
1. `TIKTOK_UPLOAD_VIDEO` or `TIKTOK_UPLOAD_VIDEOS` - Upload video file(s) [Required]
2. `TIKTOK_FETCH_PUBLISH_STATUS` - Check upload/processing status [Required]
3. `TIKTOK_PUBLISH_VIDEO` - Publish the uploaded video [Required]

**Key parameters for upload**:
- `video`: Video file object with `s3key`, `mimetype`, `name`
- `title`: Video title/caption

**Key parameters for publish**:
- `publish_id`: ID returned from upload step
- `title`: Video caption text
- `privacy_level`: 'PUBLIC_TO_EVERYONE', 'MUTUAL_FOLLOW_FRIENDS', 'FOLLOWER_OF_CREATOR', 'SELF_ONLY'
- `disable_duet`: Disable duet feature
- `disable_stitch`: Disable stitch feature
- `disable_comment`: Disable comments

**Pitfalls**:
- Video upload and publish are TWO separate steps; upload first, then publish
- After upload, poll FETCH_PUBLISH_STATUS until processing is complete before publishing
- Video must meet TikTok requirements: MP4/WebM format, max 10 minutes, max 4GB
- Caption/title has character limits; check current TikTok guidelines
- Privacy level strings are case-sensitive and must match exactly
- Processing may take 30-120 seconds depending on video size

### 2. Post a Photo

**When to use**: User wants to post a photo to TikTok

**Tool sequence**:
1. `TIKTOK_POST_PHOTO` - Upload and post a photo [Required]
2. `TIKTOK_FETCH_PUBLISH_STATUS` - Check processing status [Optional]

**Key parameters**:
- `photo`: Photo file object with `s3key`, `mimetype`, `name`
- `title`: Photo caption text
- `privacy_level`: Privacy setting for the post

**Pitfalls**:
- Photo posts are a newer TikTok feature; availability may vary by account type
- Supported formats: JPEG, PNG, WebP
- Image size and dimension limits apply; check current TikTok guidelines

### 3. List and Manage Videos

**When to use**: User wants to view their published videos

**Tool sequence**:
1. `TIKTOK_LIST_VIDEOS` - List user's published videos [Required]

**Key parameters**:
- `max_count`: Number of videos to return per page
- `cursor`: Pagination cursor for next page

**Pitfalls**:
- Only returns the authenticated user's own videos
- Response includes video metadata: id, title, create_time, share_url, duration, etc.
- Pagination uses cursor-based approach; check for `has_more` and `cursor` in response
- Recently published videos may not appear immediately in the list

### 4. View User Profile and Stats

**When to use**: User wants to check their TikTok profile info or account statistics

**Tool sequence**:
1. `TIKTOK_GET_USER_PROFILE` - Get full profile information [Required]
2. `TIKTOK_GET_USER_STATS` - Get account statistics [Optional]
3. `TIKTOK_GET_USER_BASIC_INFO` - Get basic user info [Alternative]

**Key parameters**: (no required parameters; returns data for authenticated user)

**Pitfalls**:
- Profile data is for the authenticated user only; cannot view other users' profiles
- Stats include follower count, following count, video count, likes received
- `GET_USER_PROFILE` returns more details than `GET_USER_BASIC_INFO`
- Stats may have slight delays; not real-time

### 5. Check Publish Status

**When to use**: User wants to check the status of a content upload or publish operation

**Tool sequence**:
1. `TIKTOK_FETCH_PUBLISH_STATUS` - Poll for status updates [Required]

**Key parameters**:
- `publish_id`: The publish ID from a previous upload/publish operation

**Pitfalls**:
- Status values include processing, success, and failure states
- Poll at reasonable intervals (5-10 seconds) to avoid rate limits
- Failed publishes include error details in the response
- Content moderation may cause delays or rejections after processing

## Common Patterns

### Video Publish Flow

```
1. Upload video via TIKTOK_UPLOAD_VIDEO -> get publish_id
2. Poll TIKTOK_FETCH_PUBLISH_STATUS with publish_id until complete
3. If status is ready, call TIKTOK_PUBLISH_VIDEO with final settings
4. Optionally poll status again to confirm publication
```

### Pagination

- Use `cursor` from previous response for next page
- Check `has_more` boolean to determine if more results exist
- `max_count` controls page size

## Known Pitfalls

**Content Requirements**:
- Videos: MP4/WebM, max 4GB, max 10 minutes
- Photos: JPEG/PNG/WebP
- Captions: Character limits vary by region
- Content must comply with TikTok community guidelines

**Authentication**:
- OAuth tokens have scopes; ensure video.upload and video.publish are authorized
- Tokens expire; re-authenticate if operations fail with 401

**Rate Limits**:
- TikTok API has strict rate limits per application
- Implement exponential backoff on 429 responses
- Upload operations have daily limits

**Response Parsing**:
- Response data may be nested under `data` or `data.data`
- Parse defensively with fallback patterns
- Publish IDs are strings; use exactly as returned

## Quick Reference

| Task | Tool Slug | Key Params |
|------|-----------|------------|
| Upload video | TIKTOK_UPLOAD_VIDEO | video, title |
| Upload multiple videos | TIKTOK_UPLOAD_VIDEOS | videos |
| Publish video | TIKTOK_PUBLISH_VIDEO | publish_id, title, privacy_level |
| Post photo | TIKTOK_POST_PHOTO | photo, title, privacy_level |
| List videos | TIKTOK_LIST_VIDEOS | max_count, cursor |
| Get profile | TIKTOK_GET_USER_PROFILE | (none) |
| Get user stats | TIKTOK_GET_USER_STATS | (none) |
| Get basic info | TIKTOK_GET_USER_BASIC_INFO | (none) |
| Check publish status | TIKTOK_FETCH_PUBLISH_STATUS | publish_id |

---
*Powered by [Composio](https://composio.dev)*

© davepoon · MIT · davepoon/buildwithclaude

Similar skills

All skills for Automation and no-code: n8n, Zapier, Make →

From the same set235

The whole set →
route-handlers route-handlers guides coding agents in building Next.js App Router API routes, parsing incoming payloads, and streaming LLM responses. CX Codex +1 152installs canva-automation canva-automation controls Canva designs, asset uploads, folders, and brand template autofill via Rube MCP. CX Codex +1 149installs google-calendar-automation google-calendar-automation — a skill for creating Google Calendar events, finding open time, and managing attendees through Rube MCP. CX Codex +1 142installs outlook-automation outlook-automation is a Claude Code skill that automates Outlook email, calendar, contacts, and folders through Rube MCP. Search messages by criteria and manage events and contacts from your agent. CX Codex +1 140installs agent-analytics Sets up lightweight web analytics, funnels, and A/B experiments via CLI. Gives AI agents direct access to traffic metrics and conversion data across projects. CX Codex +1 137installs oiloil-ui-ux-guide oiloil-ui-ux-guide is a Claude Code skill that gives interface design guidance or reviews an existing UI with prioritized fixes. CX Codex +1 134installs ios-hig-design-guide ios-hig-design-guide is a Claude Code skill that turns Apple Human Interface Guidelines into specs for iOS features. It activates for questions about UI rules, accessibility, components, or interaction patterns. CX Codex +1 133installs google-drive-automation google-drive-automation — a skill that automates Google Drive workflows: uploads and downloads files, searches documents, creates folders, and manages permissions. Runs via Rube MCP and Composio with an active Google Drive connection. CX Codex +1 133installs

Project sponsors

Companies that keep this analytics open