product-design-image-to-code

Implements a reference image or mockup as a responsive interactive frontend prototype.

634|124|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/AIDotNet/OpenCowork --skill product-design-image-to-code
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: product-design-image-to-code
Source: https://github.com/AIDotNet/OpenCowork/tree/main/resources/extensions/product-design/skills/product-design-image-to-code
Command: npx skills add https://github.com/AIDotNet/OpenCowork --skill product-design-image-to-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vite, react, react-dom, @vitejs/plugin-react, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Turning a screenshot, mockup, or generated design image into working frontend code is slow and error-prone, often producing static pages with placeholder art that miss the original design. This Skill converts a confirmed visual target into a faithful, interactive React prototype with generated image assets and a blocking design QA gate.

Core Features & Use Cases

  • Faithful visual recreation: Measures layout, spacing, typography, and sections from the reference image, then rebuilds them in a Vite + React prototype.
  • Real asset generation: Catalogs every image in the design and generates matching assets with the Image Gen tool, forbidding CSS art, inline SVGs, and placeholder boxes.
  • Interactive build with QA gate: Implements functional controls, hover states, and navigation, then runs a design-qa comparison against the reference until the report passes.
  • Use Case: A designer shares a landing page mockup; the Skill bootstraps a local prototype, generates hero and thumbnail imagery, builds the interactive page, captures screenshots, and iterates until the QA report matches the source.

Quick Start

Provide a screenshot or mockup and ask the agent to recreate it as a working responsive web app after confirming the design brief.

Frequently Asked Questions about product-design-image-to-code

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

FAQPage Schema
How do I turn a design mockup into working frontend code?▼

Provide the mockup image after the design brief is confirmed, and the Skill measures layout, spacing, and typography, generates matching image assets, and builds an interactive Vite and React prototype. A design QA comparison against the reference must pass before handoff.

What do I need before running image-to-code conversion?▼

You need a confirmed design brief from the get-context skill and a concrete visual target such as a screenshot, mockup, or generated image. A written brief alone is not enough to start the build.

Can it use CSS shapes or inline SVGs instead of real images?▼

No. The Skill explicitly forbids CSS art, div art, handcrafted or inline SVGs, emoji, and placeholder boxes. All imagery must come from the built-in Image Gen tool, and icons must come from the closest matching icon library.

Does the prototype support mobile designs?▼

Yes. If the provided design targets a mobile viewport, the Skill builds a mobile app layout; when the viewport is unclear, it defaults to desktop. The build is responsive and includes functional interactions.

Why does the build stop before handoff?▼

Handoff is blocked until a design-qa.md report exists with final result: passed. If source capture, prototype capture, or visual comparison is blocked, the report records final result: blocked and the Skill stops instead of delivering.