一键导入
douyin-publish
Publish videos to Douyin by reading script metadata and auto-filling parameters. Confirms with user before calling auto-douyin skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Publish videos to Douyin by reading script metadata and auto-filling parameters. Confirms with user before calling auto-douyin skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | douyin-publish |
| description | Publish videos to Douyin by reading script metadata and auto-filling parameters. Confirms with user before calling auto-douyin skill. |
自动从项目脚本提取发布参数,确认后调用 auto-douyin skill 发布视频到抖音。
/douyin-publish <project-slug> 时在 projects/ 目录中搜索匹配的项目:
读取 projects/<YYYY-MM-DD-<slug>>/script.md,提取:
# 视频标题 → 发布标题
## 元信息
- 切入角度 → 用于生成话题标签
分镜内容 → 用于提取关键词/话题
检查以下文件是否存在:
| 资源 | 路径 | 说明 |
|---|---|---|
| 视频文件 | projects/<slug>/output/<slug>.mp4 | 必需,发布的主视频 |
| 竖版封面 | projects/<slug>/assets/images/cover-portrait.png | 可选,3:4 封面 |
| 横版封面 | projects/<slug>/assets/images/cover-landscape.png | 忽略(抖音不需要) |
视频文件查找逻辑:
<slug>.mp4output/ 目录下所有 .mp4 文件供选择基于脚本内容生成发布参数:
基于脚本的 # 视频标题 生成 3 个不同风格的标题选项:
# 视频标题(如超过30字,截断并添加 "…")每个标题必须控制在30字以内(抖音标题限制)。
基于以下来源生成 3-5 个话题:
#干货分享, #教程#科技资讯, #前沿科技#深度思考, #行业洞察#知识科普, #涨知识#AI, #效率工具, #生产力cover-portrait.png,使用它向用户展示完整的发布方案,标题提供 3 个选项供选择:
## 📋 抖音发布方案
### 项目信息
- **项目**: {project-slug}
- **脚本标题**: {title-from-script}
### 📦 发布参数
#### 发布标题(选一个)
1. **{title-original}** — 原标题
2. **{title-optimized}** — 优化版({优化说明})
3. **{title-viral}** — 爆款版({优化说明})
#### 话题标签
{tags}
#### 其他参数
| 参数 | 值 |
|------|-----|
| **视频文件** | `{video-path}` |
| **封面图片** | {cover-path 或 "自动生成"} |
| **发布方式** | 立即发布 / 定时发布 {schedule} |
### 确认发布?
回复以下选项:
- "1" / "2" / "3" — 选择对应标题并发布
- "标题: xxx" — 自定义标题
- "话题: xxx" — 修改话题(逗号分隔)
- "定时: YYYY-MM-DD HH:MM" — 设置定时发布
- "取消" — 取消发布
WAIT for user confirmation before proceeding to Step 6.
确认后,调用 auto-douyin skill 的发布脚本:
python3 ~/.agents/skills/auto-douyin/scripts/publish.py \
--video "{video-path}" \
--title "{publish-title}" \
--tags "{tags}" \
{--cover "{cover-path}" 如果有封面} \
{--schedule "{schedule}" 如果设置了定时}
发布完成后,报告结果:
## ✅ 发布完成
视频已提交到抖音创作者中心。
- **视频**: {video-path}
- **标题**: {publish-title}
- **话题**: {tags}
请检查抖音 APP 确认发布状态。
如果发布失败,显示错误信息:
## ❌ 发布失败
{error-output}
可能的原因:
1. Cookie 失效 → 运行 `python3 ~/.agents/skills/auto-douyin/scripts/get_cookie.py` 重新登录
2. 网络问题 → 检查网络连接
3. 视频格式问题 → 确认视频是有效的 MP4 文件
❌ 项目未找到: {slug}
可用项目:
{list projects/ directories}
❌ 脚本文件不存在: projects/{slug}/script.md
请先运行 /video-script 生成脚本
❌ 视频文件不存在
已检查以下路径:
- projects/{slug}/output/{slug}.mp4
output 目录中的文件:
{list output/}
请先渲染视频,或手动指定视频文件路径
❌ 未检测到抖音登录 Cookie
请先运行以下命令扫码登录:
```bash
python3 ~/.agents/skills/auto-douyin/scripts/get_cookie.py
## 命令格式
/douyin-publish
示例:
/douyin-publish gpt-image2-compare /douyin-publish 2026-04-24-chatgpt-o3
## 集成到工作流
此技能是视频制作流程的最后一步:
1. `/video-script` → 生成 `script.md`
2. `/remotion-video` → 渲染视频到 `output/<slug>.mp4`
3. `/video-cover` → 生成封面图片(可选)
4. `/douyin-publish` → **此 skill** — 发布到抖音
## 路径约定
| 用途 | 路径 |
|------|------|
| 项目目录 | `projects/<YYYY-MM-DD-<slug>>/` |
| 脚本文件 | `projects/<slug>/script.md` |
| 输出视频 | `projects/<slug>/output/<slug>.mp4` |
| 竖版封面 | `projects/<slug>/assets/images/cover-portrait.png` |
## 技巧
1. **标题长度控制** — 抖音标题最多30字,超出会被截断
2. **话题数量** — 建议添加 3-5 个话题,太多会被限流
3. **发布频率** — 建议间隔发布,避免被识别为异常行为
4. **封面选择** — 指定封面可以提高点击率,建议使用 /video-cover 生成
5. **Cookie 检查** — 发布前可以先检查 Cookie 是否有效
Convert video-script generated storyboard scripts into Remotion React compositions. Use when user asks to convert a script to Remotion, generate video code, or create Remotion compositions from scripts/. Generates code and starts Studio preview; does NOT render MP4. Run /video-review after this to review code and render video.
Rigorous script review with fact-checking, accuracy verification, and quality assessment. Auto-applies fixes to scripts when issues are found. Use when user asks to review, fact-check, audit, or fix a video script. Focuses on: (1) Factual accuracy with source verification, (2) Professional standards, (3) Content depth and engagement, (4) Auto-correction of identified issues.
Generate video covers using AI background + text overlay. Use when user asks to create video thumbnails, covers, or posters. Reads script, proposes title/subtitle/style for confirmation, then generates pure backgrounds and adds text via Python.
Review and fix Remotion video compositions. Use after /script-review to verify code quality, visual consistency, Douyin format compliance, timing accuracy. Add --render flag to auto-render MP4 after review passes. Trigger when user says /video-review, asks to review video code, or verify composition quality.
Generate Douyin short video storyboard scripts from ideas. Use when the user runs /video-script or asks to create a video script, storyboard, or Douyin/TikTok content plan. Researches the topic online, analyzes the idea, proposes creative angles, then generates a complete script with hook, pain point, core content, and CTA.
Generate voiceover audio from text using Volcano Ark TTS API. Use when user asks to create voiceover, TTS audio, or narration from voiceover text. Reads voiceover.md, confirms speaker, then generates complete MP3 audio for natural prosody.