frontend-convert

Convert screenshots or URLs into frontend code with Playwright verification.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/AirMile/claude-config --skill frontend-convert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-convert
Source: https://github.com/AirMile/claude-config/tree/main/skills/frontend-convert
Command: npx skills add https://github.com/AirMile/claude-config --skill frontend-convert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert visual input (screenshots, Figma exports, URLs, inspiration images) into working frontend pages or components. Two modes: 1:1 faithful copy or inspiration-based conversion using the project's theme tokens (from project.json). Self-verifies with Playwright comparison loop. Use with /frontend-convert.

Core Features & Use Cases

  • 1:1 faithful reproduction of visuals for pixel-accurate frontends or
  • Theme-token-based inspiration mapping using project.json for consistent styling
  • Self-verification with Playwright comparison loop to ensure outputs align with inputs
  • Use case: a designer shares a screenshot of a layout; the skill generates a ready-to-code page structure

Quick Start

Provide a visual input path, choose mode, and trigger code generation (the system will map tokens or copy styles and run verification).

Frequently Asked Questions about frontend-convert

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

FAQPage Schema
How do I convert a design screenshot to code for Next.js or Vite?

To convert a design screenshot to code, provide the visual input path and trigger generation. The system detects the target framework, like Next.js or Vite, and generates production-ready frontend UI code.

Can I use a URL to generate frontend UI code automatically?

Yes, you can use a URL to generate frontend UI code. The skill accepts URLs, screenshots, or images as visual input and outputs working frontend pages or components.

What is theme-token-based mapping when converting visuals to code?

Theme-token-based mapping applies your project's styling tokens from project.json instead of copying styles exactly. It enables inspiration-based conversion while maintaining visual alignment with your existing design system.

Does Playwright visual comparison verify generated frontend code?

Yes, Playwright visual comparison verifies generated frontend code. The skill runs a self-verification loop using Playwright to ensure the output page structure aligns accurately with the input visual.

What frameworks are supported for design-to-code conversion?

Supported frameworks for design-to-code conversion include Next.js, Vite, Remix, and Astro. The skill automatically detects the target framework to output the correct production-ready code structure.

When should I use 1:1 faithful reproduction versus token-mapped conversion?

Use 1:1 faithful reproduction for pixel-accurate frontends matching the visual exactly. Use token-mapped conversion for inspiration-based design applying your project's theme tokens for consistent styling across pages.