Skip to content
Back to search

ky-design-to-html-skill

A Codex / Claude skill for recreating UI screenshots as HTML/CSS.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/kyriecheungyep--ky-design-to-html-skill/badge.svg)](/listings/kyriecheungyep--ky-design-to-html-skill)

HTML

<a href="/listings/kyriecheungyep--ky-design-to-html-skill"><img src="/api/listings/kyriecheungyep--ky-design-to-html-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 101 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # KY Design to HTML Skill
  2. KY Design to HTML 不是一个 UI 生图 skill。它主要面向已有 UI 截图或设计稿的 HTML/CSS 还原,重点是资产分离、画布适配、截图验证和视觉误差修正。
  3. 适用于 Codex / Claude 的 设计截图 转 HTML/CSS skill。
  4. 它适合用在这类场景:
  5. - 给 AI 一张 UI 截图,让它还原成 HTML/CSS
  6. - 把 landing page 设计稿做成静态网页
  7. - 把 SaaS 页面、后台页面、空状态页面还原成前端页面
  8. - 避免 AI 直接照图写 HTML 后,把页面挤变形、资产画糊、比例跑偏
  9. ## 这个 skill 解决什么问题?
  10. 很多人会直接对 AI 说:
  11. ```text
  12. 根据这张图生成 HTML
  13. ```
  14. 但这样容易翻车。
  15. 因为 AI 被迫同时做三件事:
  16. - 理解页面结构
  17. - 复刻视觉样式
  18. - 临时画出复杂视觉资产
  19. 这个 skill 会让 AI 先把任务拆开:
  20. - 哪些部分应该用 HTML/CSS 写
  21. - 哪些部分应该当作图片资产
  22. - 页面应该按什么画布比例展示
  23. - 写完后应该截图验证哪里不像
  24. 核心流程是:
  25. 1. 先拆解页面地图
  26. 2. 分离代码结构和视觉资产
  27. 3. 设置设计稿画布和浏览器展示比例
  28. 4. 写 HTML/CSS
  29. 5. 浏览器截图验证
  30. 6. 对比修正视觉误差
  31. ## 安装方法
  32. ### Codex
  33. 把 `ky-design-to-html` 文件夹复制到:
  34. ```bash
  35. ~/.codex/skills/ky-design-to-html
  36. ```
  37. ### Claude
  38. 把 `ky-design-to-html` 文件夹复制到:
  39. ```bash
  40. ~/.claude/skills/ky-design-to-html
  41. ```
  42. ## 使用方法
  43. 在 Codex 或 Claude 里,可以这样说:
  44. ```text
  45. Use $ky-design-to-html to recreate this UI screenshot as a standalone HTML/CSS page.
  46. ```
  47. 也可以直接用中文:
  48. ```text
  49. 使用 ky-design-to-html,把这张 UI 截图还原成一个 HTML/CSS 页面。
  50. ```
  51. ## 文件结构
  52. ```text
  53. ky-design-to-html/
  54. ├── SKILL.md
  55. ├── agents/
  56. │ └── openai.yaml
  57. ├── references/
  58. │ ├── asset-handling.md
  59. │ └── visual-error-taxonomy.md
  60. └── scripts/
  61. └── screenshot_page.py
  62. ```
  63. ## 备注
  64. 这个 skill 的目标不是让 AI 一次生成完美页面。
  65. 它的目标是让 AI 按正确流程工作:
  66. ```text
  67. 拆解 → 分离资产 → 设置画布 → 写代码 → 截图 → 对比 → 修正
  68. ```
  69. 真正的还原质量来自后面的截图校准。

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.