Retrieved article excerpt
Open article · Retrieved 2026-11-12T02:21:22.199195+00:00
[Motion Debugger](https://github.com/ShadowKingYT444/motion-debugger/blob/main/docs/assets/wordmark.svg)
### Upgrade a vibe-coded site to premium with your coding agent. Motion first, then taste, checked in a real browser.
[CI](https://github.com/ShadowKingYT444/motion-debugger/actions/workflows/ci.yml)
[MIT license](https://github.com/ShadowKingYT444/motion-debugger/blob/main/LICENSE)
[Node.js 22+](https://camo.githubusercontent.com/8429860523d2bb5c3fa8550774f98784f372c6a0d5ad2623f1cc9b685684f905/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e6f64652d32322532422d343338353364)
[Works with Claude Code, Cursor, Codex and any agent](https://camo.githubusercontent.com/9f14c45ca4e38fa97f50a8384c8e3a1b640bb69426451390a66aabafb683e17a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776f726b73253230776974682d436c61756465253230436f6465253230254332254237253230437572736f72253230254332254237253230436f646578253230254332254237253230616e792532306167656e742d666662333364)
[Install](https://github.com/ShadowKingYT444/motion-debugger#install) ·
[Upgrade a site](https://github.com/ShadowKingYT444/motion-debugger#upgrade-a-site) ·
[Commands](https://github.com/ShadowKingYT444/motion-debugger#commands) ·
[The critic](https://github.com/ShadowKingYT444/motion-debugger#the-critic) ·
[Demos](https://github.com/ShadowKingYT444/motion-debugger#four-upgrades) ·
[FAQ](https://github.com/ShadowKingYT444/motion-debugger#faq) ·
[Contribute](https://github.com/ShadowKingYT444/motion-debugger/blob/main/CONTRIBUTING.md)
[A vibe-coded architecture studio site (left) and the same site after one premium-motion upgrade run (right)](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/norr/upgrade.gif)
Left: a site an agent built from a one-paragraph brief. Right: the same site after a fresh agent (Opus 5.5) ran `premium-motion upgrade` on it. Nothing edited by hand. [All four upgrades](https://github.com/ShadowKingYT444/motion-debugger#four-upgrades).
Every agent-built landing page looks the same: near-black with one neon accent, a headline with an italic word, pill buttons, a bento grid, a logo marquee, and every section fading up the same way. It is not ugly. It just tells everyone a model made it, and nobody looked at it before it shipped.
Motion Debugger gives your agent two things it doesn't have:
- 🎬 **A workflow that rebuilds the look and keeps the truth.** The `premium-motion` skill runs an `upgrade` pipeline: it records a baseline, keeps every fact, link and form, picks a direction from the product's own world, then rebuilds the page around choreographed motion and one cinematic scroll scene. It uses a tested GSAP, ScrollTrigger, SplitText and Lenis stack, or Motion in React projects.
- 👀 **Eyes.** `motion-debugger critique` opens the local page in Chromium, records the entrance, scrolls the whole page, hovers every control, checks the phone layout and reduced motion, and hands the agent ranked fixes plus screenshots of the real frames. The agent looks, fixes and looks again, then compares against the baseline.
## Install
Every line below is one command. They work with any model and any coding agent, and the same commands run on macOS, Linux and Windows (bash, zsh or PowerShell). The CLI and `npx` lines need Node.js 22 or later; the git line needs only git.
**The full setup** (critic, skill and agent configuration). Install, then run `init` in your project:
```
npm install -g https://github.com/ShadowKingYT444/motion-debugger/releases/latest/download/motion-debugger.tgz
```
```
motion-debugger init
```
`init` detects your agent (Claude Code, Cursor, Codex, VS Code, OpenCode), installs the skill, offers to download a matching Chromium, and shows every file it would change before asking you to type `yes`. Nothing is written without that, and your existing settings are kept.
**Just the skill, or just the critic:**
| You want | One line |
| --- | --- |
| The skill, for the agent you use | `npx skills add ShadowKingYT444/motion-debugger --skill premium-motion -a cursor` |
| The skill, in the shared `.agents/skills` folder many agents read | `npx skills add ShadowKingYT444/motion-debugger --skill premium-motion -a universal -y` |
| The skill without Node (bash, zsh) | `mkdir -p .agents/skills && git clone --depth 1 https://github.com/ShadowKingYT444/motion-debugger.git /tmp/motion-debugger && cp -r /tmp/motion-debugger/plugin/motion-debugger/skills/premium-motion .agents/skills/` |
| The skill without Node (PowerShell) | `git clone --depth 1 https://github.com/ShadowKingYT444/motion-debugger.git $env:TEMP\motion-debugger; $null = New-Item -ItemType Directory -Force .agents\skills; Copy-Item -Recurse $env:TEMP\motion-debugger\plugin\motion-debugger\skills\premium-motion .agents\skills\` |
| The critic, with nothing installed | `npx -y -p https://github.com/ShadowKingYT444/motion-debugger/releases/latest/download/motion-debugger.tgz motion-debugger critique http://localhost:3000` |
| A browser for the critic | `motion-debugger setup --browser` |
For `-a`, use your agent's name: `claude-code`, `cursor`, `codex`, `gemini-cli`, `github-copilot`, `windsurf`, `cline`, `roo`, `zed`, `opencode`, `goose`, `kiro-cli`, `amp`, `junie` and about 70 more ([skills CLI](https://github.com/vercel-labs/skills)). An agent that can't run shell commands can still follow the skill; it just can't look at the page.
The critic uses Playwright's Chromium if you downloaded it, then `CHROMIUM_PATH`, then an installed Chrome, Chromium or Edge in the usual place on macOS, Windows or Linux. CI installs the packed CLI on all three and critiques a real page.
**Installing from source?**
```
git clone https://github.com/ShadowKingYT444/motion-debugger.git
cd motion-debugger && npm ci && npm run build && npm install -g .
motion-debugger setup --browser # version-matched Chromium
motion-debugger doctor
```
More options in [client setup](https://github.com/ShadowKingYT444/motion-debugger/blob/main/docs/CLIENTS.md).
## Upgrade a site
Start your dev server, then tell your agent:
> Use premium-motion upgrade on this site.
What the agent does, from [`commands/upgrade.md`](https://github.com/ShadowKingYT444/motion-debugger/blob/main/plugin/motion-debugger/skills/premium-motion/commands/upgrade.md):
1. **Baseline.** Critiques the page as it is and lists its AI tells.
2. **Inventory.** Writes down what to keep (facts, numbers, CTAs, forms, your logo and colours) and what to replace.
3. **Direction.** Writes `PREMIUM.md`: audience, facts, the product's world, type, colour, imagery and one motion personality.
4. **First viewport.** Rebuilds the hero alone and critiques it until it holds up.
5. **Rebuild.** Works section by section, each laid out from its content instead of eyebrow, bento and marquee.
6. **Signature scene.** Builds one scroll-scrubbed scene that tells the product's story and is finished at every scroll position.
7. **Polish and harden.** Fixes every outlined defect, then the phone layout, reduced motion, accessibility and scroll performance.
8. **Verify.** Critiques again and compares with the baseline side by side.
Narrow targets work too: `upgrade the pricing section`, `signature the how-it-works section`, `polish the footer`.
## Commands
| Command | What it does |
| --- | --- |
| `upgrade [target]` | The full pipeline above: vibe-coded to premium, verified before and after |
| `audit [target]` | Records the page and ranks every AI tell and motion or finish defect. No edits |
| `direction` | Writes `PREMIUM.md`, the design context every other command reads |
| `motion [target]` | Choreographs the hero, reveals, hover, press and transitions in one personality |
| `signature [target]` | Designs and builds one cinematic scroll scene |
| `typeset [target]` | Replaces default type with a system that has character, scale and finish |
| `palette [target]` | Colour, light and depth from the product's world, with a chapter rhythm |
| `imagery [target]` | Rich visuals without stock photos: product renders, generative scenes, live product UI |
| `compose [target]` | Layout, hierarchy and rhythm: one dominant element per frame |
| `polish [target]` | The finish pass: everything the critic outlines, every state, every edge |
| `harden [target]` | Phone layout, reduced motion, accessibility and scroll performance |
The motion code agents copy from the skill is extracted from its Markdown and run in Chromium in CI at desktop, phone and reduced-motion sizes, so the documented snippet is the tested snippet.
## The critic
Run it yourself on anything local:
```
motion-debugger critique http://localhost:3000 # your dev server (Next.js, Vite, …)
motion-debugger critique ./site # a folder with index.html, or one .html file
```
It prints findings with fixes, writes contact sheets to `.motion-critique/`, and says what changed since the last run: fixed, new and remaining.
Finish defects outlined on crops of a real page
| | Finding | What it means |
| --- | --- | --- |
| 🎞️ | Motion checks | No entrance, unstaggered entrance, linear easing, motion that stops after the hero, dead hover, invisible focus, no reduced-motion support, scroll jank, layout shift |
| 🚫 | `stuck-invisible` | Content that never appears, even after a full scroll (the most common agent bug) |
| 🧱 | `text-collision`, `copy-under-sticky` | Copy painted over other copy, or scrolling under a sticky header |
| 🕳️ | `hollow-containers`, `dead-space` | Cards with an empty band inside; screens that are mostly blank |
| 📐 | `near-miss-alignment`, `edge-crowding` | Items a few pixels off their column; copy jammed against the screen edge |
| 📱 | `mobile-overflow`, tap targets, clipped text | A phone layout that is really a squeezed desktop |
| 🤖 | `default-template` | How many of nine default AI-landing-page traits the first screen shares |
Findings come from real Chromium frames, never from reading the source. [Every check and its limits](https://github.com/ShadowKingYT444/motion-debugger/blob/main/docs/PREMIUM-MOTION.md).
## Four upgrades
Four landing pages that Sonnet 5.5 built from one-paragraph briefs with no plugin, the controls from the A/B study below. A fresh Opus 5.5 agent ran `upgrade` on each, with the same prompt. These are single runs to show the workflow, not a blinded comparison, and nobody edited the results. The prompt, the skill version and every recording are in [`demos/upgrades.json`](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/upgrades.json).
| | Critic score before → after | Blocker and major findings | Template traits |
| --- | --- | --- | --- |
| Ledgerline: payments API | 30 → 100 | 2 → 0 | 6 → 1 of 9 |
| Atelier Norr: architecture studio | 8 → 98 | 4 → 0 | 7 → 0 of 9 |
| Halo: wireless speaker launch | 38 → 100 | 3 → 0 | 5 → 0 of 9 |
| Drift: AI sleep coach | 24 → 100 | 3 → 0 | 8 → 0 of 9 |
One critic run per site, made after the agents finished. The agents were working against this critic, so read the score as "the defects it can see are gone", not as a measure of taste. Judge the films.
**Atelier Norr: architecture studio** · [film](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/norr/upgrade.mp4)
[Atelier Norr before and after the upgrade](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/norr/upgrade-poster.jpg)
**Halo: wireless speaker launch** · [film](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/halo/upgrade.mp4)
[Halo before and after the upgrade](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/halo/upgrade-poster.jpg)
**Drift: AI sleep coach** · [film](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/drift/upgrade.mp4)
[Drift before and after the upgrade](https://github.com/ShadowKingYT444/motion-debugger/blob/main/demos/drift/upgrade-poster.jpg)
**Ledgerline: payments API** · [film](https://github.com/ShadowKingYT444/motion-debugger/blob/mai