Skills davinci-auto-editor
Generate DaVinci Resolve import packages from local media plus a cloud editing API. Use when Codex needs to scan a material folder, request a cloud editing plan, and write a Resolve-importable EDL package with pure Node on the user machine.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/afengzi/davinci-auto-editor" ~/.claude/skills/openclaw-skills-davinci-auto-editor && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/afengzi/davinci-auto-editor" ~/.openclaw/skills/openclaw-skills-davinci-auto-editor && rm -rf "$T"
manifest:
skills/afengzi/davinci-auto-editor/SKILL.mdsource content
DaVinci Auto Editor
使用这个 skill 时,按下面顺序执行:
- 读取
同结构的配置文件。examples/config.example.json - 校验
、api_base_url
、api_key
、material_path
等关键参数。timeline_fps - 递归扫描素材目录,并向云端上报素材索引。
- 调用云端 API 创建任务并获取剪辑计划。
- 在本地只生成最小执行计划,不要把完整云端内部逻辑写入本地文件。
- 由 Node 生成 Resolve 可导入的
和导入说明文件。timeline.edl - 将准备结果回传云端。
输入参数
至少提供这些字段:
api_base_urlapi_keyproject_typeaspect_ratiomaterial_pathtemplate_idsubtitle_modemusic_policypace_policyoutput_moderender_presettimeline_fpstimeline_resolution
可选字段:
task_timeout_mspoll_interval_msrequest_timeout_mstask_namewebhook_urlextra_metadata
输出结果
默认在素材目录旁创建
_davinci_auto_editor/<taskId>/,包含:
:最小本地导入计划resolve-import.json
:Resolve 导入文件timeline.edl
:导入说明IMPORT-TO-RESOLVE.txt
:本地执行报告execution-report.json
推荐工作流
- 把核心决策、模板逻辑、API Key 鉴权和配额管理放在云端服务。
- 本地只保留素材扫描、结果导出和回传逻辑。
- 优先使用短路径、稳定命名的素材目录,减少 EDL relink 成本。
- 在正式任务前先用样本素材验证时间线 FPS 和素材命名。
依赖要求
- Node.js 18 或更高版本
- 已安装 DaVinci Resolve
- 可访问云端 API 的网络环境
错误处理原则
- 缺少配置、素材目录不存在、API 调用失败时立即停止并返回非 0 退出码。
- 始终写出
以便排查。execution-report.json - 不在本地输出完整云端推理结果,只输出导入所需的最小执行数据。
- 明确提示第一版只覆盖基础拼接和时间线导入准备。