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.
npx skills add wedabro/bro-skills --skill image-to-codegit clone --depth 1 https://github.com/wedabro/bro-skillsWrote 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.
[](https://agentmods.dev/skills/wedabro/bro-skills/image-to-code)<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>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.
| Model | Per session | Once 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 |
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.
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-frontendinstead for normal code-first frontend work. - Use
imagegen-frontend-webalone when the user wants images but no code.
Workflow
- Inspect the repository, runtime, existing design system, routes, assets, and supplied images.
- Determine the section list and identify which sections lack a readable reference.
- Generate fresh, standalone section images only where needed. Prefer large section-specific references over a tiny full-page board.
- Analyze each reference for layout, type, spacing, color, surfaces, imagery, components, and responsive behavior.
- Implement with the existing stack, matching the reference before introducing stylistic reinterpretation.
- Compare the rendered page against the reference and correct the largest visual deltas first.
- 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.
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.
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.
- 6d ago First seen · 51 lines · 71 tokens per session scan A ccbc8ad53a62
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.
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".
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.…
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".
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…
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…
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.