image-to-code
Skill3 starsChanged 4 months agoMITView on GitHub
Use when turning a design image into frontend code — image-first pipeline: generate reference images, analyze each deeply, then implement to match. Triggers on "image to code", "设计图转代码", "图片实现", "从设计图实现". Not for pure code without image reference (use frontend-design) or image generation only (use imagegen).
- Installs packages
48 other projects use a version of this.
Adopted by
Most recently taken up by
- BUGLAN/skillstheir own version, first seen Oct 6, 2026
- magicpro97/vibeflowtheir own version, first seen Oct 4, 2026
- weisser-dev/agentic-skillstheir own version, first seen Oct 3, 2026
- SoftMissT/tudo-sobre-vibe-codingtheir own version, first seen Oct 1, 2026
- imMamdouhaboammar/motion-graphics-skillstheir own version, first seen Oct 1, 2026
- xenodeve/xeno-skillstheir own version, first seen Sep 26, 2026
Used with
Projects with it also use stitch-design-taste, imagegen-frontend-web and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Jonathan0823Skillstitch-design-taste
Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.
Also in 29 projects that use this
Jonathan0823Skillimagegen-frontend-web
Elite frontend image-direction skill for generating premium, artistic, implementation-friendly website design references. Uses combinatorial variation to avoid repetitive AI aesthetics, enforces cinematic hero minimalism, strong hierarchy, generous spacing, image-led composition, and anti-slop visual discipline. Optimized for hero sections, landing pages, and multi-section site comps that developers or coding models can accurately recreate.
Also in 27 projects that use this
LeonxlnxSkilldesign-taste-frontend-v1
The original v1 taste-skill, preserved for projects depending on its exact behavior. The current default is `design-taste-frontend` (v2 experimental), which is a substantial rewrite. Use this v1 install name only if you need exact backward compatibility.
Also in 15 projects that use this
sanmidableSkillfind-animation-opportunities
Also in 8 projects that use this
- +8 more from Jonathan0823
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 48
- Leonxlnx/taste-skill★ 93ksame name
- openai/plugins★ 7.3ksame name
- plugin87/ux-ui-agent-skills★ 1.5ksame name
- hamzafarooq/claude-code-starter★ 145same name
- hushh-labs/hushh-research★ 38same name
- kresogalic8/unwatched★ 35same name
- jmxt3/gitscape.ai★ 32same name
- ivanrvpereira/.agents★ 18same name
- imMamdouhaboammar/motion-graphics-skills★ 15same name
- idexal/idexal-skills★ 13same name
38 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- oss-strategySkill
- specSkill
- researchSkill
- api-designSkill
- architectureSkill
- codebase-designSkill
- design-researchSkill
- domain-modelingSkill
- frontend-designSkill
- imagegenSkill
- prompt-engineeringSkill
- prototypeSkill
- schema-designSkill
- auth-implementationSkill
- breakdownSkill
- context-engineeringSkill
- error-handlingSkill
- i18nSkill
- implementSkill
- multi-agent-orchestrationSkill
- cost-optimizationSkill
- performanceSkill
- refactoringSkill
- simplifySkill
- api-testingSkill
- e2e-testingSkill
- load-testingSkill
- tddSkill
- test-generationSkill
- a11y-reviewSkill
- code-reviewSkill
- debuggingSkill
- lintingSkill
- security-reviewSkill
- ci-cdSkill
- deprecation-migrationSkill
- git-workflowSkill
- oss-polishSkill
- shippingSkill
- documentation-auditSkill
- handoffSkill
- incident-responseSkill
- observabilitySkill
- purity-auditSkill
- skill-authoringSkill
- using-skillsSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 47 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Tool note: use an available image-generation tool — do not bind to a specific product.
- Very specific: line 29
If docs/design/references.md exists (produced by design-research), load it first — real references inform the section count and …
- Distinctive: line 35
Default section packs if unspecified: 4-section (hero, features, social proof, CTA).
- Distinctive: line 39
Use an available image-generation tool.
- Distinctive: line 44
Keep the hero especially clean: 1-3 line headline, single strong focal point, generous negative space.
- Distinctive: line 48
Never crop, slice, or zoom into a previously generated image for a section or detail view — cropping destroys spacing accuracy, type-scale …
- Distinctive: line 52
Add extraction-oriented detail images when text or components are too small: closer hero render, pricing card detail, navbar treatment, …
- Distinctive: line 53
If a section is still unclear after one regeneration, generate another — do not guess.
- Distinctive: line 57
Treat the generated images as a design specification, not vibes.
- Distinctive: line 66
If details are unclear, generate another image before coding.
- Distinctive: line 74
Do not simplify into default templates, compress generous spacing, or replace distinctive sections with generic rows.
- Distinctive: line 75
Avoid nested-box layouts: no cards-in-cards-in-cards, no giant rounded wrappers around every section, no dashboard-like compartment …
“Common” is measured: kept by at least 6 in 10 of the 47 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Image to Code
For visually important web work, generate the design reference images yourself first, deeply analyze them, then implement frontend code that faithfully matches. The images are the primary visual source of truth; the code is the translation layer. Do not start with freeform coding when image generation is available.
When to use
- Hero sections, landing pages, marketing sites, product pages, portfolio sites — visually important web tasks
- Multi-section website concepts where image-first beats code-first
- Redesigns where visual quality matters heavily
- Requests described mainly in visual terms ("beautiful hero", "premium landing page", "creative website")
- Triggers on "image to code", "设计图转代码", "图片实现", "从设计图实现"
Not for: pure code implementation without image reference (use frontend-design); brand/web/mobile design reference images only, without code (use imagegen).
Tool note: use an available image-generation tool — do not bind to a specific product.
Steps
1. Plan sections and visual direction
If docs/design/references.md exists (produced by design-research), load it first — real
references inform the section count and visual-direction picks before images are generated.
Infer the section count from the request. Pick a coherent visual combination and commit to it
consistently — do not mash everything into chaos.
- Load ${CLAUDE_PLUGIN_ROOT}/skills/03-design/frontend-design/references/visual-direction.md for the combinatorial variation engine (9 axes: theme paradigm, background, typography, hero architecture, section system, signature components, motion-implied, narrative spine, second-read moment), hero-scale mapping, and the anti-slop ban list. The narrative-spine and second-read axes are optional for image-to-code.
- Default section packs if unspecified: 4-section (hero, features, social proof, CTA); 8-section (hero, trust bar, features, product showcase, benefits, testimonials, pricing, CTA); 12-section (adds workflow, metrics, FAQ, footer).
2. Generate one large image per section
Use an available image-generation tool. Never compress many sections into one tiny unreadable board — text becomes too small to analyze, spacing collapses, extraction quality drops.
- One section requested → one image. N sections → N section images.
- It is better to generate too many clear images than too few compressed ones.
- Keep the hero especially clean: 1-3 line headline, single strong focal point, generous negative space. No pills, badges, tiny logos, or pseudo-system labels cluttering the first viewport. The first screen must stay readable on a small laptop.
3. Regenerate unclear sections as fresh standalone images
Never crop, slice, or zoom into a previously generated image for a section or detail view — cropping destroys spacing accuracy, type-scale relationships, and layout proportions.
- Generate a fresh image preserving the same design language (palette, typography mood, button style, radius logic) but optimized for readability.
- Add extraction-oriented detail images when text or components are too small: closer hero render, pricing card detail, navbar treatment, testimonial close-up.
- If a section is still unclear after one regeneration, generate another — do not guess.
4. Deeply analyze every image
Treat the generated images as a design specification, not vibes. For each section image, extract:
- Text: headline, subheadline, CTA labels, section titles, navbar labels, pricing labels, testimonial names
- Typography: size/weight relationships, display vs body contrast, line count, tracking feel, serif/sans behavior
- Spacing: headline-to-subheadline distance, text-to-button distance, card gaps, section top/bottom spacing, side gutters, card padding
- Buttons/components: size, shape, radius, fill vs outline, icon usage, primary/secondary hierarchy, card structure, dividers, shadows
- Colors: background, panel colors, accents, button fills, text hierarchy, border logic, shadow mood, image tint
- Layout: grid logic, alignment, section ordering, density, visual rhythm, repeated motifs
If details are unclear, generate another image before coding. Do not fill ambiguity with generic defaults.
5. Implement frontend faithfully
Translate the analyzed design into real frontend code. Avoid design drift — the coded result must feel like the same website as the generated references.
- Preserve layout logic, spacing rhythm, section ordering, text/image balance, typography mood, and component style.
- Do not simplify into default templates, compress generous spacing, or replace distinctive sections with generic rows.
- Avoid nested-box layouts: no cards-in-cards-in-cards, no giant rounded wrappers around every section, no dashboard-like compartment stacking. Use boxes only when they have a clear purpose.
- Reduce micro-UI clutter: remove pseudo-system markers, fake control labels, decorative code-like tags, filler chips, and fake dashboard jargon.
- Install missing packages as needed (
npm install <pkg>/pip install <pkg>/ equivalent). - For color formula, typography pairing, and interaction states, follow
frontend-design.
Output: frontend code (HTML/CSS/JS, React, Vue, Svelte, etc.) matching the generated reference images, plus the reference images themselves.
Verify
- Image-first order followed: reference images generated before any code
- One large readable image per section — no compressed multi-section boards
- Enough images generated — no lazy under-generation
- No cropped/sliced old images — fresh standalone regenerations for detail views
- Deep analysis completed: text, typography, spacing, buttons, colors, layout all extracted
- Hero is clean: 1-3 line headline, single focal point, breathable negative space, readable on a small laptop
- No cards-in-cards-in-cards or giant rounded wrappers around every section
- No micro-UI clutter: pseudo-system labels, filler pills, fake dashboard jargon removed
- No design drift: implemented code matches the generated references (layout, spacing, typography, components)
- Color/typography/interaction states follow
frontend-designconventions - No AI-slop tells: purple/blue gradients, centered dark hero clichés, repeated left-text/right-image blocks, generic card spam
References
- ${CLAUDE_PLUGIN_ROOT}/references/engineering-principles.md — shared discipline (surface assumptions, verify don't assume, surgical changes)
- ${CLAUDE_PLUGIN_ROOT}/references/design-principles.md — design discipline (CRAP, hierarchy before decoration, design every state, accessibility non-optional)
- ${CLAUDE_PLUGIN_ROOT}/skills/03-design/frontend-design/references/visual-direction.md — shared web variation engine (9 axes, hero scale, composition anchors, anti-slop)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

