pixel-clone

Agent Skills · Open source · MIT · 2026 · Author · Agent tooling

Every value measured, not guessed, then proven pixel by pixel.

pixel-clone turns a website you own, or may replicate, into a Next.js and Tailwind CSS project whose colors, sizes, font metrics, easing curves and shader values were measured through the Chrome DevTools Protocol.

It then runs a full-page, multi-viewport pixelmatch loop and keeps fixing until every slice matches, or reports exactly why it cannot.

  • Six MCP tools: profile_site, scan_page_sections, extract_dom_and_styles, capture_motion_timeline, inspect_webgl_scene and compare_visual_diff.
  • Responsive rules are fitted per element at 1440×900 and 1920×1080 with a 390×844 mobile pass; motion is captured as exact cubic-bezier curves and keyframes on a frame-stepped clock.
  • WebGL and three.js scenes are inspected down to compiled GLSL, uniforms and render passes, and bespoke canvas sections can be replayed at 60 fps.
  • On a bespoke WebGL scroll-story case study it reached 96.6% and 95.6% mean per-slice similarity at 1440 and 1920 with the page height exact, and the hero paints in 0.24 s.
  • Backed by 95 passing automated tests (17 unit, 78 end-to-end); works with Claude Code, Cursor, Antigravity and Windsurf.

Agent Skill, MCP, Playwright, Chrome DevTools Protocol, pixelmatch, Next.js, Tailwind CSS, three.js, Node.js

Source code on GitHub