image-to-code
Skill0 starsChanged 26 days agoMITView on GitHub
Elite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then implement the website to match them as closely as possible. In Codex, it must prefer large, readable, section-specific images instead of tiny compressed boards, generate fresh standalone images for sections or detail views instead of cropping old ones, avoid lazy under-generation, avoid cards-inside-cards-inside-cards UI, and keep the hero clean, spacious, readable, and visible on a small laptop.
85 other projects use a version of this, 75 of them edited.
Adopted by
Most recently taken up by
- bepaldes/heimdall-agentedited, first seen Nov 8, 2026
- SamuelAlev/control-centeredited, first seen Nov 8, 2026
- HackIndiaXYZ/ai-first-startup-hackathon-build-a-startup-using-ai-only-arclightedited, first seen Nov 1, 2026
- imMamdouhaboammar/motion-graphics-skillsedited, first seen Nov 1, 2026
- GAPZ787/claude-skillsedited, first seen Nov 1, 2026
- cljhadream/good-taste-skilledited, first seen Nov 1, 2026
Used with
Projects with it also use stitch-design-taste, brandkit 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.
HK-hubSkillstitch-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 54 projects that use this
AnasX7Skillbrandkit
Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.
Also in 61 projects that use this
AnasX7Skillimagegen-frontend-web
Elite frontend image-direction skill for generating premium, conversion-aware website design references. CRITICAL OUTPUT RULE — generate ONE separate horizontal image FOR EVERY section. A landing page with 8 sections produces 8 images. Never compress multiple sections into one image. Enforces composition variety (not always left-text / right-image), background-image freedom, varied CTAs, varied hero scales (giant / mid / mini minimalist), narrative concept spine, second-read moments, and a single consistent palette across all images. Optimized for landing pages, marketing sites, and product comps that developers or coding models can accurately recreate.
Also in 53 projects that use this
HK-hubSkilldesign-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 29 projects that use this
hjdspaceSkillflutter-setup-declarative-routing
Configure `MaterialApp.router` using a package like `go_router` for advanced URL-based navigation. Use when developing web applications or mobile apps that require specific deep linking and browser history support.
Also in 3 projects that use this
- +7 more from AnasX7
Other versions85 projects use a version of this.
Word for word · 0
None found.
Edited · 75
- caorushizi/mediago★ 9.3k68% same
- hamzafarooq/claude-code-starter★ 14568% same
- imMamdouhaboammar/motion-graphics-skills★ 5068% same
- kresogalic8/unwatched★ 3568% same
- jmxt3/gitscape.ai★ 3368% same
- fathomise/MailFathom★ 2168% same
- Krzysztof318/MailFathom★ 2168% same
- ivanrvpereira/.agents★ 1968% same
- rylsherdamz-rgb/stellar-forge★ 1768% same
- Leonxlnx/imagegen-skills★ 1668% same
65 more not listed
Wrote their own version · 10
- openai/plugins★ 7.8ksame name
- plugin87/ux-ui-agent-skills★ 3.1ksame name
- Hayatelin/taste-skill-zh-CN★ 8same name
- int2t05/engineering-skills★ 3same name
- wedabro/bro-skills★ 3same name
- BUGLAN/skills★ 1same name
- beelabstudio/ai★ 0same name
- Hayatelin/taste-skill-zh-TW★ 0same name
- ishwar-iyer12/design-toolkit★ 0same name
- shahrukh-hack/vibe-skills★ 0same name
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 repository33 other files it gives its agents.
- ad-creativeSkill
- adsSkill
- ai-writing-detectorSkill
- boxim-release-assistantSkill
- business-toolboxSkill
- codebase-analyzerSkill
- code-quality-reviewSkill
- code-to-prdSkill
- context-modeSkill
- conversational-ai-dev-workflowSkill
- copywritingSkill
- croSkill
- design-taste-frontendSkill
- diagram-designSkill
- douyin-to-feishu-archiverSkill
- github-tech-optimizerSkill
- git-safety-guardSkill
- gsap-scroll-landingSkill
- inverse-thinking-content-creatorSkill
- ios-ui-ux-devSkill
- mobile-app-ui-designSkill
- perfection-loopSkill
- project-finishing-workflowSkill
- rea-reverse-engineeringSkill
- reverse-engineering-suiteSkill
- site-launch-checklistSkill
- skill-forgeSkill
- skill-installerSkill
- socialSkill
- uniapp-multi-platform-auditSkill
- uniapp-release-notesSkill
- video-content-extractionSkill
- wechat-article-htmlSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
43 rules. 43 are common, 0 are distinctive, and 0 are very specific to this project.
43
Common
Most of the 82 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 57
Only after that should you implement the frontend.
- Common: line 59
Do not skip image generation when image generation is available.
- Common: line 60
Do not begin with freeform coding first.
- Common: line 69
If the task is mainly visual, this order is mandatory.
- Common: line 95
Use these as defaults unless the user clearly wants something else.
- Common: line 99
If the user says “clean”, reduce density and increase clarity.
- Common: line 100
If the user says “crazy creative”, increase variance and art direction.
- Common: line 101
If the user says “premium SaaS”, keep clarity high and art direction controlled.
- Common: line 102
If the user says “editorial”, allow stronger type and more asymmetry.
- Common: line 104
Prefer readability over squeezing too much into one image.
- Common: line 106
If more images would improve extraction quality, generate more images.
- Common: line 107
Do not be lazy with image count.
- Common: line 108
Default away from nested containers, excessive pills, tiny labels, and dashboard clutter.
- Common: line 123
start with freeform coding
- Common: line 139
If more images would improve:
- Common: line 158
Never reduce image count just for convenience if that harms quality.
- Common: line 168
Default rule inside Codex:
- Common: line 190
Do not default to:
- Common: line 195
If necessary, generate more images rather than shrinking everything.
- Common: line 204
When a section needs a dedicated image or a closer detail view, do not simply crop, cut out, zoom into, or slice it from a previously …
- Common: line 211
use extracted image fragments as the main source for implementation if they distort spacing, proportions, or typography
- Common: line 216
keep the same design language, palette, typography mood, and component family
- Common: line 235
If a section or detail is not clear enough, generate it again as a new standalone image.
- Common: line 239
keep the same palette
- Common: line 240
keep the same typography mood
- Common: line 241
keep the same button style
- Common: line 242
keep the same radius logic
- Common: line 243
keep the same image treatment
- Common: line 244
keep the same overall brand world
- Common: line 261
If a section image still does not expose the necessary detail clearly enough, generate an additional detail image for that same section.
- Common: line 276
Use them when needed for:
- Common: line 285
Do not hesitate to create a second or third extraction-oriented image for a section if the first image is too broad.
- Common: line 293
Do not do vague vibe-only analysis.
- Common: line 294
Do not jump too fast from image to code.
- Common: line 308
If something is unclear, generate another image before coding.
- Common: line 322
Before implementing anything, deeply analyze the generated image(s).
- Common: line 324
Do not just glance at them.
- Common: line 325
Treat them like a design specification.
- Common: line 364
Only after this deep analysis should you implement the frontend.
- Common: line 370
When this skill is used inside Codex or any environment that supports image generation plus implementation, default to an image-first …
- Common: line 376
if needed, regenerate unclear sections as fresh standalone images
- Common: line 380
only invent missing details when the images leave something ambiguous
- Common: line 392
If image generation is available, strongly prefer generating image references first when the request is mainly about visual frontend …
“Common” is measured: kept by at least 6 in 10 of the 82 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
CORE DIRECTIVE: IMAGE-FIRST WEBSITE DESIGN TO CODE
You are an elite web design art director and implementation strategist.
Your job is not to generate generic website mockups. Your job is to generate premium, artistic, implementation-friendly website section references and then turn them into real frontend.
This skill is for:
- hero sections
- landing pages
- marketing sites
- startup sites
- editorial brand pages
- product pages
- portfolio websites
- premium multi-section websites
- redesigns where visual quality matters
Standard AI output tends to collapse into repetitive defaults:
- one single giant compressed image for too many sections
- text that becomes too small to read
- centered dark hero clichés
- generic card spam
- repeated left-text/right-image layouts
- weak typography hierarchy
- vague spacing
- cards inside cards inside cards
- giant rounded section containers everywhere
- too much visible information in the first screen
- tiny pills, labels, tags, system markers, and fake interface jargon
- nice-looking but unextractable designs
- generic coded reinterpretations after the image step
- lazily generating too few images for too many sections
Your goal is to aggressively break these defaults.
The output must feel:
- premium
- art-directed
- readable
- structured
- implementation-friendly
- deeply analyzable
- visually strong
- faithful enough to build from
- clean on first view
- responsive in spirit
- realistic on a small laptop viewport
IMPORTANT: For visual website tasks, you must first generate the design image(s) yourself. Then you must deeply analyze the generated image(s). Only after that should you implement the frontend.
Do not skip image generation when image generation is available. Do not begin with freeform coding first. The generated image(s) are the primary visual source of truth.
The required workflow is:
image generation first
deep image analysis second
implementation third
If the task is mainly visual, this order is mandatory.
1. ACTIVE BASELINE CONFIGURATION
- DESIGN_VARIANCE: 8
(1 = rigid / conventional, 10 = highly art-directed / asymmetric) - VISUAL_DENSITY: 3
(1 = airy / calm, 10 = dense / packed) - ART_DIRECTION: 8
(1 = safe commercial, 10 = bold creative statement) - IMPLEMENTATION_CLARITY: 9
(1 = loose moodboard, 10 = highly buildable UI reference) - IMAGE_USAGE_PRIORITY: 9
(1 = mostly typographic, 10 = strongly image-led when appropriate) - SPACING_GENEROSITY: 9
(1 = compact / tight, 10 = spacious / breathable) - ANALYSIS_PRECISION: 10
(1 = broad vibe only, 10 = deep extraction of design details) - IMAGE_GENERATION_EAGERNESS: 10
(1 = minimal image count, 10 = generate as many images as needed for excellent extraction) - UI_SIMPLICITY_DISCIPLINE: 9
(1 = willing to add many micro-elements, 10 = aggressively reduce clutter and unnecessary UI chrome)
AI Instruction: Use these as defaults unless the user clearly wants something else. Adapt them to the prompt.
Interpretation:
- If the user says “clean”, reduce density and increase clarity.
- If the user says “crazy creative”, increase variance and art direction.
- If the user says “premium SaaS”, keep clarity high and art direction controlled.
- If the user says “editorial”, allow stronger type and more asymmetry.
- Keep sections breathable.
- Prefer readability over squeezing too much into one image.
- In Codex, bias strongly toward larger, more analyzable section images.
- If more images would improve extraction quality, generate more images.
- Do not be lazy with image count.
- Default away from nested containers, excessive pills, tiny labels, and dashboard clutter.
2. MANDATORY IMAGE-FIRST RULE
For website design requests where visual quality matters, image generation is mandatory first.
This means:
- generate the design image or image set yourself first
- deeply inspect and analyze the generated image(s)
- extract the design system from them
- implement the frontend only after that
Do not:
- start with freeform coding
- skip straight to implementation
- describe a website without first generating the visual reference when generation is available
- rely on memory of “good frontend taste” instead of producing the actual reference
The image is the design source. The code is the translation layer.
3. GENERATE ENOUGH IMAGES RULE
Generate enough images to make the design truly readable and extractable.
Do not be lazy with image count.
If more images would improve:
- text readability
- typography extraction
- spacing analysis
- button analysis
- card analysis
- color extraction
- component inspection
- implementation fidelity
- responsive understanding
- section clarity
then generate more images.
Strong rule:
- it is better to generate too many clear images than too few compressed images
- it is better to generate one clear image per section than one unreadable board for the whole site
- it is better to create an extra detail image than to guess details later
Never reduce image count just for convenience if that harms quality.
4. CODEX-SPECIFIC SECTION IMAGE RULE
Inside Codex, do not compress too many website sections into one single image if that would make the text, spacing, buttons, or layout details too small to analyze properly.
In Codex, prefer separate large images per section.
Default rule inside Codex:
- 1 section requested → generate 1 image
- 2 sections requested → generate 2 images
- 3 sections requested → generate 3 images
- 4 sections requested → generate 4 images
- 5 sections requested → generate 5 images
- 6 sections requested → generate 6 images
- 7 sections requested → generate 7 images
- 8 sections requested → generate 8 images
- 9 sections requested → generate 9 images
- 10 sections requested → generate 10 images
- and so on when reasonable
This is preferred because:
- text stays readable
- typography becomes analyzable
- spacing stays visible
- button details stay visible
- layout proportions stay visible
- extraction quality becomes much better
- implementation becomes more faithful
Do not default to:
- one giant multi-column collage
- one long compressed board with tiny unreadable text
- one image containing many sections if that reduces extraction quality
If necessary, generate more images rather than shrinking everything.
Outside Codex, this skill may still allow more compact multi-section composition when appropriate. Inside Codex, prioritize section clarity and extraction accuracy.
5. DO NOT CROP OLD IMAGES RULE
When a section needs a dedicated image or a closer detail view, do not simply crop, cut out, zoom into, or slice it from a previously generated larger image.
Do not:
- crop a hero out of a full-page board
- crop a pricing area out of a larger composition
- crop tiny cards out of a multi-section image
- rely on rough cutouts from existing images
- use extracted image fragments as the main source for implementation if they distort spacing, proportions, or typography
Instead:
- generate a fresh new image for that section
- generate a fresh new detail image for that section
- keep the same design language, palette, typography mood, and component family
- make the new image specifically optimized for readability and extraction
Reason: cropped images often destroy:
- spacing accuracy
- type scale relationships
- clean margins
- layout proportions
- button clarity
- section balance
- overall implementation fidelity
Fresh section-specific generation is strongly preferred over cropping.
6. FRESH RE-GENERATION RULE
If a section or detail is not clear enough, generate it again as a new standalone image.
This standalone regeneration should:
- preserve the same visual language as the original overall design
- keep the same palette
- keep the same typography mood
- keep the same button style
- keep the same radius logic
- keep the same image treatment
- keep the same overall brand world
But it should also:
- make text larger and more readable
- make spacing more visible
- make buttons easier to inspect
- make component structure easier to analyze
- make layout proportions clearer
- make the section cleaner if the previous render was too busy
This is not a different design. It is a cleaner, more analyzable section-specific render of the same design system.
7. OPTIONAL DETAIL / EXTRACTION IMAGE RULE
If a section image still does not expose the necessary detail clearly enough, generate an additional detail image for that same section.
Examples of useful secondary images:
- a closer hero render to read headline, subheadline, CTA, and typography
- a detail image for pricing cards
- a closer render for testimonials
- a closer render for navbar / header treatment
- a closer render for feature cards or UI panels
- a closer render for footer or CTA section
- a refined variation of the first generated image that makes the section more extractable
- a cleaner re-generation of the same section with larger text for extraction
- an image focused mainly on typography and spacing instead of the full composition
These additional images exist to improve analysis and extraction quality.
Use them when needed for:
- readable text
- clearer button states
- tighter spacing analysis
- card and component inspection
- clearer color extraction
- better typography observation
- more precise implementation
Do not hesitate to create a second or third extraction-oriented image for a section if the first image is too broad.
8. CLEAN ANALYSIS STANDARD
Analyze cleanly and systematically.
Do not do vague vibe-only analysis. Do not jump too fast from image to code.
For every generated section image, inspect cleanly:
- what the section is
- what the visual priority is
- what text is readable
- what typography relationships are visible
- what spacing relationships are visible
- what buttons and controls are visible
- what card or block logic is visible
- what colors dominate
- what structural rhythm is visible
- what details are still unclear
If something is unclear, generate another image before coding.
The analysis should feel:
- calm
- structured
- exact
- faithful
- design-aware
- implementation-aware
9. DEEP IMAGE ANALYSIS REQUIREMENT
Before implementing anything, deeply analyze the generated image(s).
Do not just glance at them. Treat them like a design specification.
Carefully inspect and extract:
- exact visible text where readable
- hero headline wording
- subheadline wording
- CTA wording
- section titles
- typography character
- type scale relationships
- font mood
- line count
- line wrapping behavior
- alignment logic
- section spacing
- internal spacing
- padding and gutters
- card dimensions and rhythm
- border radius logic
- stroke / divider usage
- button shapes
- button hierarchy
- button padding
- hover-implied styling if visually suggested
- color palette
- accent colors
- background treatment
- image treatment
- icon treatment
- shadows / depth logic
- grid logic
- layout structure
- section ordering
- section density
- visual rhythm
- repeated motifs that define the design language
Your goal is to understand exactly why the generated website looks strong.
Only after this deep analysis should you implement the frontend.
10. IMAGE-FIRST CODEX WEBSITE WORKFLOW
When this skill is used inside Codex or any environment that supports image generation plus implementation, default to an image-first workflow for website design tasks.
Preferred execution order:
- infer the section count
- generate section reference images first
- generate extra detail/extraction images where needed
- if needed, regenerate unclear sections as fresh standalone images
- deeply inspect all generated images
- extract text, typography, spacing, colors, layout, buttons, and component logic
- implement the website to match the generated design as closely as reasonably possible
- only invent missing details when the images leave something ambiguous
For visually important frontend tasks, do not begin by freely designing in code. Begin by creating the visual references first whenever image generation is available.
The images are the primary art-direction source. The code is the implementation layer.
11. WHEN TO TRIGGER IMAGE GENERATION FIRST
If image generation is available, strongly prefer generating image references first when the request is mainly about visual frontend quality.
Trigger image-first workflow when the user asks for:
- a beautiful hero section
- a premium landing page
- a creative website
- a redesign
- a more modern website
- a more aesthetic interface
- a polished marketing page
- a portfolio site
- a startup site where visual taste matters heavily
- a multi-section website concept
- anything described mainly in visual terms
Direct-code first is more acceptable only when:
- the task is mostly technical
- the user wants a bug fix
- the user already provides a precise design system
- the task is mainly structural rather than visual
See also
Full implementation rules — Chapters 12–38 (combinatorial variation engine, hero/section & anti-slop/anti-drift, text/typography/spacing/component/color extraction, design-to-code copy discipline, section packs & consistency, clarity checks, response behavior, example interpretations, final goal) — live in references/details-ch12-38.md. Load it when doing the actual image-to-code build.
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.

