image-to-code
यह क्या करती है
यह स्किल चुने हुए विज़ुअल डिज़ाइन से काम करने वाला फ़्रंटएंड बनाती है। यह उन लोगों के लिए है जिनके पास डिज़ाइन इमेज है और जो उसे असली वेब कोड के रूप में चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपके पास स्क्रीनशॉट या मॉकअप है और उसे वेब पेज के रूप में बनवाना है।
- ✓जब आप डिज़ाइन फ़्रेम को रिस्पॉन्सिव कोड में बदलवाना चाहते हैं।
- ✓जब आप बने हुए डिज़ाइन कॉन्सेप्ट को अपने प्रोजेक्ट में बनवाना चाहते हैं।
Skill का लिंक
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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे चुने हुए मॉकअप इमेज को मेरे मौजूदा प्रोजेक्ट में एक रिस्पॉन्सिव वेब पेज के रूप में बनवाइए।”
हर हफ़्ते 5 नई skills, 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
- 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.
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
effect
14kआपके एजेंट को Effect TypeScript फ़्रेमवर्क के सवालों के जवाब देने में मदद करती है, याददाश्त पर भरोसा करने के बजाय उसका सोर्स कोड और दस्तावेज़ जाँचकर।
arxiv
14kआपके एजेंट को arXiv पर शोधपत्र खोजने, पढ़ने, उद्धृत करने और उन पर नज़र रखने में मदद करती है, जिसमें सार, BibTeX उद्धरण, PDF डाउनलोड और उद्धरण लिंक शामिल हैं।
claude-code
14kआपके एजेंट को कोडिंग का काम Claude Code कमांड-लाइन टूल को सौंपने में मदद करती है, एक बार चलने वाले रन, इंटरैक्टिव सेशन या पृष्ठभूमि जॉब के रूप में।
codex
14kआपके एजेंट को बिना चैट विंडो के OpenAI Codex कमांड-लाइन टूल चलाने में मदद करती है, कोडिंग काम, स्क्रिप्ट और स्वचालित पाइपलाइन के लिए।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।