image-to-code
Qué hace
Esta habilidad construye un frontend funcional a partir de un diseño visual que ya has elegido. Está pensada para personas que tienen una imagen de diseño y quieren que se construya como código web real.
Cuándo usarla
- ✓Cuando tienes una captura o maqueta y quieres que se construya como página web.
- ✓Cuando quieres convertir un marco de diseño en código adaptable.
- ✓Cuando quieres que los conceptos de diseño generados se construyan dentro de tu proyecto.
Link de la skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/image-to-code/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que la maqueta de imagen que elegí se construya como una página web adaptable dentro de mi proyecto existente.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente estudia la maquetación, los espaciados, los colores y los estados de la imagen, y luego enumera los recursos que necesita. Construye la página con el propio framework del proyecto y sus tokens de diseño.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Run the real app using its normal development or preview command.
- Capture the implementation using the browser tool selected by
../index/SKILL.mdand run../design-qa/SKILL.mdagainst the source visual. - Fix all blocking and high-impact mismatches. Save
design-qa.mdin the project root and hand off only when it recordsfinal 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.
Preguntas frecuentes
¿Necesita React?
No. La habilidad indica que React no es obligatorio, y sigue la pila tecnológica existente del proyecto.
¿Qué pasa si todavía no he elegido un diseño?
Un encargo escrito por sí solo no basta. La habilidad pide un visual seleccionado o dirige primero a la generación de ideas.
¿Usará emojis en lugar de iconos?
No. La habilidad indica que no hay que sustituir recursos visuales importantes por emojis o marcadores.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 14 mil
- Posición en el ranking
- #11342
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
effect
14 milAyuda a tu agente a responder preguntas sobre el framework TypeScript Effect, consultando su código fuente y su documentación en lugar de confiar en la memoria.
arxiv
14 milAyuda a tu agente a buscar, leer, citar y seguir artículos académicos de arXiv, incluidos resúmenes, citas BibTeX, descargas de PDF y enlaces de citas.
claude-code
14 milAyuda a tu agente a delegar una tarea de programación en la herramienta de línea de comandos Claude Code, como una ejecución puntual, una sesión interactiva o un trabajo en segundo plano.
codex
14 milAyuda a tu agente a ejecutar la herramienta de línea de comandos OpenAI Codex sin ventana de chat, para tareas de programación, scripts y flujos automatizados.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.