Pular para o conteúdo
Skillpedia
Sites e telas (frontend)14 mil · #11342

image-to-code

O que ela faz

Esta skill constrói um front-end funcional a partir de um design visual que você já escolheu. Ela é para quem tem uma imagem de design e quer que ela seja construída como código web real.

Quando usar

  • ✓Quando você tiver uma captura de tela ou um mockup e quiser que ele seja construído como uma página web.
  • ✓Quando quiser que um quadro de design vire código responsivo.
  • ✓Quando quiser que conceitos de design gerados sejam incorporados ao seu projeto.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/image-to-code/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero que o meu mockup escolhido seja construído como uma página web responsiva dentro do meu projeto existente.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente estuda o layout, o espaçamento, as cores e os estados da imagem e depois lista os ativos de que precisa. Ele constrói a página usando o próprio framework do projeto e os tokens de design dele.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

Precisa de React?

Não. A skill diz que o React não é obrigatório e segue a stack existente do projeto.

E se eu ainda não tiver escolhido um design?

Um briefing escrito sozinho não basta. A skill pede um visual selecionado ou direciona antes para a criação de ideias.

Ela vai usar emojis no lugar de ícones?

Não. A skill diz para não substituir ativos visuais importantes por emojis ou marcadores de posição.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11342
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas