nexu-io / openmotion
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-overlayInput Format
Use this transcript format before generating the scene spec.
Minimal Form
Full Form
Message Rules
- Metadata lines support
title,time,start,gap,hold. - Message lines support:
name|textname|text|highlightname|side|textname|side|avatar|textname|side|avatar|text|highlight
- Valid sides:
left,right,左,右. - Valid flag:
highlight. - If side is missing, the first speaker defaults to left and the second to right.
- If avatar is missing, the spec builder auto-assigns one per participant.
- The same speaker must stay on the same side throughout the transcript. If a transcript or screenshot implies conflicting sides for one speaker, stop and ask the user to confirm.
- Avatar selection is participant-first: use the participant config when provided, otherwise use the transcript avatar hint, otherwise auto-assign a preset.
- For screenshots, use visible avatars as clues for participant count and message grouping, but default to preset render avatars. Do not crop or recreate screenshot avatar images unless the user explicitly asks for screenshot-derived avatars.
Screenshot Workflow
When the user gives a screenshot:
- Read the messages in display order.
- Infer side from bubble placement.
- Infer participants from repeated nicknames, repeated avatar visuals, bubble grouping, and side placement.
- Keep the same participant on the same side; ask for confirmation if the screenshot suggests otherwise.
- Record title and timestamp if visible.
- Keep uncertain OCR fragments explicit instead of inventing cleaner text.
- Convert the result into the transcript format above before running the script.
Screenshot Avatar Policy
- Default: use preset avatars for all inferred participants.
- Use screenshot avatars as visual evidence for participant count and message grouping, especially in group chats.
- If the user wants exact rendered avatars, first ask them to provide avatar image files or cropped avatar assets.
- Only attempt to crop or recreate avatars from the screenshot when the user explicitly requests it and accepts that recognition may be imperfect.
- Participant identity should come from nickname, repeated avatar visuals, message grouping, and side consistency together; do not rely on avatar visuals alone when ambiguous.