yueban-image-to-code

Convert UI images into 750px pixel-accurate code and transparent PNG cut assets.

102|17|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/SemineChen/yueban-image-to-code --skill yueban-image-to-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yueban-image-to-code
Source: https://github.com/SemineChen/yueban-image-to-code/tree/main
Command: npx skills add https://github.com/SemineChen/yueban-image-to-code --skill yueban-image-to-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Pillow, numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill turns UI screenshots and design images into faithful 750px code implementations while also exporting the exact transparent PNG cut assets needed to match the source image.

Core Features & Use Cases

  • Pixel-accurate restoration: Rebuild mobile UI screenshots, app screens, web layouts, and design comps with fixed-width 750px scaling.
  • Transparent asset slicing: Extract avatars, icons, illustrations, and other bitmap elements as independent PNG files with preserved alpha.
  • Validation-first workflow: Use manifests, bbox previews, asset audits, and image comparison checks to verify layout and cut quality before delivery.
  • Use case: Convert a product screen or design mockup into editable code, keep text as text, reproduce simple shapes with code, and slice only the complex visual elements from the original image.

Quick Start

Use the yueban-image-to-code skill to convert the selected UI image into a 750px pixel-accurate code implementation and export the matching transparent PNG cutouts.

Frequently Asked Questions about yueban-image-to-code

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

FAQPage Schema
How do I convert a UI screenshot into editable code while keeping the 750px layout pixel perfect?

To convert a UI screenshot into pixel-perfect 750px code, use an image-to-code restoration process that enforces strict one-to-one scaling. This rebuilds mobile UI screenshots into editable text layers and reproduces simple shapes with code while slicing complex visual elements as transparent PNG assets.

How does transparent PNG slicing work for mobile UI design comps?

Transparent PNG slicing extracts bitmap elements like avatars and icons from mobile UI design comps as independent files with preserved alpha channels. It applies exact bounding-box extraction to isolate complex visual elements, ensuring the cut assets match the source image precisely.

Can I extract bounding boxes from a design image and export them as transparent PNG cutouts?

Yes, you can extract bounding boxes from a design image and export them as transparent PNG cutouts. The process applies exact bounding-box extraction to isolate complex visual elements, preserving alpha transparency for independent bitmap assets like avatars and illustrations.

Does image-to-code restoration support web interfaces and app screens outside of fixed-width 750px layouts?

Image-to-code restoration is specifically designed for fixed-width 750px layout scaling. It applies to mobile screenshots, app screens, web layouts, and design comps that fit this strict one-to-one scaling requirement, rather than flexible or responsive layout formats.

What is the best way to validate UI restoration accuracy after generating code from a screenshot?

The best way to validate UI restoration accuracy is using a validation-first workflow with manifests, asset audits, and image comparison checks. This verifies the pixel-accurate layout and transparent cut quality before final delivery, ensuring the generated code matches the source image.

Why does image-to-code conversion keep text as text instead of slicing it into image assets?

Image-to-code conversion keeps text as text to maintain editable text layers within the 750px code implementation. This approach reproduces simple shapes with code and slices only complex visual elements, ensuring the output remains a faithful, editable code restoration rather than a flat image.