image-to-code

image-to-code is a skill for Codex from evoelsewhere/evoflux. It costs 34 tokens per session (666 once invoked), scanned A, a copy of image-to-code, Apache-2.0.

A frontend implementation workflow that turns a selected screenshot, mockup, generated image, or design frame into a responsive, interactive web interface. Responsive means the layout adapts to different screen sizes.

In plain words
What is it for?
Use it to recreate a visual design in an existing codebase, reusing matching assets, components, and design-system rules where available.
Why use it?
It removes the guesswork involved in translating a visual reference into working interface code. It also directs attention to layout, typography, assets, interaction states, and mobile behavior.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to recreate a visual design in an existing codebase, reusing matching assets, components, and design-system rules where available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evoelsewhere/evoflux/image-to-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add evoelsewhere/evoflux --skill image-to-code
Clone the repo
git clone --depth 1 https://github.com/evoelsewhere/evoflux

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-to-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/evoelsewhere/evoflux/image-to-code/github.svg)](https://agentmods.dev/skills/evoelsewhere/evoflux/image-to-code)
Your own site
<a href="https://agentmods.dev/skills/evoelsewhere/evoflux/image-to-code"><img src="https://agentmods.dev/badge/skills/evoelsewhere/evoflux/image-to-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-to-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/evoelsewhere/evoflux/image-to-code"><img src="https://agentmods.dev/badge/skills/evoelsewhere/evoflux/image-to-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00666
Opus 5 $0.00017 $0.00333
Sonnet 5 $0.00007 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 3d ago against content hash b887ae459ff4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

image-to-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to image-to-code — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

app/agent/builtin_skills/product-design/references/workflows/image-to-code/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on 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.

Read the full file on GitHub · 40 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 40 lines · 34 tokens per session scan A b887ae459ff4

Subscribe to this mod's changes

image-to-code is a skill published in the GitHub repository evoelsewhere/evoflux (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 666 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to image-to-code, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

uicraft

Create, improve, audit, and polish distinctive production-grade web interfaces, including marketing/landing pages and personal portfolio sites. Use for UI or frontend design, responsive layouts, typography, color, motion, UX copy, accessibility, performance, design-system alignment, onboarding, edge cases, or visual…

rojim666/SztuCode · 152 tokens

context-menu

Guide for creating and displaying context menus in Wave Terminal. Use when implementing right-click menus, adding context menu items, creating submenus, or handling menu interactions with checkboxes and separators.

mits-pl/wove · 40 tokens

component-patterns

React component composition patterns including compound components, render props, HOCs, and controlled vs uncontrolled components. Use when the user is building React components, asking about component architecture, refactoring components, or designing reusable UI APIs. Trigger on mentions of compound components…

VersoXBT/claude-initial-setup · 72 tokens

frontend-best-practices

Use this skill when creating or modifying React frontend components. It defines UI/UX, styling, and architecture standards.

ApexIQ/skillsmith · 29 tokens

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI).…

rojim666/SztuCode · 77 tokens

iot-ai-web-visual-quality

Bounded visual-quality guidance for websites, dashboards, frontend UI, design systems and graphic prompts.

IoTAiTech/MC-GPT · 26 tokens