chat-motion-overlay
Generate configurable chat motion overlays from a transcript or screenshot, including plain bubble scenes, app-style chat containers, optional device frames, preset or uploaded avatars, nickname display rules, and transparent-video-ready Remotion bundles. Use when Codex needs to create reusable short-form chat clips for Douyin, demo videos, story reenactments, social-message proof scenes, or embeddable alpha overlays for Hyperframe and Remotion workflows.
Install
npx skills add https://github.com/nexu-io/openmotion --skill chat-motion-overlayTest Matrix
This matrix covers the configurable surface of $chat-motion-overlay.
Goals
- Validate transcript to spec generation
- Validate bundle preparation and asset copying
- Validate template type safety
- Validate representative rendering for each major scene family
- Catch invalid config combinations early
- Validate group chats can assign avatars per participant instead of only per side
- Validate uploaded avatar asset names remain unique when participant slugs collide
- Validate bubble-only overlays keep right-side rows explicitly right-aligned
- Lock down the question strategy so incomplete requests are handled consistently
- Validate transcript avatar hints are checked against preset keys before use
- Validate
uploadPathis rejected whenavatarModeispreset - Validate config participant presets override transcript avatar hints
- Validate
--forcerejects dangerous output directories instead of deleting them - Reject the unsupported bubble-only plus phone-frame combination before rendering
- Validate rendered frames across a message
appearAtboundary, not only a later still
Covered Dimensions
container:none,wechat,telegram,messengeravatarMode:preset,upload,mixeddeviceFrame:none,iphone-dynamic-islandnicknameMode:hidden,first-message-only,alwaysdeliveryFormat:mov,webm,json,remotion,hyperframe,preview
Cases
-
default_wechat_phone_preset_hidden- Container:
wechat - Avatar mode:
preset - Device frame:
iphone-dynamic-island - Nickname mode:
hidden - Delivery:
MOV(透明背景,可直接导入剪映 / PR / FCP 叠加) - Render frames:
14,15,120to cross the first messageappearAt
- Container:
-
plain_bubbles_no_frame_first_message- Container:
none - Avatar mode:
preset - Device frame:
none - Nickname mode:
first-message-only - Delivery:
Remotion 工程(适合继续编辑和拼装)
- Container:
-
telegram_no_frame_always- Container:
telegram - Avatar mode:
preset - Device frame:
none - Nickname mode:
always - Delivery:
WebM(透明背景,适合网页 / 浏览器播放)
- Container:
-
messenger_phone_hidden- Container:
messenger - Avatar mode:
preset - Device frame:
iphone-dynamic-island - Nickname mode:
hidden - Delivery:
MOV(透明背景,可直接导入剪映 / PR / FCP 叠加)
- Container:
-
upload_phone_always- Container:
wechat - Avatar mode:
upload - Device frame:
iphone-dynamic-island - Nickname mode:
always - Delivery:
MOV(透明背景,可直接导入剪映 / PR / FCP 叠加)
- Container:
-
mixed_wechat_phone_first_message- Container:
wechat - Avatar mode:
mixed - Device frame:
iphone-dynamic-island - Nickname mode:
first-message-only - Delivery:
Hyperframe 工程(适合作为模块继续复用)
- Container:
-
json_spec_only- Container:
wechat - Avatar mode:
preset - Device frame:
iphone-dynamic-island - Nickname mode:
hidden - Delivery:
JSON 数据(适合程序处理 / 自定义渲染)
- Container:
-
group_multi_participant_distinct_presets- Container:
wechat - Avatar mode:
preset - Four speakers across left and right sides
- Expected: each participant can resolve to a distinct avatar
- Container:
-
invalid_upload_missing_side- Avatar mode:
upload - Missing one upload path
- Expected: fail with validation error
- Avatar mode:
invalid_mixed_without_upload
- Avatar mode:
mixed - No upload path
- Expected: fail with validation error
invalid_upload_missing_file
- Avatar mode:
upload - Upload path points to a missing file
- Expected: bundle preparation fails fast with a clear missing-file error and leaves no generated
chatSpec.tsleaking local upload paths
invalid_participant_side_conflict
- One participant appears on both left and right sides
- Expected: fail with validation error and ask for consistent participant side
upload_slug_collision_unique_assets
- Avatar mode:
upload - Two distinct speaker names normalize to the same slug
- Expected: generated participant ids and copied upload assets remain unique
invalid_transcript_avatar_key
- Transcript line includes a non-preset avatar key
- Expected: fail with validation error instead of silently falling back to a preset avatar
invalid_preset_mode_upload_path
- Avatar mode:
presetbut a participant config carriesuploadPath - Expected: fail with validation error
config_preset_overrides_transcript_avatar_hint
- Config preset differs from transcript avatar hint for the same participant
- Expected: generated spec uses the config preset, not the transcript hint
invalid_force_dangerous_output_dir
--forcetargets a dangerous existing directory such as the skill root- Expected: bundle preparation fails before any recursive deletion happens
invalid_bubble_only_phone_frame
- Container:
none - Device frame:
iphone-dynamic-island - Expected: fail with a validation error instead of generating a clipped phone-frame scene
Pass Criteria
- Valid cases generate JSON spec successfully
- Valid bundle cases prepare output bundle successfully
- Generated bundle sanitizes machine-local upload paths out of
src/chatSpec.ts - Generated bundle passes
tsc --noEmit - Representative valid cases render a still frame successfully
- Group chat cases assign avatars by participant, not only by left/right side
- Uploaded avatar assets remain collision-proof for participants with colliding slug bases
- Bubble-only overlays explicitly use right-side row alignment in the generated template
- Participant side conflicts fail instead of rendering one person on both sides
- Invalid cases fail with the expected validation error
- Invalid upload-path cases fail during bundle preparation instead of silently falling back to preset avatars
- Transcript-provided avatar keys that are not in the preset library fail with a clear validation error
avatarMode=presetconfigs that includeuploadPathfail with a clear validation error- Config participant presets take precedence over transcript avatar hints when both are present
--forcerejects dangerous output directories before deleting anything- Advertised Remotion render scripts keep
src/index.tsbefore the composition id container=none + deviceFrame=iphone-dynamic-islandfails with a clear validation error- Representative render coverage crosses at least one message
appearAtframe boundary - Question policy is documented with defaults, triggers, and user-facing wording