modellix-moviepy Skill
用 moviepy 2.x 把本地素材合成一条成片。这个技能用于制作片头、下三分之一字幕条、姓名条、手动摆放的字幕,以及把画面与配音叠加到时间轴上,包括 modellix-design 生成的文件。当用户要求完成剪辑、在视频上烧录可读文字、或让图形与旁白对齐时间时使用。不要用它来拼接、裁剪、缩放、压缩、提取音频或烧录 SRT 字幕——那属于 modellix-ffmpeg。也不要用它通过 Modellix 模型生成媒体——那属于 modellix-design。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Modellix MoviePy
Finish a cut from media that is already on disk. modellix-design generates, waits, and downloads. This skill starts after those files exist and builds one layered picture: titles, name plates, and a short timeline of clips plus voiceover.
Do not submit a Modellix task, poll one, or download one from here. If the user wants a new image, video, or audio asset, hand the request to modellix-design. A commerce UGC video that still needs a shot plan belongs to modellix-ecomm-ugc-video. A product TVC that still needs a shot plan belongs to modellix-tvc.
Hand file-level work to modellix-ffmpeg: concatenate flat clips, trim, scale, compress, extract audio, change speed, fade a whole file, transcode, or burn a subtitle file. This skill does not reimplement those commands. A full SRT track is one of those handoffs. Hand-placed titles are not.
Install check
Run this before importing moviepy or Pillow:
python3 scripts/check_moviepy.py --json
Read ok, missing, and install_command.
ok: truemeans this interpreter can import moviepy 2.x and Pillow. Continue.ok: falsemeans stop. Showinstall_commandandmessageto the user and wait. Run that command only after they agree.- moviepy 1.x is not usable here. The same stop applies when
moviepy_versionis present andokis false. - Do not run the installer yourself, and do not add moviepy or Pillow as a dependency of this plugin.
The script never runs the installer itself.
Text stays out of the generator
Readable names, prices, and attributions are drawn here, after the picture exists. Do not ask a generation model to render those words into the frame, and do not use moviepy's TextClip. Its label mode clips the tops and tails of letters. Draw the words with Pillow onto a transparent PNG, then place that PNG as an ImageClip. The steps are in references/text-overlay.md.
Timeline
Read references/timeline.md before stacking more than a title on one clip. Measure each asset's duration first, then place pictures and voiceover on those times. A timeline that is guessed before the files are measured drifts.
Set size on CompositeVideoClip. Without it, the frame follows whichever clip happens to be first.
Fonts
Use the font file the user named. When they did not name one, search the candidates in references/text-overlay.md and take the first file that exists. If none exist, ask for a .ttf or .otf. Do not assume one operating system's Arial Bold is present.
Output rules
- Write a new file. Do not delete or overwrite an input.
- If the output path already exists, stop and ask.
write_videofilereplaces an existing file. - If the user did not name an output path, ask for one.
- Pass
codec="libx264"andaudio_codec="aac".
Command catalog
| Task | Reference |
|------|-----------|
| Title, lower third, contrast plate, Pillow text | references/text-overlay.md |
| Timed stack of clips, voiceover, ducked music | references/timeline.md |
Read the matching reference before writing the composition. Do not invent moviepy 1.x method names (set_duration, set_position, subclip). moviepy 2.x uses with_duration, with_position, with_start, and subclipped.