Added Nov 11, 2026
replica
An Agent Skill that has coding agents rebuild a UI from a site or screenshot and score the result, for front-end developers.
- Ecosystem
- Agent Skills
- Skill category
- Coding
- Creator / organization
- albertirgi(GitHub albertirgi)
What it is
replica is an Agent Skill published on GitHub by albertirgi for Claude Code and other coding agents. You give the agent a live site, a local page, a screenshot or a screen recording as a reference. The agent rebuilds that UI in your own codebase. Then replica measures the rebuild against the reference and scores it on four axes: layout, style, pixels and motion. The agent keeps adjusting until the score passes. What makes it special: the compare command keeps exiting with a failure status until every gated axis passes, so the score can't be talked around.
Highlights:
- The reference can be a live site, a local page, a screenshot or a screen recording
- Scores on four axes: layout, style, pixels and motion
- The compare command exits non-zero until every gated axis passes
- No API keys needed
How to use:
- First, run `npx skills add albertirgi/replica` in a terminal, or copy `skills/replica` by hand into your agent's skills folder (`~/.claude/skills/replica` or `.claude/skills/replica` in a project for Claude Code).
- Then run `npm install --prefix ~/.claude/skills/replica/scripts` to install its one dependency.
- Finally, run `node ~/.claude/skills/replica/scripts/replica.mjs doctor` to check your setup, then ask the agent to rebuild a UI from a reference.
Who it's for:
Developers who want an AI coding agent to recreate a front-end UI from an existing page or design screenshot and get a measurable result.
Before you start:
- Requires Node 20+, and uses Playwright's Chromium or falls back to an installed Google Chrome. ffmpeg is needed only for video and GIF references.
- Web UI only. Native mobile is not covered, and streaming links such as YouTube and Loom cannot be captured.
- Capture visits the reference page and can use a login state through `--storage auth.json`. Reference screenshots, motion frames and the blueprint are written to the project's `.replica/<name>/ref/` folder.
- The reference's fonts, images, icons and copy belong to their owners. The project suggests using your own assets or placeholders unless you have the rights.
- The page does not state a price. The license is MIT.
Based on the project's public documentation. Not tested by AI Inspiration World.