img-to-frontend

Generates four website design images, then implements the selected design as frontend code with screenshot iteration.

1.0k|58|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/am-will/codex-skills --skill img-to-frontend
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: img-to-frontend
Source: https://github.com/am-will/codex-skills/tree/main/skills/img-to-frontend
Command: npx skills add https://github.com/am-will/codex-skills --skill img-to-frontend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Turning a visual design idea into a real, high-fidelity web page usually requires guessing at layout, typography, and spacing. This Skill enforces an image-first workflow: it generates four distinct design concepts, waits for your selection, writes a granular build prompt, and iterates against screenshots until the coded page closely matches the reference.

Core Features & Use Cases

  • Four-Concept Image Generation: Uses the $imagegen skill to produce four meaningfully distinct website/page design images before any code is written.
  • Detailed Build Prompts: Converts the selected image into a precise implementation prompt covering canvas, grid, typography, color tokens, components, motion, and acceptance criteria.
  • Screenshot Iteration Loop: Builds the page as real HTML/CSS/React and repeatedly compares screenshots against the reference across desktop, tablet, and mobile widths.
  • Use Case: Ask for a landing page for a new product; review four generated design directions, pick one, and receive a working responsive page refined until it visually matches the chosen mockup.

Quick Start

Use the img-to-frontend skill to generate four design concepts for my SaaS landing page, then build the one I select and iterate until it matches the reference.

Frequently Asked Questions about img-to-frontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a design image into a real frontend page?▼

Generate or select a reference image, write a detailed build prompt covering layout, typography, color tokens, and components, then implement it as real HTML/CSS/React. Iterate by capturing screenshots and patching the largest visible mismatch until the page matches the reference.

How does the image-first website design workflow work?▼

The workflow generates four distinct design concepts with an image generation tool, pauses for you to select one, writes a granular implementation prompt, then builds and refines the page through screenshot comparison loops.

What happens if image generation is unavailable?▼

The skill reports the blocker and asks whether you want text-only concept fallbacks. It does not silently skip the image stage or jump straight to code, since the image gate is a non-negotiable first step.

Does it implement the browser chrome shown in design mockups?▼

No. Browser chrome and OS decorations in a reference image are treated as presentation context only. Only the actual page content is built, unless you explicitly request a browser mockup component.

When should I not use an image-to-frontend workflow?▼

Avoid it for business-logic changes, backend features, simple copy edits, or design critique that will not lead to generated images or frontend code. It is purpose-built for visual design-to-code work.