/install douyin-upload-skill
Douyin Upload Skill
Overview
Use this skill to publish local videos to Douyin with a deterministic CLI flow:
- Validate local dependencies and env.
- OAuth authorize and store encrypted token locally.
- Prepare video metadata and transcript from local audio.
- Generate 3 caption candidates in chat from transcript.
- Confirm or edit caption, then publish.
- If official publish permission is unavailable, export an outbox package for manual publish.
Use the script at \x3Cskill_root>/scripts/douyin.js.
Required Environment
Set these environment variables before auth or publish:
DOUYIN_CLIENT_KEYDOUYIN_CLIENT_SECRETDOUYIN_REDIRECT_URI
Optional overrides:
DOUYIN_SCOPEDOUYIN_TOKEN_ENC_KEYDOUYIN_ASR_MODE(api/whisper-gpu/whisper-cpu)DOUYIN_ASR_API_URLDOUYIN_ASR_API_MODELDOUYIN_ASR_API_KEYDOUYIN_WHISPER_BINDOUYIN_WHISPER_MODEL_PATHDOUYIN_FFMPEG_BINDOUYIN_FFPROBE_BIN
Workflow
- Run dependency checks:
node \x3Cskill_root>/scripts/douyin.js doctor
- Authorize account (manual code paste flow):
node \x3Cskill_root>/scripts/douyin.js auth
- Prepare transcript and metadata from a local video path. Accept both Linux and Windows path formats.
node \x3Cskill_root>/scripts/douyin.js prepare --video "E:\\videos\\demo.mp4"
- Create 3 caption candidates from
transcript.textwith this structure:
- Line 1: title hook
- Line 2-3: concise description
- Final line: 2-5 hashtags
-
Ask user to select or edit one final caption.
-
Publish with explicit visibility and confirmation policy:
node \x3Cskill_root>/scripts/douyin.js publish \
--video "E:\\videos\\demo.mp4" \
--text "\x3Cfinal caption>" \
--private-status 0 \
--auto-confirm false
Command Behavior
doctor: reports dependency and env readiness plus install hints.auth: opens OAuth URL, accepts pasted callback URL orcode, stores encrypted token.prepare: returns metadata, transcript, and ASR failure detail (without stopping publish flow).publish: uploads and creates video via official API. If permission-like API errors occur, writes fallback files under outbox and returnsmode: fallback.config: stores persistent settings (defaultPrivateStatus,autoConfirm,whisperBin,whisperModelPath,outboxDir, etc.).
Caption Rules
Before publish:
- Keep final text length \x3C= 1000.
- Always show the final draft to the user.
- If
auto-confirmis false, require explicit user confirmation in terminal.
Output Contracts
Treat script stdout as JSON. Always parse and branch by:
okcommandmode(officialorfallbackforpublish)asrError(optional inprepare)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install douyin-upload-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/douyin-upload-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Douyin Upload Skill 是什么?
Login and publish Douyin (China mainland) videos from local files with OAuth, local speech-to-text, and generated caption drafts. Use when users ask to autho... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 546 次。
如何安装 Douyin Upload Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-upload-skill」即可一键安装,无需额外配置。
Douyin Upload Skill 是免费的吗?
是的,Douyin Upload Skill 完全免费(开源免费),可自由下载、安装和使用。
Douyin Upload Skill 支持哪些平台?
Douyin Upload Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Douyin Upload Skill?
由 YJLi-new(@yjli-new)开发并维护,当前版本 v0.1.0。