tuzi-short-video
Short Video Creator
Creates short videos for social media platforms. Analyzes content, adapts to platform specs, generates prompts, and calls tuzi-video-gen backend.
Script Directory
This is a workflow-only skill (no scripts). It delegates video generation to tuzi-video-gen.
VIDEO_GEN_DIR: Resolve from skills/tuzi-video-gen/SKILL.md relative to project root.
Step 0: Load Preferences ⛔ BLOCKING
CRITICAL: This step MUST complete BEFORE any video generation.
0.1 Check API Key
echo "${TUZI_API_KEY:-not_set}"
grep -s TUZI_API_KEY .tuzi-skills/.env "$HOME/.tuzi-skills/.env"
| Result | Action |
|---|---|
| Key found | Continue to Step 0.2 |
| Key NOT found | ⛔ Run API key setup (see references/config/first-time-setup.md) |
0.2 Check EXTEND.md
test -f .tuzi-skills/tuzi-short-video/EXTEND.md && echo "project"
test -f "$HOME/.tuzi-skills/tuzi-short-video/EXTEND.md" && echo "user"
| Result | Action |
|---|---|
| Found | Load, parse, apply settings |
| Not found | ⛔ Run first-time setup (references/config/first-time-setup.md) |
| Path | Location |
|---|---|
.tuzi-skills/tuzi-short-video/EXTEND.md |
Project directory |
$HOME/.tuzi-skills/tuzi-short-video/EXTEND.md |
User home |
EXTEND.md Supports: Default platform | Default model
Schema: references/config/preferences-schema.md
Step 1: Analyze User Input
Analyze the user's content (text, article, script, topic description):
- Identify main topic and key points
- Determine content type (tutorial, story, showcase, explainer)
- Estimate ideal video length and segment count
Step 2: Confirm Platform and Parameters
Use AskUserQuestion to let user choose target platform (unless specified or saved in EXTEND.md):
header: "Target Platform"
question: "目标发布平台?"
options:
- label: "小红书"
description: "9:16 竖屏, 720x1280"
- label: "抖音"
description: "9:16 竖屏, 1080x1920"
- label: "X/Twitter"
description: "16:9 横屏, 1280x720"
- label: "视频号"
description: "9:16/16:9, 1080x1920"
Platform Presets
| Platform | Aspect | Size | Duration | Notes |
|---|---|---|---|---|
| 小红书 | 9:16 | 720x1280 | 15-60s | 竖屏短视频 |
| 抖音 | 9:16 | 1080x1920 | 15-60s | 竖屏,高分辨率 |
| X/Twitter | 16:9 | 1280x720 | 5-140s | 横屏为主 |
| 视频号 | 9:16 | 1080x1920 | 15-60s | 竖屏优先 |
Platform details: See references/platforms/
Step 3: Generate Video Script
Based on content analysis and platform:
Single Video (content fits one clip)
- Write a detailed video generation prompt in English
- Include: visual scenes, camera movements, style, mood, lighting
- Save prompt to
prompts/01-video-prompt.md
Long Video (content needs multiple segments)
- Split content into logical segments (opening + body + ending)
- Write per-segment prompts with continuity notes
- Save to
prompts/01-segment-opening.md,02-segment-main.md, etc.
Workflow details: See references/workflows/
Step 4: Generate Video
Single Video
npx -y bun ${VIDEO_GEN_DIR}/scripts/main.ts \
--promptfiles <output-dir>/prompts/01-video-prompt.md \
--video <output-dir>/01-video-<slug>.mp4 \
--size <platform-size> \
--seconds <duration>
Long Video
npx -y bun ${VIDEO_GEN_DIR}/scripts/main.ts \
--video <output-dir>/01-video-<slug>.mp4 \
--segments <N> \
--segment-prompts <output-dir>/prompts/01-segment-opening.md <output-dir>/prompts/02-segment-main.md ... \
--size <platform-size> \
--seconds <per-segment-seconds>
Step 5: Completion Report
Display:
- Output video path
- Platform and specs used
- Model used
- Duration
Output Directory
short-video/{topic-slug}/
├── source-{slug}.md
├── prompts/
│ ├── 01-video-prompt.md (single video)
│ ├── 01-segment-opening.md (long video)
│ ├── 02-segment-main.md
│ └── 03-segment-ending.md
├── segments/ (long video temp, cleaned up)
└── 01-video-{slug}.mp4 (final output)
Extension Support
Custom configurations via EXTEND.md. See Step 0 for paths and supported options.
More from tuziapi/tuzi-skills
tuzi-image-gen
通过兔子API(nano-banana 模型)、Google、OpenAI、DashScope 和 Replicate 进行 AI 图片生成。支持文生图、参考图片、宽高比、模型选择,以及 OpenAI 兼容网关方言切换。当用户要求生成、创建或绘制图片时使用。
154tuzi-video-gen
通过兔子API进行AI视频生成。支持 Veo、Sora、Kling、Seedance 等模型,单视频和长视频(多段合成)模式。当用户要求生成视频、创建视频或需要视频生成后端时使用。
138tuzi-infographic
生成专业信息图,包含 21 种布局类型和 20 种视觉风格。分析内容,推荐布局×风格组合,生成可发布的信息图。当用户要求创建"信息图"、"可视化"、"高密度信息大图"、"visual summary"时使用。
134tuzi-comic
知识漫画创作工具,支持多种画风和语调。创建原创教育漫画,包含详细分镜布局和顺序图片生成。当用户要求创建"知识漫画"、"教育漫画"、"传记漫画"、"教程漫画"时使用。
133tuzi-post-to-wechat
通过 API 或 Chrome CDP 发布内容到微信公众号。支持文章发布(HTML、Markdown 或纯文本输入)和图文消息发布(多图)。当用户提到"发布公众号"、"微信公众号"、"贴图"、"图文"、"文章"时使用。
132tuzi-xhs-images
生成小红书信息图系列,包含 10 种视觉风格和 8 种布局。将内容拆分为 1-10 张卡通风格图片,针对小红书互动优化。当用户提到"小红书图片"、"XHS图片"、"小红书种草"、或需要中文社交媒体信息图时使用。
127