본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)14k · #11342

image-to-code

하는 일

이 스킬은 선택한 시각 디자인으로 작동하는 프론트엔드를 만듭니다. 디자인 이미지가 있고 이를 실제 웹 코드로 만들고 싶은 사람을 위한 스킬입니다.

사용하는 경우

  • ✓스크린샷이나 목업이 있고 이를 웹 페이지로 만들고 싶을 때.
  • ✓디자인 프레임을 반응형 코드로 바꾸고 싶을 때.
  • ✓생성한 디자인 콘셉트를 프로젝트에 넣고 싶은 경우.

스킬 링크

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/image-to-code/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/image-to-code/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“선택한 목업 이미지를 제 기존 프로젝트에서 반응형 웹 페이지로 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 이미지의 레이아웃, 간격, 색상, 상태를 살펴본 뒤 필요한 에셋 목록을 만듭니다. 그다음 프로젝트 자체의 프레임워크와 디자인 토큰을 사용해 페이지를 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Image to Code

Translate a selected visual target into a high-quality frontend. Read ../index/SKILL.md, ../../references/critical-overrides.md, and the relevant saved context from ../user-context/SKILL.md before building.

Preconditions

  • Require an unambiguous selected image, screenshot, mockup, generated result, or design frame. A written brief alone is not a visual target; route to ideation first when appropriate.
  • Resolve which image is selected before editing. Ask when an ordinal or attachment is ambiguous.
  • Use only the current task's relevant product context, tokens, components, assets, and references.

Workflow

  1. Inspect the source visual at useful detail and record its viewport, layout regions, hierarchy, spacing, typography, colors, borders, radii, shadows, imagery, icons, responsive behavior, and visible states.
  2. Inventory every required asset. Reuse supplied or repository assets when they match. Use an available image-generation tool for custom raster imagery and an appropriate existing icon set for UI icons. Do not substitute emoji, generic placeholders, or improvised CSS drawings for meaningful visual assets.
  3. Inspect the target repository and use its existing framework, package manager, component system, design tokens, and conventions. React is not required. Do not replace an established stack merely to match this workflow.
  4. If no target app exists, create the smallest runnable frontend supported by the harness and suited to the request; plain HTML/CSS/JavaScript is acceptable.
  5. Implement the full visible structure and the primary user journey. Unless requested otherwise, make navigation, tabs, menus, forms, toggles, selections, and main calls to action behave realistically without inventing backend systems.
  6. Match desktop or mobile based on the source. When the source is a phone UI and no device is named, verify around 390 × 844 as well as any relevant responsive behavior.
  7. Run the real app using its normal development or preview command.
  8. Capture the implementation using the browser tool selected by ../index/SKILL.md and run ../design-qa/SKILL.md against the source visual.
  9. Fix all blocking and high-impact mismatches. Save design-qa.md in the project root and hand off only when it records final result: passed, or clearly report a genuine capture/verification blocker.

Fidelity rules

  • Treat the selected visual as the design target; do not introduce unrelated redesign ideas.
  • Match the same viewport and interaction state during visual comparison.
  • Place real assets before final QA and avoid hotlinking third-party source assets in the finished app.
  • Keep the implementation maintainable within the target repository's patterns.
  • Do not claim verification from build success or an HTTP status alone; inspect the rendered result and primary interactions.

Handoff

Provide the runnable project or changed files, the local preview information when useful, and a concise summary of what was implemented, verified, and left as a limitation. Publish only when the user asks and the host exposes an authorized deployment tool.

자주 묻는 질문

React가 필요한가요?

아니요. 스킬은 React가 필요하지 않으며 프로젝트의 기존 스택을 따른다고 설명합니다.

아직 디자인을 고르지 않았다면 어떻게 하나요?

글로 쓴 브리프만으로는 충분하지 않습니다. 스킬은 선택된 시각 자료를 요구하거나 먼저 아이디어 발상으로 보냅니다.

아이콘 대신 이모지를 쓰나요?

아니요. 의미 있는 시각 에셋을 이모지나 자리 표시로 대체하지 말라고 안내합니다.

상세 정보

작성자의 원본 설명

Implement a selected image, screenshot, mockup, generated concept, or design frame as a faithful, responsive, interactive frontend in the target codebase.

repo: XiaomiMiMo/MiMo-Code

인기도

GitHub 스타
14k
순위
#11342
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬