YJLi-new

Douyin Upload Skill

內容創作v0.1.0
作者:YJLi-new更新於 2026-05-18douyin-upload-skill@clawhub_yjli-new/douyin-upload-skill
自媒體營運短影片指令碼#Local Files#Speech-to-Text#Audio

據 AlphaMoat 統計,截至 2026-09,Douyin Upload Skill 累計下載 1,504 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,767 位,在「內容創作」分類(362 個)中排名第 331 位。

累計安裝
143
累計下載
1504
星標
-
全站排名
#4,767
全站前 94% · 「內容創作」前 92%
平台累計安裝累計下載星標評論
ClawHub ↗391396--
SkillHub ↗1431504-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

流程涵蓋依賴檢查、OAuth 授權、轉錄與文案草擬,並要求使用者確認最終文案後釋出。令牌儲存在本地且經加密;釋出許可權不可用時,可匯出供手動釋出的素材包。 API 轉錄模式可能將音訊傳送到外部,應檢查 ASR 模式和端點。保持釋出確認開啟,並保護或清理轉錄快取與備用檔案。

資料釋出於 2026-10-29

可以用來做什麼

  • 檢查釋出依賴
  • 準備影片轉錄和文案候選
  • 確認文案後釋出或匯出素材包

什麼時候用

  • 需要從本地影片準備抖音釋出內容時
  • 授權或釋出前先核實許可權、配置與目標賬號

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明從本地影片準備釋出草稿的步驟,並指出需要使用者確認的環節。

月度資料趨勢

累計下載1504
38998815872026-03 · 累計下載 4722026-05 · 累計下載 9212026-07 · 累計下載 12102026-08 · 累計下載 13172026-09 · 累計下載 150426-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091504—-
2026-081317+8.8%-
2026-071210—-
2026-05921—-
2026-03472—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.1 KB · ClawHub v0.1.0
---
name: douyin-upload-skill
description: 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 authorize Douyin accounts, upload local videos, auto-generate title/description from video audio, confirm content, and publish via official Douyin OpenAPI with fallback export when publish permissions are missing.
---

# Douyin Upload Skill

## Overview

Use this skill to publish local videos to Douyin with a deterministic CLI flow:
展開全部(共 94 行)
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 `<skill_root>/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:
```bash
node <skill_root>/scripts/douyin.js doctor
```

2. Authorize account (manual code paste flow):
```bash
node <skill_root>/scripts/douyin.js auth
```

3. Prepare transcript and metadata from a local video path. Accept both Linux and Windows path formats.
```bash
node <skill_root>/scripts/douyin.js prepare --video "E:\\videos\\demo.mp4"
```

4. Create 3 caption candidates from `transcript.text` with this structure:
- Line 1: title hook
- Line 2-3: concise description
- Final line: 2-5 hashtags

5. Ask user to select or edit one final caption.

6. Publish with explicit visibility and confirmation policy:
```bash
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`)

「內容創作」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。