Communitygithub.com

leonxlnx/image-to-code-skill

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.

image-to-code-skill 是什么?

image-to-code-skill is a Codex agent skill that 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.

兼容平台~Claude CodeCodex CLI~Cursor
npx skills add https://github.com/leonxlnx/taste-skill/tree/main/skills/image-to-code-skill

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

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:

  1. generate the design image or image set yourself first
  2. deeply inspect and analyze the generated image(s)
  3. extract the design system from them
  4. 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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

leonxlnx/brandkit

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.

leonxlnx/brutalist-skill

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

leonxlnx/design-taste-frontend

Senior UI/UX Engineer. Architect digital interfaces overriding default LLM biases. Enforces metric-based rules, strict component architecture, CSS hardware acceleration, and balanced design engineering.

leonxlnx/design-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.

leonxlnx/full-output-enforcement

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

leonxlnx/gpt-taste

Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA page structure, wide editorial typography (bans 6-line wraps), gapless bento grids, strict GSAP ScrollTriggers (pinning, stacking, scrubbing), inline micro-images, and massive section spacing.

leonxlnx/gpt-tasteskill

Elite UX/UI & Advanced GSAP Motion Engineer. Enforces Python-driven true randomization for layout variance, strict AIDA page structure, wide editorial typography (bans 6-line wraps), gapless bento grids, strict GSAP ScrollTriggers (pinning, stacking, scrubbing), inline micro-images, and massive section spacing.

leonxlnx/high-end-visual-design

Teaches the AI to design like a high-end agency. Defines the exact fonts, spacing, shadows, card structures, and animations that make a website feel expensive. Blocks all the common defaults that make AI designs look cheap or generic.

leonxlnx/imagegen-frontend-mobile

Elite mobile app image-generation skill for creating premium, app-native screen concepts and flows. Designed for iOS, Android, and cross-platform mobile products. Prioritizes clean hierarchy, comfortably readable text, strong multi-screen consistency, controlled color palettes, non-generic creative direction, textured surfaces, image-led composition, tasteful custom iconography, and clean phone mockup framing. By default, screens should be shown inside a subtle premium iPhone or similar phone mockup with a visible frame, while the main focus stays on the app content itself. This skill generates images only. It does not write code.

leonxlnx/imagegen-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.

leonxlnx/image-taste-frontend

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.

leonxlnx/image-to-code

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.

leonxlnx/industrial-brutalist-ui

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

leonxlnx/minimalist-skill

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

leonxlnx/minimalist-ui

Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.

leonxlnx/output-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

leonxlnx/redesign-existing-projects

Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.

leonxlnx/redesign-skill

Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.

leonxlnx/soft-skill

Teaches the AI to design like a high-end agency. Defines the exact fonts, spacing, shadows, card structures, and animations that make a website feel expensive. Blocks all the common defaults that make AI designs look cheap or generic.

leonxlnx/stitch-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.

相关技能