Claude Code workflow kit
Auto Motion
Automated SRT-to-motion workflow with Codex cli + Claude Code with any LLM
Install
git clone https://github.com/vibe-motion/auto-motion.gitFrom the README
简体中文 | English
auto-motion
auto-motion 是一个把字幕稿自动拆分成多段 MG 动画镜头,并拼接成竖屏视频的工作流模板。你只需要准备 transcription.srt,然后让 Codex 执行 PROMPT.md 中的任务说明;Codex 会按字幕语义拆镜头,逐个调用 Claude Code 生成单镜头动画,最后用 FFmpeg 拼接出 final.mp4。
效果演示
演示截取自成片的 00:00:03,000 → 00:00:13,000。左侧是输入给 auto-motion 的 SRT 字幕片段,右侧是自动生成并加回字幕的动画。
输入:SRT
输出:生成的动画
1
00:00:00,000 --> 00:00:02,033
由GPT5.6sol和qwen 3.8 Max Preview做的
2
00:00:02,100 --> 00:00:03,466
GPT负责对文案脚本
3
00:00:03,466 --> 00:00:05,566
进行切割、查资料、找素材
4
00:00:05,666 --> 00:00:07,600
qwen 3.8则负责写react代码
5
00:00:07,600 --> 00:00:09,133
再用remotion将创意渲染
6
00:00:09,133 --> 00:00:10,000
为motion graphics动画
运行证据
下面是一段真实运行过程截图:多镜头任务已经连续运行 1 小时 36 分钟,Codex 正在等待 Claude Code 完成后续镜头的代码实现和渲染。
架构
1. 调度层:Codex + PROMPT.md
PROMPT.md 定义整个自动化流程:
- 读取当前目录的 transcription.srt。
- 按语义把字幕拆成连续、完整覆盖总时长的镜头。
- 为每个镜头创建 scenes/scene-001、scenes/scene-002 等独立目录。
- 从 exampleFolder 复制运行模板和 HyperFrames 相关技能。
- 顺序调用 Claude Code 生成每个镜头的动画 MP4。
- 检查镜头时长和产物规格,并用 FFmpeg 拼接为 final.mp4。
2. 执行层:Claude Code + run-claude-ai.sh
exampleFolder/run-claude-ai.sh 是单镜头执行模板。Codex 会为每个镜头填写:
- SCENE_ID
- SCENE_DURATION_SECONDS
- SCENE_TEXT
- OUTPUT_FILE
- FULL_TRANSCRIPT_PATH
脚本使用 claude -p 非交互式调用 Claude Code,并要求 Claude Code 输出固定阶段消息。原始日志、错误日志和用户可读进度分别写入镜头目录中的:
- claude-.stream.jsonl
- claude-.stderr.log
- claude-.user.log
3. 动画层:HyperFrames
exampleFolder/.claude/skills/ 中包含 HyperFrames 相关技能。Claude Code 会基于这些技能编写 HTML 动画项目,并渲染 1080x1440、30fps、静音、无音轨的 MP4。
4. 验收层:auto-test
auto-test/run.sh 提供端到端测试入口。它会创建临时工作区,复制测试字幕和模板,调用 Codex 执行完整流程,然后用 auto-test/validate.sh 检查:
- Claude Code 阶段消息是否完整。
- 单镜头 MP4 和 final.mp4 是否存在。
- 视频是否为 1080x1440。
- 帧率是否约为 30fps。
- 时长是否接近字幕总时长。
- 是否没有音轨。
前提条件
请先确保本机已经安装并登录以下工具:
- Codex CLI
- Claude Code
- Node.js 22 或更高版本
- FFmpeg 和 FFprobe
- jq
- 可联网环境,用于…Details
- Repository
- vibe-motion/auto-motion
- Type
- Workflow kits
- Language
- HTML
- Last updated
- 23 July 2026
FAQ
What is Auto Motion?
Automated SRT-to-motion workflow with Codex cli + Claude Code with any LLM It is a workflow kit for Claude Code, from vibe-motion/auto-motion on GitHub.
How do I install Auto Motion?
Clone vibe-motion/auto-motion from GitHub and follow the setup steps in its README.
Is Auto Motion popular?
vibe-motion/auto-motion has 515 GitHub stars and 61 forks. It was last updated on 23 July 2026.
More workflow kits
OSpec
391clawplays/ospec
Spec-driven agentic workflow that turns requests into verifiable changes.
OrchestKit
299yonatangross/orchestkit
Development toolkit with a large set of skills, agents and hooks.
metaswarm
427dsifry/metaswarm
Self-improving multi-agent orchestration framework for Claude Code.
AI Marketing Claude Code Skills
451BrianRWagner/ai-marketing-claude-code-skills
Marketing frameworks that AI actually executes. Designed for Claude Code, but could be used for OpenClaw, etc.
Claude Code Workflow
710runesleo/claude-code-workflow
QuietHarness:Claude Code、Codex、Cursor 共用的轻量 AI 工作系统
My Claude Devteam
269NYCU-Chung/my-claude-devteam
Agents plus automation hooks packaged as an engineering team in a box.
Browse the most popular Claude Code mods, all workflow kits, or the skills and MCP server directories.