← 返回
安全合规 Key 中文

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...
通过OAuth登录并从本地文件发布抖音(中国大陆)视频,支持本地语音转文字和自动生成字幕稿,适用于用户请求授权发布视频的场景。
yjli-new yjli-new 来源
安全合规 clawhub v0.1.0 1 版本 99895.2 Key: 需要
★ 0
Stars
📥 953
下载
💾 143
安装
1
版本
#latest

概述

Douyin Upload Skill

Overview

Use this skill to publish local videos to Douyin with a deterministic CLI flow:

  1. Validate local dependencies and env.
  2. OAuth authorize and store encrypted token locally.
  3. Prepare video metadata and transcript from local audio.
  4. Generate 3 caption candidates in chat from transcript.
  5. Confirm or edit caption, then publish.
  6. If official publish permission is unavailable, export an outbox package for manual publish.

Use the script at /scripts/douyin.js.

Required Environment

Set these environment variables before auth or publish:

  • DOUYIN_CLIENT_KEY
  • DOUYIN_CLIENT_SECRET
  • DOUYIN_REDIRECT_URI

Optional overrides:

  • DOUYIN_SCOPE
  • DOUYIN_TOKEN_ENC_KEY
  • DOUYIN_ASR_MODE (api / whisper-gpu / whisper-cpu)
  • DOUYIN_ASR_API_URL
  • DOUYIN_ASR_API_MODEL
  • DOUYIN_ASR_API_KEY
  • DOUYIN_WHISPER_BIN
  • DOUYIN_WHISPER_MODEL_PATH
  • DOUYIN_FFMPEG_BIN
  • DOUYIN_FFPROBE_BIN

Workflow

  1. Run dependency checks:
  2. node <skill_root>/scripts/douyin.js doctor
    
  1. Authorize account (manual code paste flow):
  2. node <skill_root>/scripts/douyin.js auth
    
  1. Prepare transcript and metadata from a local video path. Accept both Linux and Windows path formats.
  2. node <skill_root>/scripts/douyin.js prepare --video "E:\\videos\\demo.mp4"
    
  1. Create 3 caption candidates from transcript.text with this structure:
    • Line 1: title hook
    • Line 2-3: concise description
    • Final line: 2-5 hashtags
  1. Ask user to select or edit one final caption.
  1. Publish with explicit visibility and confirmation policy:
  2. node <skill_root>/scripts/douyin.js publish \
      --video "E:\\videos\\demo.mp4" \
      --text "<final 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 or code, 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 returns mode: fallback.
  • config: stores persistent settings (defaultPrivateStatus, autoConfirm, whisperBin, whisperModelPath, outboxDir, etc.).

Caption Rules

Before publish:

  • Keep final text length <= 1000.
  • Always show the final draft to the user.
  • If auto-confirm is false, require explicit user confirmation in terminal.

Output Contracts

Treat script stdout as JSON. Always parse and branch by:

  • ok
  • command
  • mode (official or fallback for publish)
  • asrError (optional in prepare)

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 04:13

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,360
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,599
data-analysis

MiniMax Coding Plan

yjli-new
MiniMax编程计划的原生网页搜索和图像理解功能,用于OpenClaw。当用户明确需要MiniMax原生搜索或图像分析时使用,或……
★ 0 📥 1,493