tiktok
Publish a creator's video directly to TikTok after their review and confirmation, or upload it to drafts when requested.
от AceDataCloud★ 17 звёзд на GitHub
Установить tiktok в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Call the TikTok API v2 with curl + jq. The user's OAuth bearer token is in
$TIKTOK_TOKEN; every call needs Authorization: Bearer $TIKTOK_TOKEN. Base
URL: https://open.tiktokapis.com/v2.
T="https://open.tiktokapis.com/v2"; AUTH="Authorization: Bearer $TIKTOK_TOKEN"
Responses wrap everything in {"data":…,"error":{"code","message","log_id"}}.
Check error.code, not just the HTTP status — several real failures
(spam_risk_too_many_posts, spam_risk_user_banned_from_posting,
reached_active_user_cap) come back as HTTP 200 with a non-ok code. Show
error.message verbatim. 401 / access_token_invalid = re-connect TikTok.
Read the account
# Basic profile — open_id identifies the user for every posting call
curl -sS -H "$AUTH" "$T/user/info/?fields=open_id,display_name,avatar_url" \
| jq '.data.user'
Follower / like counts, bio, and the user's video list need the Display API
scopes (user.info.stats, user.info.profile, video.list), which this app
has not been granted — don't call /v2/video/list/ or request those fields,
they will fail with scope_not_authorized.
Direct Post to the creator's profile
The production app has passed TikTok's Content Posting API audit. A direct post
publishes to the creator's profile after processing; it is not a draft. Never
choose a privacy level, interaction setting, or disclosure on the creator's
behalf. Never retry an init request while its publish_id is processing.
Required sequence:
Identify the exact video and its source. Measure its duration and preview it. A server-hosted video must use a public, non-redirecting HTTPS URL under the verified
acedata.clouddomain (PULL_FROM_URL). A creator-selected device-local MP4 may useFILE_UPLOADand must be no larger than 64 MB.Query the selected connection with
python3 skills/tiktok/scripts/tiktok.py creator-info. Checkcreator_usernameagainst the account the creator named. Copy the current nickname, avatar,privacy_level_options, interaction restrictions, and maximum duration intorequest_action_confirmationwithkind: "tiktok.publish"and the real video preview. Do not invent or preselect a privacy option.If cancelled, stop. If confirmed, use exactly the card's returned
title,privacy_level,disable_comment,disable_duet,disable_stitch,brand_organic_toggle, andbrand_content_toggle. Addis_aigc: truefor AI-generated content andfalseotherwise. For an Ace Data Cloud brand promotion, the creator must select the own-brand promotional disclosure. Store these values in a temporary JSON file outside the repository.Submit once after confirmation, with the exact selected account:
# Server-hosted video on the verified domain: python3 skills/tiktok/scripts/tiktok.py post-url "$VIDEO_URL" \ --duration-sec "$DURATION" \ --expected-creator-username "$CONFIRMED_CREATOR_USERNAME" \ --values-file "$VALUES_JSON" --confirmed # Creator-selected device-local MP4: python3 skills/tiktok/scripts/tiktok.py post-file video.mp4 \ --duration-sec "$DURATION" \ --expected-creator-username "$CONFIRMED_CREATOR_USERNAME" \ --values-file "$VALUES_JSON" --confirmedBoth commands re-query creator info and reject a different account, an unavailable privacy level, disabled interactions, or an overlong video. Never substitute confirmed fields after this check.
Poll the returned
publish_idwithstatusuntilPUBLISH_COMPLETEor a terminal failure. Report the actual outcome. An accepted init or successful file transfer is not a published post.
Upload the video to the user's drafts
Use this when the creator explicitly asks for a draft. The video lands in their TikTok inbox / drafts; they open the TikTok app to add caption, sound and privacy, then post.
Required order:
- Identify the exact video and its source: a creator's device-local file or a
server-hosted URL under the verified
acedata.clouddomain. Preview it. - Call
request_action_confirmationwithkind: "generic", the real video preview, and a summary that says this uploads to drafts rather than publishing. - If cancelled, stop. If confirmed, run exactly one upload. For a device-local
file use
python3 skills/tiktok/scripts/tiktok.py upload video.mp4. For a server-hosted video usepython3 skills/tiktok/scripts/tiktok.py upload-url "$VIDEO_URL". - Poll with
python3 skills/tiktok/scripts/tiktok.py status PUBLISH_IDuntil terminal. Never calluploadagain while polling.
Two source modes are available. The developer portal verified acedata.cloud
on 2026-10-03, covering its subdomains. Server-hosted videos on that domain
must use PULL_FROM_URL; use FILE_UPLOAD only for a creator's device-local
file. Verify that the exact URL is public HTTPS and does not redirect.
FILE_UPLOAD (creator device-local file)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/tiktok.py
FAQ
Что делает скилл tiktok?
Publish a creator's video directly to TikTok after their review and confirmation, or upload it to drafts when requested.
Как установить скилл tiktok?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tiktok запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…