Skills jianying-auto-editor
Automate Jianying draft generation from local media plus a cloud editing API. Use when Codex needs to scan a material folder, request editing decisions, and write Jianying-oriented draft output for short-form video workflows.
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/jianying-auto-editor" ~/.claude/skills/clawdbot-skills-jianying-auto-editor && rm -rf "$T"
manifest:
skills/afengzi/jianying-auto-editor/SKILL.mdsource content
Jianying Auto Editor
使用这个 skill 时,按下面顺序执行:
- 读取
同结构的配置文件。examples/config.example.json - 校验
、api_base_url
、api_key
、material_path
、template_id
等关键参数。jianying_draft_path - 递归扫描素材目录,只收集常见视频、音频、图片素材。
- 调用云端 API 创建任务、上报素材索引、获取剪辑计划。
- 在本地生成剪映草稿输出,不要承诺 GUI 点击或桌面 RPA。
- 将执行结果写入输出目录,并向云端回传执行报告。
输入参数
至少提供这些字段:
api_base_urlapi_keyproject_typeaspect_ratiomaterial_pathtemplate_idsubtitle_modemusic_policypace_policyoutput_modejianying_draft_pathdraft_versionexport_mode
可选字段:
task_timeout_mspoll_interval_msrequest_timeout_mstask_namewebhook_urlextra_metadata
输出结果
默认输出到
jianying_draft_path 指向的目录,包含:
:任务与导出元信息draft-meta.json
:草稿时间线和片段描述draft-content.json
:本地执行报告execution-report.json
推荐工作流
- 先用示例配置复制出一份真实配置。
- 保持
只放本次任务素材,避免无关文件进入索引。material_path - 先验证云端
和/v1/tasks/create
可用,再跑正式任务。/v1/tasks/{id}/plan - 若云端未返回细粒度分镜,允许回退到“按素材顺序串接”的保底草稿。
依赖要求
- Node.js 18 或更高版本
- 可访问云端 API 的网络环境
- 本地可写的剪映草稿输出目录
错误处理原则
- 缺少配置、素材目录不存在、API 调用失败时立即停止并返回非 0 退出码。
- 本地始终尽量写出
,便于排查。execution-report.json - 对云端返回的未知字段保持容忍,只消费已知字段。
- 明确提示第一版不覆盖复杂 GUI 自动化和全部剪映版本兼容性。