image-to-code
What it does
This skill builds a working frontend from a visual design you have chosen. It is for people who have a design image and want it built as real web code.
When to use it
- ✓When you have a screenshot or mockup and want it built as a web page.
- ✓When you want a design frame turned into responsive code.
- ✓When you want generated design concepts built into your project.
Skill link
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/image-to-code/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want my chosen mockup image built as a responsive web page in my existing project.”
5 new skills a week. 1 minute to read.
How it works
The agent studies the image's layout, spacing, colors, and states, then lists the assets it needs. It builds the page using the project's own framework and design tokens.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Does it need React?
No. The skill says React is not required, and it follows the project's existing stack.
What if I have not chosen a design yet?
A written brief alone is not enough. The skill asks for a selected visual, or routes to ideation first.
Will it use emoji in place of icons?
No. The skill says not to substitute emoji or placeholders for meaningful visual assets.
Details
Original description by the author
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
Popularity
- GitHub stars
- 14k
- Ranking position
- #11342
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
effect
14kHelps your agent answer questions about the Effect TypeScript framework by checking its source code and docs instead of relying on memory.
arxiv
14kHelps your agent search, read, cite, and track academic papers on arXiv, including abstracts, BibTeX citations, PDF downloads, and citation links.
claude-code
14kHelps your agent hand a coding task to the Claude Code command line tool, as a one-shot run, an interactive session, or a background job.
codex
14kHelps your agent run the OpenAI Codex command line tool without a chat window, for coding tasks, scripts, and automated pipelines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.