Agent skill Web motion
Motion Doctrine
Design, implement or review motion on the web.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/heygen-com/hyperframes/tree/main/.agents/skills/motion-doctrine --skill motion-doctrine --agent claude-code --yesCheck this file in your project.claude/skills/motion-doctrine/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/heygen-com/hyperframes/tree/main/.agents/skills/motion-doctrine --skill motion-doctrineSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A two-scene HyperFrames project, Node 22+, browser-accessible preview or render runtime, Chrome, and the installed seam-stamp and seam-gate scripts.
View operation manualWhat this skill helps with
- Design, implement or review motion on the web.
Good for
- Web motion and transitions
- Publisher
- HeyGen HyperFrames
- Workflow type
- Motion authoring technique
- Result
- A project-root ledger.json, stamped seam code, and browser evidence for the cut.
- Skill name
motion-doctrine- Repository
heygen-com/hyperframes
Common pitfall
Avoid this prompt
Give each scene independent entrance and exit directions, then smooth the cut with a dissolve.
The cut can reverse the eye’s direction, stop at the seam, or leave two scenes visible at once.
Use these steps
- State the carrier selectors and same-axis signs on the frame grid before writing the cut.
- Use the bundled stamper and inspect the generated visibility and motion changes.
- Read direction, motion, overlap, and timing findings at the same boundary.
Hands-on walkthrough
Plan one directed cut in a vector ledger, generate the seam tweens, and measure playback on both sides.
Plan one directed cut in a vector ledger, generate the seam tweens, and measure playback on both sides.
Write the vector ledger
State the carrier selectors and same-axis signs on the frame grid before writing the cut.
Prompt · Step 1Use Motion Doctrine on [my two-scene field journal]. Add ledger.json at the project root with fps: 30 and one seams record at cut: 2. Use the outgoing and incoming wrappers’ actual selectors, with axis: x and dir: -1 for both. Use a normal cut and record the intended foreground movement before editing the timeline.Stamp the master seam
Use the bundled stamper and inspect the generated visibility and motion changes.
Prompt · Step 2Make sure index.html registers the master GSAP timeline as window.__timelines["main"] and uses tl for that timeline inside the seam section. Run node <SKILL_DIR>/scripts/seam-stamp.mjs --ledger ledger.json --write index.html. Review the generated seams:auto block, confirm both wrappers move left at the seam, and confirm inside-scene clips stay visible through the cut.Run the browser seam gate
Read direction, motion, overlap, and timing findings at the same boundary.
- The entered and exited visuals demonstrably travel on the same signed axis.
- The verifier records one visible side across the boundary.
Prompt · Step 3Run node <SKILL_DIR>/scripts/seam-gate.mjs verify --ledger ledger.json --project . --json. For a running fresh preview, use --url with its URL instead of --project. Inspect moving and direction checks on both sides and zero-overlap. Read speed-match separately as a warning if present. Check snapshots one frame before and after the cut and rerun after changing the boundary.
Workflow lookup
Use the documented controls and run the checks on your own composition.
Plan an ordinary cutHyperFrames
- Command or reference
ledger.json · fps · cut · exit/entry.axis · dir- Examples
- For a leftward cut use x and −1 in both rows and align the cut to the fps grid.
Find the real moving selectorsHyperFrames
- Command or reference
seam-gate.mjs probe --t <cut> --project .- Examples
- Probe around the cut if the ledger selector points at the wrong moving element.
FAQ
What if the cut changes after the gate passes?
Update the ledger, regenerate the seam if needed, and rerun the gate. The earlier measurements describe the old transition.
How do I choose the HyperFrames command prefix?
A standalone CLI uses npx hyperframes in the project. For a plugin-bundled CLI, use its installed launcher so the command runs with the plugin’s release.