Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

motion2code Skill

Repository ↗

by lovisdotio★ 3541 skills

Install

What it does

Skills for coding agents: rebuild a motion design video as looping SVG + GSAP code, checked frame by frame against the source

  • Connects Instruction files the AI reads; connects to nothing
  • Account or key No key needed
  • Category Design and web UI
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/skill/lovisdotio-motion2code.svg)](https://mcp.popnx.com/en/skills/lovisdotio-motion2code)

Use together with

MCP servers that connect the AI to services for the same work

Figma Context MCP

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

by GLipsWidely used↓ 152.1K/wk★ 16.2KUpdated 5 months ago

MCP · Connects a serviceRuns on your computer

Next AI Draw.io

draw.io diagrams your AI agent draws on a live browser canvas that you can also edit by hand

by DayuanJiangWidely used↓ 21.7K/wk★ 37K Stars for the whole repoUpdated 2 days ago

MCP · Connects a serviceRuns on your computer

Pascal 3D Editor

Create, inspect, validate, and save editable 3D building scenes with Pascal's MCP server.

by pascalorgWidely used↓ 1K/wk★ 25.5K Stars for the whole repoUpdated 3 days ago

MCP · Connects a serviceComputer or cloud✓ service owner · pascal.app

Similar Skills

Same kind of work, ordered like the Skills list

Compared with similar ones
This one
motion2code
impeccablediagram-designfrontend-slidesguizang-ppt-skill
Makerlovisdotiopbakauscathrynlaveryzarazhangruiop7418
Skills1111–
GitHub stars354111,13167,54432,39929,871
Last code changeOct 20, 2026Nov 16, 2026Nov 13, 2026Jun 24, 2026Oct 30, 2026
LicenseMITApache-2.0MITMITAGPL-3.0

1 skills (instruction sets) by lovisdotio that an AI reads and follows · not an MCP server

How a Skill differs from MCP

MCP = the hands

Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.

Skill = the manual

A text file that teaches the AI how to do a task. It connects to nothing.

Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.

Works with

Claude CodeClaude (เว็บ/แอป)CodexCursorGemini CLIGitHub Copilot

From the maker’s README and the folders in the repo

Install

Is it safe?

  • Who made it

    GitHub account lovisdotio (person), 2 years old

  • Use and upkeep

    ★ 354 stars, few users so far · code last changed Oct 20, 2026

  • Any scripts?

    7 scripts that can run on a computer: scripts/_m2c.py, scripts/check_anim.py, scripts/frame_diff.py, scripts/palette.py and 3 more

  • Uses the internet?

    No internet calls found in the scripts

  • Changes machine-wide settings?

    No hooks or writes to machine settings found

Checked automatically from the repo files at commit 0f00328 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself

First: which AI do you use?

Pick your app and this page shows only how to install it there

Option 1Upload to claude.ai (web and app)

Uploading to claude.ai would fail: the description is over 200 characters (827). Use "Let the AI install it" instead

Option 1Let Claude Code install it

Copy this sentence and paste it into a Claude Code chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Restart Claude Code, then type /motion2code or ask for a matching task and Claude picks it up

Checked against official docs Nov 12, 2026 · Source: code.claude.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

The maker’s recommended way

Install Node.js (if you don’t have it)

Already installed? Check first · Open Terminal, type this command and press Enter

node -v
  • A version number such as v26.13.1 = installed, skip this step
  • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
How to open Terminal

Mac: press ⌘ + Space, type Terminal, press Enter

Windows: open Start, type Windows PowerShell, then Open

Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

Open the Node.js download page ↗

When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

Install once; it works for everything that needs Node.js

Checking the commands · copy buttons appear once they pass

Copied from the maker’s README; it downloads and runs the maker’s code

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.claude/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Claude Code, then type /motion2code or ask for a matching task and Claude picks it up

Skills you install yourself work in the ChatGPT desktop app, Codex CLI and the Codex IDE extension · ChatGPT on the web and mobile cannot use skills you install yourself, only skills that come with a plugin from the directory

ChatGPT desktop app

The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills

Option 1Let ChatGPT install it

Open Codex in the ChatGPT desktop app and paste this sentence into the chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Option 2Put the folder there yourself

Put the motion2code folder at ~/.agents/skills/motion2code

~ is your home folder ($HOME)

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

After installing

  • ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
  • To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
  • Codex picks up newly installed skills by itself; if one does not show up, restart Codex

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

ChatGPT on the web and mobile

Skills you install yourself do not work here; only skills that come with a plugin from the directory

To use this skill with ChatGPT, use the ChatGPT desktop app as above

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

Option 1Let Codex install it

Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name

Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.agents/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. Restart Codex, then ask for a matching task; Codex lists the skill

Option 1Let Cursor install it

Copy this sentence and paste it into a Cursor chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

In Cursor’s Agent chat, type / and pick motion2code

Checked against official docs Nov 12, 2026 · Source: cursor.com

For Terminal users

A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.

  1. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead

  2. Copy the skill folder to ~/.cursor/skills

    This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md

    Checking the commands · copy buttons appear once they pass

  3. In Cursor’s Agent chat, type / and pick motion2code

Option 1Let the AI install it

For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat

Where to install

Checking the commands · copy buttons appear once they pass

Checking the commands · copy buttons appear once they pass

For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing

The AI tells you what it will do first and asks your permission at every step

Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com

For Terminal users

Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.

View on GitHub ↗

Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026

View the original SKILL.md

The text below comes from the maker’s repo, not from PopNx MCP

7,456 characters · Open the full file on GitHub

---
name: motion2code
description: >-
  Rebuilds an AI-generated (or any) flat motion design video as clean, editable code: inline SVG shapes animated by
  one GSAP timeline, seekable frame by frame, looping seamlessly, checked side by side against the source; and
  optionally turns an interface recording into a real interactive website (GSAP ScrollTrigger, real clicks).
  Ships scripts to study the video (frames, cuts, contact sheet, exact palette), render the code to mp4/GIF through
  anim.seek, compare it with the source frame by frame and check the loop seam and page contract. Use when the user
  wants a video, GIF, Lottie-like clip, motion design shot, animated logo, UI screen recording or AI video
  "recreated in code", "converted to SVG/GSAP", "made into an HTML animation" or "made into a real site". Not for
  photographic footage, 3D rendering or video editing.
license: MIT
metadata:
  hermes:
    tags:
      - svg
      - gsap
      - motion-design
      - animation
      - video-to-code
      - scrolltrigger
    category: development
---

# Motion2Code

The video is the spec, and you cannot watch it. Treat the job as reconstruction: turn the clip into images you can
look at, write down what happens and when, build the shapes, drive them with one clock, then prove every moment
against the source with images side by side. Never animate from a memory of the video.

## Workflow

1. **Study the source.** `python3 scripts/study_video.py source.mp4 -o study/` saves a frame every 0.25 s, the
   frames around every cut, a contact sheet, the exact flat palette and whether the source already loops. Open the
   sheet, then the frames. Read the prompt file next to the video if there is one: it holds the exact words.
2. **Write the shot list.** One line per beat: time range, what each shape does, how it eases, what it becomes
   next. Note the stage size (1920x1080 or 1080x1920) and the real duration (ffprobe, e.g. 15.10 s means a 15 s
   loop). See `references/study-the-source.md`.
3. **Build the stage** from `templates/index.html`: one inline SVG at the source resolution, every shape drawn
   around its own origin, flat fills from the sampled palette, the closest Google Font subset to the exact letters.
4. **Animate on one GSAP timeline.** Tweens for the shots, plus a pure `draw(t)` for procedural parts (particles,
   morphs, physics) called from the same clock. Match the timing of the frames, not your idea of it.
   See `references/animation-architecture.md` and `references/motion-vocabulary.md`.
5. **Close the loop in code.** The last moment returns to the exact opening frame, even when the source does not.
   See `references/seamless-loop.md`.
6. **Verify, fix, repeat.**
   `python3 scripts/frame_diff.py source.mp4 index.html -o diff/` writes source|code pairs and a score per time;
   open the pairs, fix the worst first, then zoom on transitions with `--every 1/24 --start a --end b`.
   `python3 scripts/check_anim.py index.html --runtime` checks the contract, the loop seam, determinism, console
   errors and network. Ship only when both are clean. See `references/verification.md`.
7. **Deliver:** `index.html`, `compare.html` (from `templates/compare.html`), and when asked the proof videos:
   `python3 scripts/render_anim.py index.html -o anim.mp4` then
   `python3 scripts/side_by_side.py source.mp4 anim.mp4 -o side_by_side.mp4 --html index.html`.
8. **Optional real site.** For an interface recording, after the faithful replay, build `site.html` from
   `templates/site.html`: scroll becomes ScrollTrigger, fake clicks become real buttons.
   See `references/interfaces-and-sites.md`.

Scripts need Python 3.9+, ffmpeg, and Playwright for anything that opens a browser
(`uv run --with playwright python scripts/...`, or `pip install playwright && python -m playwright install chromium`).
Run them from this skill's directory or with full paths.

## The page contract

```js
window.anim = { tl, duration, seek(t), play(from), pause() }   // seek(t) is a pure function of t
```

- `index.html?t=6.5` freezes at 6.5 s; `?external=1` does not autoplay (compare.html and the scripts drive it);
  with no parameter it plays by itself and loops forever.
- `<html data-ready="1">` once fonts are loaded and frame 0 is drawn. Renderers wait for it.
- `frame(duration)` equals `frame(0)`; `frame(duration - 1/24)` is one step away from it.
- Self-contained: inline SVG, GSAP 3 from cdnjs, flubber from jsdelivr only when a morph needs it, Google Fonts.
  Nothing else is loaded.

## Hard rules

- **Use only the given source video.** Never regenerate it, never fetch "a better version", never trace a frame
  into the page. No `<img>`, `<video>`, SVG `<image>`, canvas `drawImage` or raster data URI in the animation.
- **Words exactly as in the source prompt** (or the video if there is no prompt), even when the video misspells
  them. Invented gibberish words in UI recordings become flat bars or are removed.
- **Flat shapes as SVG.** Solid fills, the sampled hex colors, no gradients, shadows or filters the source does not
  have. Strokes with `stroke-linecap="round"` for sticker outlines.
- **GSAP timeline is the single clock.** No `requestAnimationFrame` loops, `setTimeout` choreography, CSS
  animations or `Date.now()` driving visuals. Randomness is seeded and precomputed.
- **The loop is done in code.** If the source does not return to its opening frame, add a short clean transition
  back to it. The seam is checked numerically.
- **Every moment is checked against the source side by side**, at least every 0.5 s and frame by frame around
  every transition and the loop seam. "Looks right" without a pair image is not a check.
- **Same timing as the source.** Measure from the frames; do not compress, pad or reorder beats.

## Reference routing

Read only what the task needs:

| File | Read when |
|---|---|
| `references/study-the-source.md` | starting: frames, cuts, palette, shot list, words, duration, aspect |
| `references/animation-architecture.md` | building: stage, shape origins, timeline vs draw(t), keyframe helper, morphs, fonts, determinism |
| `references/motion-vocabulary.md` | matching the feel: snaps, squash and stretch, smears, elastic settles, iris wipes, morph chains |
| `references/seamless-loop.md` | the source does not loop, or the seam jumps |
| `references/verification.md` | checking and proof videos: frame_diff, compare.html, check_anim, render, side by side |
| `references/interfaces-and-sites.md` | the source is a website/app recording, or a real `site.html` is wanted |

Templates: `templates/index.html` (the contract, a tiny looping example), `templates/compare.html` (video and code
side by side, synced to the video clock, frame stepping, onion skin), `templates/site.html` (ScrollTrigger pin and
scrub, menu, tabs, flip card, draggable slider, cart counter, keyboard, reduced motion).

## Output expectations

- Deliver `index.html` (+ `compare.html`, + `site.html` for interfaces) and say what was checked and how:
  frame_diff times, worst scores and what they were, `check_anim.py --runtime` result, page size.
- List honestly what differs from the source (a simplified texture, a merged beat), never "pixel perfect".
- Keep names readable: one group per character or object, ids that say what they are, the palette as constants,
  shots commented with their time range, so a designer can retime or recolor without reading everything.

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

From GitHub

GitHub stars
354
Maker
lovisdotio
License
MIT
Last code change
Oct 20, 2026
SKILL.md files in the repo (including translated copies and templates)
1
Topics
agent-skills, animation, claude-code, gsap, motion-design, svg, video-to-code