Agent skill

React Screenshot Recreator

by buildfastwithai in buildfastwithai/gen-ai-experiments

Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity.

MITAuto-check passedFrontend & Design

Install React Screenshot Recreator

skills CLI
$ npx skills add buildfastwithai/gen-ai-experiments --skill react-screenshot-recreator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install buildfastwithai/gen-ai-experiments react-screenshot-recreator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/buildfastwithai/gen-ai-experiments.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/react-screenshot-recreator .claude/skills/react-screenshot-recreator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-screenshot-recreator
GitHub stars
785
Token cost
~2.9k tokens
SKILL.md length
1,597 words
Files
5 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity.

  • Works in 5 steps: Audit the screenshot → Derive the design system → Plan the component tree → …
  • The user shares an image of an interface and wants it built
  • SKILL.md covers Workflow, Step 1 — Audit the screenshot, Step 2 — Derive the design… and Step 3 — Plan the component tree, plus 4 more sections
  • Reaches placehold.co

What it does

React Screenshot Recreator is an agent skill from buildfastwithai/gen-ai-experiments. Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity. Use this skill whenever the user shares an image of an interface and wants it built, cloned, converted, or "made real" — including phrasings like "build this", "recreate this design", "code this Figma export", "clone this landing page", "turn this mockup into React", "make a component that looks like this", or when they paste a screenshot of a…

Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/effects.md`, `references/patterns.md` and `references/tailwind-mapping.md`).

It sits in Frontend & Design, covering CSS and styling, Landing pages and Design to code. It works with React, Tailwind CSS, TypeScript and Figma. The repository describes itself as: Collection of Jupyter notebooks is designed to provide you with a comprehensive guide to various AI tools and technologies. The licence is MIT.

When your agent uses it

  • The user shares an image of an interface and wants it built
  • Made real — including phrasings like build this
  • Recreate this design
  • Code this Figma export

Example prompts

  • “made real”
  • “build this”
  • “recreate this design”
  • “/react-screenshot-recreator”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Audit the screenshot
  2. Derive the design system
  3. Plan the component tree
  4. Write the code
  5. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit 7b62043. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • placehold.co

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Screenshot Recreator loads about 2.9k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 207 tokens; SKILL.md has 1,597 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~207
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from buildfastwithai/gen-ai-experiments at commit 7b62043, republished under its MIT licence (© buildfastwithai). 1,597 words, ~2,934 tokens.

Download SKILL.mdSave it as .claude/skills/react-screenshot-recreator/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
react-screenshot-recreator
description
Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity. Use this skill whenever the user shares an image of an interface and wants it built, cloned, converted, or "made real" — including phrasings like "build this", "recreate this design", "code this Figma export", "clone this landing page", "turn this mockup into React", "make a component that looks like this", or when they paste a screenshot of a website/dashboard/card/pricing table/navbar with little explanation. Also use it when the user asks for HTML/CSS from an image, or wants an existing component restyled to match a reference image. Trigger even if they never say the words "React" or "Tailwind" — this is the default path for image-to-UI work.

React Component Screenshot Recreator

Turn a screenshot of an interface into React code that a designer would look at, next to the original, and struggle to tell apart.

The failure mode this skill exists to prevent is the plausible approximation: code that captures the gist — a card, a heading, a button — while getting every spacing value, weight, radius, and shadow slightly wrong. The result feels like a sketch of the design rather than the design. Slightly wrong everywhere reads as unmistakably wrong.

Two habits prevent it. First, measure before you write — read values off the image instead of reaching for defaults. Second, reason about intent — real interfaces are built on a spacing scale, a type ramp, and a small palette, so when one value is ambiguous, infer it from the system the rest of the design reveals.

Workflow

  1. Audit the screenshot — a written pass over layout, type, color, effects, and state. Details you don't name, you won't build.
  2. Derive the design system — spacing unit, type ramp, palette, radius scale, shadow scale.
  3. Plan the component tree — decide what's reusable before writing any JSX.
  4. Write the code — TypeScript, Tailwind, semantic HTML, lucide-react icons.
  5. Verify against the image — walk the audit list and check each item landed.

Steps 1 and 5 are what separate a recreation from an approximation. Don't skip them, and don't collapse the audit into a single glance — writing the observations down is what makes them actionable.


Step 1 — Audit the screenshot

Look at the image carefully and write out what you see, before any code. If multiple screenshots were provided (different breakpoints, states, or scroll positions), audit each and note what changes between them — that's free information about responsive and interactive behavior.

Zoom mentally into each region. State values as numbers, not adjectives: "24px gap", not "generous spacing". A number can be translated to Tailwind; an adjective can't.

Cover:

Layout — overall structure (flex row/column, grid with N columns, absolute overlay), container max-width, outer padding, gaps between siblings, internal padding of each box, alignment (start/center/baseline/stretch), and anything that breaks the flow (a badge pinned to a corner, an avatar overlapping a card edge, a sticky header).

Typography — for every distinct text style: size, weight, line height, letter spacing (tight tracking on large headings is extremely common and its absence is very visible), color, case, and truncation. Note the hierarchy: which is the display size, which is body, which is the small muted label.

Color — background layers (page vs. surface vs. elevated surface — they're often 2–4% apart and that difference is the whole look), text colors at each level of emphasis, border colors, accent/brand color, and gradients (direction, stops, and whether the stops are colors or transparent-to-color).

Depth and effects — shadows (spread, blur, y-offset, opacity, and whether there are two layered shadows, which is the norm in good design systems), borders (width, color, whether it's a hairline at low opacity), backdrop blur, glow, inner highlights, noise, rings.

Components — name each archetype you recognize (navbar, hero, feature card, pricing tier, avatar group, badge, progress bar, tab set, accordion, modal, chart). Naming them tells you which conventions to apply and where the reusable boundaries are.

Media — images and icons: dimensions, aspect ratio, crop behavior, corner radius, any overlay or shadow. Identify icons by shape so you can match them to lucide-react.

Implied behavior — hover treatments, active/selected states visible in the shot (one tab is underlined, one nav item is brighter, one pricing card is "highlighted"), focus rings, disabled styling, transitions the design clearly wants (a lift on a card, a color shift on a button).

references/visual-audit.md has the full checklist with the specific things that are easiest to miss. Read it on the first recreation of a session, or any time the screenshot is dense.

Step 2 — Derive the design system

Before writing JSX, collapse your measurements into a small system. This is what makes the output both accurate and maintainable, and it's how you resolve ambiguity honestly.

  • Spacing unit — nearly every real design snaps to a 4px or 8px grid. Once you spot it, round your measurements to it. A gap you read as "23px" is 24px.
  • Type ramp — the sizes you measured almost certainly form a recognizable scale (12/14/16/18/20/24/30/36/48/60). Snap to it.
  • Palette — map each observed color to the nearest Tailwind token when it's close (within a couple percent of lightness); use an arbitrary value like bg-[#0B0F19] when it isn't. Brand colors are usually arbitrary; grays are usually tokens.
  • Radius scale — typically 2–3 values across a design (e.g. 8px for inputs, 12px for cards, full for pills).
  • Shadow scale — usually 2–3 elevations.

If a value is genuinely unreadable from the image, choose the one the system predicts. That's inference, not guessing, and it's why this step comes before the code.

Step 3 — Plan the component tree

Split where the design repeats or where a section is conceptually independent. Three pricing cards means one PricingCard with props, not three JSX blocks. A page-level screenshot means Navbar, Hero, FeatureGrid, Footer as siblings.

Don't over-split. A Divider component that renders one <div> adds indirection for nothing. The test: would you reuse it, or does naming it make the parent easier to read? If neither, inline it.

Define a props interface for anything that varies, and colocate the content as a typed data array so the markup stays clean:

tsx
const tiers: PricingTier[] = [ /* ... */ ];
// ...
{tiers.map((tier) => <PricingCard key={tier.name} {...tier} />)}
Show full SKILL.md (708 more words)Show less

Step 4 — Write the code

Stack: React function components, TypeScript, Tailwind utility classes. The output should drop into a standard Vite + React + Tailwind project and run with no extra setup beyond lucide-react.

Tailwind first. Use arbitrary values (pt-[3.25rem], bg-[#0B0F19], shadow-[0_1px_2px_rgba(0,0,0,0.06),0_8px_24px_rgba(0,0,0,0.08)]) rather than dropping into a stylesheet — precision doesn't require abandoning utilities. Reach for a <style> block or CSS module only for things utilities genuinely can't express: @keyframes, complex multi-layer backgrounds, ::before decorations, scroll-driven effects.

Semantic HTML. <header>, <nav>, <main>, <section>, <footer>, <button>, <a>, <ul>/<li>. A clickable thing is a <button> or <a>, never a <div> with onClick — that single choice delivers keyboard access and focus behavior for free.

Icons. Prefer lucide-react. Match by shape; when the exact icon isn't in the set, pick the closest and note the substitution. Fall back to Heroicons or an inline SVG only for logos and genuinely custom marks. Icons that are purely decorative get aria-hidden="true"; icon-only buttons get an aria-label.

Images. Use a placeholder at the exact dimensions with the same object-fit, aspect ratio, radius, and shadow — sizing is structural and a wrong-sized placeholder breaks the layout. For photos, a neutral bg-slate-200 block or https://placehold.co/{w}x{h} both work; leave a comment marking where the real asset goes.

States and motion. Add the hover, focus, and active treatments the design implies, with transition-colors/transition-all and a duration in the 150–300ms range. Include focus-visible: rings on every interactive element. Recreate entrance and ambient animations (fade, slide, scale, float, gradient shift) when the composition implies them — a hero that reads as animated should be. Respect prefers-reduced-motion for anything continuous.

Responsive. Build mobile-first and layer sm:/md:/lg: upward. The screenshot is one breakpoint; infer the others from structure — multi-column grids collapse to one column, horizontal navs become a menu button, display type steps down a size or two, section padding shrinks. Don't invent layouts the design doesn't suggest.

references/tailwind-mapping.md converts measured pixel values to Tailwind classes and covers arbitrary-value syntax. references/effects.md has tested recipes for glassmorphism, neumorphism, gradient text and borders, glow, animated gradients, and layered shadows — read it when the design has any of those. references/patterns.md has structural and accessibility patterns for the common archetypes (navbar, hero, pricing, tabs, accordion, modal, progress, avatar group).

Step 5 — Verify

Re-read your audit from Step 1 and confirm each observation is present in the code. This catches the things that go missing during writing: the letter-spacing on the heading, the second shadow layer, the 1px border at 8% opacity, the badge on the featured card.

Then check the whole: is the visual weight distributed like the original? Does the eye land in the same place first? Contrast is where fidelity is most often lost — muted text that's too dark, or a surface that's too far from the page background, reads wrong even when every measurement is right.

Finally, sanity-check that it compiles: every import used, no undefined variables, key on mapped elements, props typed.


Constraints

Recreate — don't redesign. The instinct to improve what you see is a real one, and here it's the wrong one: the user is asking for this interface, and the parts that look like mistakes are usually deliberate. Don't swap the layout for one you'd prefer, don't simplify a dense section, don't substitute your own color palette or type scale, don't drop elements that seem decorative.

If something in the design looks like an actual error, build it faithfully and mention it afterward in one line. That respects both the request and your judgment.

Never stall on incomplete information. A screenshot is always missing something — what's below the fold, what happens on hover, the exact hex under an overlay. Infer from the surrounding design system, keep the choice consistent with everything else, and note the assumption briefly at the end. An incomplete answer is worth less than a complete one with three noted assumptions.

Deliverable

Return the code — component files, types, and any subcomponents — with a short note listing icon substitutions, placeholder images, and inferred values. Save files when the environment supports it; otherwise return them inline, one code block per file with the filename as the header.

Skip the tutorial. No setup instructions, no explanation of what Tailwind is, no walkthrough of the JSX. The code and a few lines of assumptions are the whole deliverable.

© buildfastwithai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/react-screenshot-recreator of buildfastwithai/gen-ai-experiments.

  • SKILL.md
  • references/effects.md
  • references/patterns.md
  • references/tailwind-mapping.md
  • references/visual-audit.md

Open the folder on GitHubat commit 7b62043

Compare with similar skills

React Screenshot Recreator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Screenshot Recreator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Screenshot Recreator this skillbuildfastwithai/gen-ai-experiments785—~2.9kAutomated safety check: PassMIT
Design To CodeMigoXLab/coderio1142 repos~1.2kAutomated safety check: PassApache-2.0
Clone AnywebsiteSylphAI-Inc/skills112—~10kAutomated safety check: PassNone
Redesign My Landingpageinstructa/agent-skills139—~1.8kAutomated safety check: PassNone
Figma To Codemajiayu000/spellbook287—~2.1kAutomated safety check: PassMIT
Kill AI Slopyetone/kill-ai-slop1.3k—~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Design To Code

    MigoXLab/coderio

    Pixel-perfect Figma to React conversion using coderio. An agent skill from MigoXLab/coderio.

    114 GitHub starsUsed in 2 repos~1.2k tokens
    Frontend & DesignAuto-check passed
  • Clone Anywebsite

    SylphAI-Inc/skills

    Clone any website's landing page with pixel-perfect fidelity.

    112 GitHub stars~10k tokensUpdated 18 days ago
    Frontend & DesignAuto-check passed
  • Redesign My Landingpage

    instructa/agent-skills

    Build, critique, and iterate high-converting marketing or product landing pages using React + Vite + TypeScript + Tailwind and shadcn/ui components, with all icons sourced from Iconify.

    139 GitHub stars~1.8k tokensUpdated 12 days ago
    Frontend & DesignAuto-check passed
  • Figma To Code

    majiayu000/spellbook

    Extract Figma designs and generate production-ready React/Next.js components with TypeScript, Tailwind CSS, and pixel-perfect accuracy.

    287 GitHub stars~2.1k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Kill AI Slop

    yetone/kill-ai-slop

    Find and remove AI slop — the generic, machine-default visual and copy tics of vibe-coded products — from a web project.

    1.3k GitHub stars~1.4k tokensUpdated 26 days ago
    Frontend & DesignAuto-check passed
  • Design Style

    Castor6/tactus

    A skill your agent uses whenever the user asks to build, create, design, develop, improve, or style any frontend interface or visual element.

    376 GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed

More from buildfastwithai/gen-ai-experiments

All 13 skills in this repo
  • Landing Page Generator

    buildfastwithai/gen-ai-experiments

    Builds a single self-contained HTML landing page from a template with copy frameworks, four themes and SEO meta, then runs bundled audit scripts for conversion and speed.

    785 GitHub stars~1.5k tokensUpdated 18 days ago
    Auto-check passed
  • Talking Avatar Voice Chat App

    buildfastwithai/gen-ai-experiments

    Builds a realtime voice-chat app around a talking character portrait made from your photo or a text description, with mouth sprites driven by the audio.

    785 GitHub stars~1.7k tokensUpdated 18 days ago
    Auto-check passed
  • LaunchAudit

    buildfastwithai/gen-ai-experiments

    Audits a startup, app or landing page from a URL, localhost, repository, screenshots or copy, then gives a launch-readiness verdict, prioritized fixes and an HTML report.

    785 GitHub stars~1.8k tokensUpdated 18 days ago
    Auto-check passed
  • Startupblueprint

    buildfastwithai/gen-ai-experiments

    Turn a startup, SaaS, app, developer tool, website, repository, or product idea into an evidence-backed business plan, monetization strategy, pricing architecture, editable 12-month financial model…

    785 GitHub stars~2.2k tokensUpdated 18 days ago
    Auto-check passed
  • Eazyr Repo Onboarding Kit

    buildfastwithai/gen-ai-experiments

    Creates a QUICKSTART, doctor scripts and a documented .env.example for an unfamiliar repo from facts scanned in the repo, and audits how easy it is to onboard.

    785 GitHub stars~1.4k tokensUpdated 18 days ago
    Auto-check: notes
  • Mutation Test Strength Audit

    buildfastwithai/gen-ai-experiments

    Measures how well a Python pytest suite catches behavior changes through diff-scoped mutation testing, then proposes and verifies tests for surviving mutants.

    785 GitHub stars~641 tokensUpdated 18 days ago
    Auto-check passed

Questions about React Screenshot Recreator

What does React Screenshot Recreator do?

Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity. React Screenshot Recreator is an agent skill from buildfastwithai/gen-ai-experiments. Recreate a UI screenshot, mockup, or design image as production-quality React + TypeScript + Tailwind code with near-pixel-perfect visual fidelity.

When should I use React Screenshot Recreator?

React Screenshot Recreator fits situations like: the user shares an image of an interface and wants it built; made real — including phrasings like build this; recreate this design; code this Figma export.

How do I install React Screenshot Recreator in Claude Code?

Run `npx skills add buildfastwithai/gen-ai-experiments --skill react-screenshot-recreator -a claude-code`. Or copy the skill folder (skills/react-screenshot-recreator in buildfastwithai/gen-ai-experiments) into .claude/skills/react-screenshot-recreator in your project. Claude Code loads it when a task matches its description.

How do I install React Screenshot Recreator in Codex?

Run `npx skills add buildfastwithai/gen-ai-experiments --skill react-screenshot-recreator -a codex`. Or copy the skill folder (skills/react-screenshot-recreator in buildfastwithai/gen-ai-experiments) into .agents/skills/react-screenshot-recreator in your project. Codex loads it when a task matches its description.

Can I use React Screenshot Recreator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add buildfastwithai/gen-ai-experiments --skill react-screenshot-recreator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-screenshot-recreator, .gemini/skills/react-screenshot-recreator, .github/skills/react-screenshot-recreator and .opencode/skills/react-screenshot-recreator in your project.

What does React Screenshot Recreator need to run?

SKILL.md names no scripts, command-line tools or credentials: React Screenshot Recreator is instructions for the agent only.

Does React Screenshot Recreator access the network?

SKILL.md names 1 domain. In commands or code: placehold.co; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is React Screenshot Recreator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Screenshot Recreator use?

React Screenshot Recreator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does React Screenshot Recreator use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to React Screenshot Recreator?

Skills that share tags, products or a category with React Screenshot Recreator: Design To Code (MigoXLab/coderio, 114 stars), Clone Anywebsite (SylphAI-Inc/skills, 112 stars), Redesign My Landingpage (instructa/agent-skills, 139 stars) and Figma To Code (majiayu000/spellbook, 287 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Screenshot Recreator?

buildfastwithai (a GitHub organization) maintains it in buildfastwithai/gen-ai-experiments, which has 785 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 22, 2026.

Source: buildfastwithai/gen-ai-experiments on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.