image-to-code
Skill9 starsChanged 57 days agoMITView on GitHub
Website image-to-code for Codex: generate the design image(s) first, analyze deeply, then implement to match. Prefer large readable section images over tiny boards; fresh images per section (no cropping); avoid card-pyramid UI; keep the hero clean, spacious, readable.
48 other projects use a version of this, 42 of them edited.
Adopted by
Most recently taken up by
- BUGLAN/skillsedited, first seen Oct 6, 2026
- weisser-dev/agentic-skillsedited, first seen Oct 3, 2026
- SoftMissT/tudo-sobre-vibe-codingedited, first seen Oct 1, 2026
- imMamdouhaboammar/motion-graphics-skillsedited, first seen Oct 1, 2026
- xenodeve/xeno-skillsedited, first seen Sep 26, 2026
- Hayatelin/taste-skill-zh-CNtheir own version, first seen Sep 23, 2026
Used with
Projects with it also use find-animation-opportunities.
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.
sanmidableSkillfind-animation-opportunities
Also in 8 projects that use this
Other versions48 projects use a version of this.
Word for word · 0
None found.
Edited · 42
- Leonxlnx/taste-skill★ 93k30% same
- hamzafarooq/claude-code-starter★ 14530% same
- hushh-labs/hushh-research★ 3830% same
- kresogalic8/unwatched★ 3530% same
- jmxt3/gitscape.ai★ 3230% same
- ivanrvpereira/.agents★ 1830% same
- imMamdouhaboammar/motion-graphics-skills★ 1530% same
- idexal/idexal-skills★ 1330% same
- Jonathan0823/opencode-config★ 830% same
- SoftMissT/tudo-sobre-vibe-coding★ 830% same
32 more not listed
Wrote their own version · 6
- openai/plugins★ 7.3ksame name
- plugin87/ux-ui-agent-skills★ 1.5ksame name
- Hayatelin/taste-skill-zh-CN★ 8same name
- int2t05/engineering-skills★ 3same name
- wedabro/bro-skills★ 3same name
- beelabstudio/ai★ 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 repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- algorithmic-artSkill
- brand-guidelinesSkill
- brandkitSkill
- industrial-brutalist-uiSkill
- bun-typescript-conventionsSkill
- canvas-designSkill
- claude-apiSkill
- claude-opus-4-5-migrationSkill
- coordinatorSkill
- deterministic-async-teardownSkill
- doc-coauthoringSkill
- docxSkill
- durable-authority-crash-replaySkill
- exact-coverage-repairSkill
- frontend-designSkill
- gpt-tasteSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- imagegen-frontend-mobileSkill
- imagegen-frontend-webSkill
- internal-commsSkill
- mcp-builderSkill
- merge-when-greenSkill
- minimalist-uiSkill
- full-output-enforcementSkill
- pdfSkill
- playwright-cliSkill
- pptxSkill
- redesign-existing-projectsSkill
- runtime-portable-process-fixturesSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- design-taste-frontendSkill
- design-taste-frontend-v1Skill
- template-skillSkill
- theme-factorySkill
- typed-protocol-contractsSkill
- vfSkill
- webapp-testingSkill
- web-artifacts-builderSkill
- windows-path-authority-leasesSkill
- xlsxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. 20 are common, 14 are distinctive, and 0 are very specific to this project.
20
Common
Most of the 47 edited versions we read keep these.
14
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 135
When this skill is used inside Codex or any environment that supports image generation plus implementation, default to an image-first …
- Common: line 141
if needed, regenerate unclear sections as fresh standalone images
- Common: line 145
only invent missing details when the images leave something ambiguous
- Common: line 157
If image generation is available, strongly prefer generating image references first when the request is mainly about visual frontend …
- Distinctive: line 182
Before finalizing, verify internally:
- Distinctive: line 187
If not, were extra detail images created?
- Distinctive: line 199
If multiple images exist, do they clearly belong together?
- Distinctive: line 206
If not, refine internally before output.
- Distinctive: line 212
When the user asks for a website design in an image-to-code workflow:
- Distinctive: line 215
if image generation is available and visual quality is central, generate the design image(s) first
- Common: line 219
do not be lazy with image count
- Distinctive: line 220
do not crop old images for section extraction
- Distinctive: line 227
avoid cards-inside-cards-inside-cards and giant boxed section wrappers
- Common: line 228
keep the first screen readable and balanced on a small laptop
- Distinctive: line 230
keep spacing generous, even, and analyzable
- Distinctive: line 234
create the final files only after the full analysis pass
- Distinctive: line 236
Do not ask unnecessary follow-up questions if a strong interpretation is possible.
- Distinctive: line 237
Do not start with freeform coding when the visual problem should clearly be solved with image generation first.
- Distinctive: line 238
Do not compress many sections into one unreadable image in Codex.
- Distinctive: line 239
Do not crop previously generated large images when a fresh cleaner section-specific image should be generated instead.
“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
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.
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
35. CLARITY CHECK
Before finalizing, verify internally:
- Has the design been generated first?
- Have all generated images been deeply analyzed?
- Is the text readable enough?
- If not, were extra detail images created?
- Were enough images generated, or was the image count too lazy?
- Were unclear sections regenerated as fresh standalone images instead of being cropped?
- Is the hierarchy obvious?
- Is the hero clean enough?
- Is typography analyzed properly?
- Are spacing relationships understood properly?
- Are buttons and components extracted properly?
- Are colors analyzed properly?
- Is the design visually distinctive?
- Is it free of obvious AI tells?
- Can someone code from this faithfully?
- If multiple images exist, do they clearly belong together?
- Has Codex avoided compressing too many sections into one tiny image?
- Was the analysis clean, structured, and specific?
- Has unnecessary nested boxing been removed?
- Is the first screen still clean and readable on a small laptop?
- Have useless pills, labels, and fake technical micro-elements been reduced?
If not, refine internally before output.
36. RESPONSE BEHAVIOR
When the user asks for a website design in an image-to-code workflow:
- infer site type
- infer number of sections
- if image generation is available and visual quality is central, generate the design image(s) first
- inside Codex, prefer one large image per section
- generate additional detail/extraction images if text or components are too small
- generate more images whenever that improves readability or extraction quality
- do not be lazy with image count
- do not crop old images for section extraction
- regenerate sections as fresh standalone images when needed
- choose a strong visual combination
- choose 4 signature components
- choose 2 motion-implied cues
- enforce hero cleanliness and short hero line count
- reduce unnecessary pills, labels, and micro-UI clutter
- avoid cards-inside-cards-inside-cards and giant boxed section wrappers
- keep the first screen readable and balanced on a small laptop
- enforce strong image usage where appropriate
- keep spacing generous, even, and analyzable
- deeply and cleanly analyze all generated images
- extract text, typography, spacing, buttons, colors, components, and layout logic
- implement the website to match the generated references as closely as reasonably possible
- create the final files only after the full analysis pass
Do not ask unnecessary follow-up questions if a strong interpretation is possible. Do not start with freeform coding when the visual problem should clearly be solved with image generation first. Do not compress many sections into one unreadable image in Codex. Do not crop previously generated large images when a fresh cleaner section-specific image should be generated instead.
References
references/image-generation-rules.md— Read when: generating or regenerating the design reference images; image-count rules, one image per section, no-cropping, fresh re-generation, detail/extraction images, buildable-reference requirement, website image system, fixed media frames, default section packs, multi-image consistency.references/analysis-and-extraction.md— Read when: deeply analyzing the generated images before coding; clean analysis standard and text / typography / spacing / button-component / color extraction rules.references/visual-design-rules.md— Read when: directing the visual design; combinatorial variation engine, hero minimalism, responsive first-view, anti-nested-box, micro-UI clutter reduction, anti-AI-slop, typography-first discipline, section rhythm, density and spacing.references/implementation-fidelity.md— Read when: implementing the frontend from the references; design-to-code copy discipline, anti-drift rule, missing-detail resolution order.references/examples-and-final-goal.md— Read when: you need worked example interpretations (hero / 8-section / 4-section requests) or the final quality goal.
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.

