image-to-code

image-to-code is a skill for Claude Code, Codex from wedabro/bro-skills. It costs 71 tokens per session (644 once invoked), scanned A, original, MIT.

A workflow for rebuilding a website from a supplied design image or other visual reference. It treats the image as a specification, analyzes its layout and assets, then implements and compares responsive code against it.

In plain words
What is it for?
Use it when reproducing a website from screenshots or design images. It covers inspecting the project, identifying missing references, implementing sections, and correcting visual differences.
Why use it?
It helps turn a visual design into working code while preserving hierarchy, spacing, typography, imagery, and responsive behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it when reproducing a website from screenshots or design images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wedabro/bro-skills/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 wedabro/bro-skills --skill image-to-code
Clone the repo
git clone --depth 1 https://github.com/wedabro/bro-skills

Made for: Claude Code, 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/wedabro/bro-skills/image-to-code.svg)](https://agentmods.dev/skills/wedabro/bro-skills/image-to-code)
Your own site
<a href="https://agentmods.dev/skills/wedabro/bro-skills/image-to-code"><img src="https://agentmods.dev/badge/skills/wedabro/bro-skills/image-to-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 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 original No closer match found 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.00071 $0.00644
Opus 5 $0.00036 $0.00322
Sonnet 5 $0.00014 $0.00129
Haiku 4.5 $0.00007 $0.00064

Measured 6d ago against content hash ccbc8ad53a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

.agents/skills/image-to-code/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image to Code

Treat the design image as an implementation specification, then ship working code that matches its hierarchy, rhythm, assets, and responsive intent.

Precedence

  • Use this skill as the single orchestrator for image-first web implementation.
  • Invoke image generation as an internal step when references are missing; do not independently run a second competing web-design workflow.
  • Use design-taste-frontend instead for normal code-first frontend work.
  • Use imagegen-frontend-web alone when the user wants images but no code.

Workflow

  1. Inspect the repository, runtime, existing design system, routes, assets, and supplied images.
  2. Determine the section list and identify which sections lack a readable reference.
  3. Generate fresh, standalone section images only where needed. Prefer large section-specific references over a tiny full-page board.
  4. Analyze each reference for layout, type, spacing, color, surfaces, imagery, components, and responsive behavior.
  5. Implement with the existing stack, matching the reference before introducing stylistic reinterpretation.
  6. Compare the rendered page against the reference and correct the largest visual deltas first.
  7. Verify responsive behavior, interactions, reduced motion, accessibility, and build/tests.

Non-negotiables

  • Do not crop old images to manufacture missing section references.
  • Keep the hero readable and visible on a small laptop; do not let decorative art bury copy or CTAs.
  • Recreate hierarchy and spacing, not just colors and border radii.
  • Avoid nested cards, micro-UI clutter, fake screenshots, and placeholder rectangles.
  • Use real/generated assets at the correct aspect ratio and preserve focal points responsively.
  • Extract repeated values into existing tokens or a small coherent token set; avoid one-off magic values everywhere.
  • Preserve functionality and project conventions while improving visual fidelity.
  • Do not claim fidelity without inspecting the rendered result at representative desktop and mobile sizes.

Read the full file on GitHub · 51 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. 6d ago First seen · 51 lines · 71 tokens per session scan A ccbc8ad53a62

Subscribe to this mod's changes

image-to-code is a skill published in the GitHub repository wedabro/bro-skills (2 stars, last pushed 10d ago), licensed MIT. It adds 71 tokens to every session and 644 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

display-design-studio/skills · 44 tokens

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens

accessibility

Audit and improve web accessibility following WCAG 2.2 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

addyosmani/web-quality-skills · 51 tokens

winui-design

Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light/Dark/High Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs…

microsoft/win-dev-skills · 119 tokens

tastemaker

Generate genuinely beautiful, on-brand UI instead of generic "AI slop" — use whenever the user asks to build, design, style, or improve a UI, landing page, dashboard, app screen, or component, whenever a PRD/spec needs a design pass before implementation, whenever the user pastes reference images/Pinterest/Dribbble…

codeswithroh/tastemaker · 202 tokens

yida-density

A set of rules for controlling how much information a custom page shows at once, with compact, comfortable, and spacious layouts. It also defines how the layout changes on phones and how spacing and text sizes stay consistent.

openyida/openyida · 58 tokens