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. It covers inspecting the project, identifying missing references, implementing sections, and correcting visual differences.

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/github.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/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/wedabro/bro-skills/image-to-code"><img src="https://agentmods.dev/badge/skills/wedabro/bro-skills/image-to-code.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00028 $0.00258
Sonnet 5.5 $0.00014 $0.00129
Haiku 4.5 $0.00007 $0.00064

Measured 1mo ago against content hash ccbc8ad53a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (3 stars, last pushed 8d ago), licensed MIT. It adds 71 tokens to every session and 644 once invoked, about $0.0003 per session on Opus 5.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

color-conversion-get-color

Convert a color value from one format to another. The response always includes all four formats.

bobadilla-tech/requiems-api-skills · 24 tokens

qr-code-get-base64

Returns a JSON envelope containing the QR code as a base64-encoded PNG string, along with its dimensions.

bobadilla-tech/requiems-api-skills · 28 tokens

qr-code-get-qr

Returns a raw PNG image of the QR code. Ideal for direct embedding or file download.

bobadilla-tech/requiems-api-skills · 24 tokens

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

customer-journey-map

Construye un mapa de recorrido del cliente para un producto, servicio o experiencia. Úsalo cuando se te pida mapear un recorrido del cliente, crear un viaje del usuario, documentar puntos de contacto y puntos de fricción, o diseñar un mapa de experiencia. Produce un mapa de recorrido completo con etapas, puntos de…

mohitagw15856/pm-claude-skills · 86 tokens

design-handoff-brief

Transform feature briefs into structured design briefs that give designers the context they need before opening Figma. Use when asked to write a design brief, create a design handoff, brief a designer on a new feature, or translate a PRD into design requirements. Produces a brief with user goal, emotional context…

mohitagw15856/pm-claude-skills · 83 tokens