🖼️
FrontendPython

Yueban Image to Code

by SemineChen

Yueban Image to Code is a Frontend skill for Claude Code, published by SemineChen in yueban-image-to-code.

103 stars8 forkson SemineChen/yueban-image-to-codeAdded 2026/07/16+2% in starsRepository updated 2026/06/03
Install in seconds
Install Yueban Image to Code
Copy Yueban Image to Code into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/SemineChen/yueban-image-to-code ~/.claude/skills/yueban-image-to-code

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/SemineChen/yueban-image-to-code.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
SKILL.md in SemineChen/yueban-image-to-code
Installs to
~/.claude/skills/yueban-image-to-code
Collection
The only skill cataloged from this repository
Category
Frontend732 skills

What Yueban Image to Code does

Pixel-perfect conversion of UI images to code at 750px width with transparent PNG asset extraction. Use when strict 1:1 visual restoration is required, enforcing exact coordinates, bbox-based slicing, and no auto-layout optimizations.

Yueban Image to Code is cataloged under Frontend on DirSkills.

Documentation

README

Yueban Image To Code

目标

把用户提供或当前选中的 UI 图片还原为代码,并导出必要的独立切图资源。

原图就是视觉合同。不要把它重新设计成“更合理”的界面,不要做排版优化,不要主观调整间距。必须先按 750px 宽度等比归一化,再按原图元素的位置、比例、层级、颜色、透明度和样式进行还原。

最高优先级规则

当用户要求“严格等比例缩放至画板宽度精确 750px”时,这条规则高于所有常规前端、设计和响应式建议。

  • 整体画板宽度必须精确为 750px
  • 画板高度必须根据原图宽高比自动计算,不能人为设定或优化。
  • 所有元素必须使用同一个全局缩放比例。
  • 保持所有元素的相对位置、相对大小、层级关系、堆叠顺序、颜色、透明度、阴影、渐变、圆角、描边和样式属性。
  • 禁止自动调整任何元素的位置、大小、对齐、间距、排版或视觉层级。
  • 禁止重新设计、优化布局、合并独立元素、拉伸素材、改变颜色或简化效果。
  • 禁止把图标或位图强行转换为矢量路径。
  • 禁止使用相似图标库、相似插画、AI 生成图、CSS 临摹图或占位素材替代原图中的图标/位图。
  • 禁止自动创建 Figma/export 的 Slice 对象。只有在需要切图资源时,才按元素边界导出独立 PNG 文件。
  • 如果代码优雅性和视觉还原发生冲突,视觉还原优先。

跨目录调用一致性

无论用户在哪个项目文件夹调用本 skill,都必须只以本次用户提供/选中的原图为视觉源。不要沿用其他会话、其他文件夹、旧示例或历史任务里的结构、素材、配色、页面区域和实现假设。

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Yueban Image to Code

  • How does Yueban Image to Code compare to other Frontend skills?

    Yueban Image to Code ranks #694 by stars among the 732 Frontend skills in this catalog. The most-starred ones next to it are Angular Developer, Android Clean Architecture and Accessibility. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Yueban Image to Code against them. Open each page to compare what they document and how they install.