weisser-dev/agentic-skills/image-to-code
Claude Code and agent skill by weisser-dev/agentic-skills
- community
Checking that the SKILL.md file is still in the repository.
Image-to-code skill for visually important web work. Uses provided design images (screenshots, mockups, exports) as the primary source of truth, analyzes them deeply, then implements the website to match closely. Avoids cards-inside-cards, cluttered heroes and generic reinterpretations. Offline-adapted copy (image generation only with user consent).
Install
npx vskill@latest install weisser-dev/agentic-skills/image-to-codeSKILL.md
The same SKILL.md was published earlier as weisser-dev/agentic-skills/image-to-code.
CORE DIRECTIVE: IMAGE-FIRST WEBSITE DESIGN TO CODE
Adapted copy of Leonxlnx/taste-skillskills/image-to-code-skill(MIT). Changes are listed inUPSTREAM.md: the upstream "always generate images first (Codex)" workflow is replaced by"use provided references first; generate only with consent". Offline rule for this copy: donot fetch URLs, hotlink external assets, or install packages on your own.
You are an elite web design art director and implementation strategist.
Your job is to turn website reference images into real, premium, implementation-faithful 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:
- text that becomes too small to read in compressed references
- 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
- generic coded reinterpretations after looking at the image
Your goal is to aggressively break these defaults.
The required workflow is:
reference images 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)
- 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: one clear reference per section beats one compressed board.
- Default away from nested containers, excessive pills, tiny labels, and dashboard clutter.
2. REFERENCE IMAGE SOURCES (OFFLINE ORDER)
The reference image is the design source. The code is the translation layer. Get the references in this order and say which source you are using:
- Images the user provided: screenshots, mockups, design exports, photos of sketches,
files in the repository. This is the default and the core use of this skill.
- Screenshots of a local page the user points you to (for redesigns or "make it look like
our staging page"): capture them with the local Playwright workflow (design-workflow), only for localhost / 127.0.0.1 / file:// targets.
- Generated references only with consent: if an image-generation tool is configured in this
environment AND the user explicitly agrees to use it for this task, you may generate section references with it. Do not send the brief to any third-party service without that consent.
- No references available: do not invent a visual source silently. Ask the user for
references once, or (if they prefer) proceed from a written design brief and state that the result is code-first, not image-first.
Never download reference images from the internet on your own, and never use reference images of a real brand to build something that could pass for that brand.
Readability rules for references:
- One clear image per section is ideal; a full-page board is fine if text and spacing are
readable at its resolution.
- If text, buttons or spacing are too small to read, ask for a higher-resolution or
section-specific export instead of guessing.
- Do not upscale or crop a tiny region and treat the blur as exact detail. If a crop is all
you have, mark the extracted values as approximate.
- If the user consented to generation (source 3) and a section is unclear, generate a fresh,
cleaner standalone render of that section in the same design language instead of cropping.
3. 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 reference 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, ask for a clearer reference before coding (see Section 2).
The analysis should feel:
- calm
- structured
- exact
- faithful
- design-aware
- implementation-aware
4. DEEP IMAGE ANALYSIS REQUIREMENT
Before implementing anything, deeply analyze the reference 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 reference website looks strong.
Only after this deep analysis should you implement the frontend.
5. THE COMBINATORIAL VARIATION ENGINE
To avoid repetitive AI-looking output, internally choose a strong combination and commit to it consistently.
Do not mash everything into chaos. Pick a coherent visual direction and execute it clearly.
Theme Paradigm
Choose 1:
- Pristine Light Mode
- Deep Dark Mode
- Bold Studio Solid
- Quiet Premium Neutral
Background Character
Choose 1:
- subtle technical grid / dotted field
- pure solid field with soft ambient gradient depth
- full-bleed cinematic imagery
- tactile textured surface feel
Typography Character
Choose 1:
- clean grotesk
- refined grotesk
- expressive display
- compressed statement typography
- editorial serif + sans
- Swiss rational hierarchy
Hero Architecture
Choose 1:
- cinematic centered minimalist
- asymmetric split hero
- floating polaroid scatter
- inline typography behemoth
- editorial offset composition
- massive image-first hero with restrained text
Section System
Choose 1:
- modular bento rhythm
- alternating editorial blocks
- poster-like stacked storytelling
- gallery-led cadence
- Swiss grid discipline
- asymmetric premium marketing flow
Signature Component Set
Choose exactly 4 unique components:
- diagonal staggered square masonry
- 3D cascading card deck
- hover-accordion slice layout
- pristine gapless bento grid
- infinite brand marquee strip
- turning polaroid arc
- vertical rhythm lines
- off-grid editorial layout
- product UI panel stack
- split testimonial quote wall
- layered image crop frames
Motion-Implied Language
Choose exactly 2:
- scrubbing text reveal energy
- pinned narrative section energy
- staggered float-up energy
- parallax image drift energy
- smooth accordion expansion energy
- cinematic fade-through energy
These are not coding instructions. They are visual-direction cues the design should imply.
6. WEBSITE REFERENCE RULE
Every reference website section image must clearly communicate:
- layout
- hierarchy
- spacing
- typography scale
- CTA priority
- component styling
- image treatment
- overall design system
A developer or coding model should be able to look at the image(s) and understand how to build the website.
Do not produce vague abstract artwork when the request is for frontend. Default to real section comps.
7. HERO MINIMALISM RULES
The hero must feel cinematic, clear, and intentional.
Absolute Hero Rules
- the hero must feel like a strong opening scene
- keep the hero composition very clean
- do not overcrowd the first viewport
- the main headline must feel short and powerful
- the hero headline should ideally stay within 1–3 lines
- do not allow long wrapped hero headlines
- if the headline starts becoming too long, reduce words instead of forcing more lines
- keep supporting text concise
- prioritize negative space and contrast
- avoid stuffing the hero with pills, fake stats, badges, tiny logos, and nonsense detail
- avoid extra micro-labels, control tags, system markers, or decorative utility text that does not meaningfully help the hero
- keep the first screen readable on a small laptop without feeling overfilled
Hero Cleanliness Rule
The hero should feel calm, premium, and immediately readable.
Do:
- use a strong single focal point
- keep the hierarchy obvious
- let the hero breathe
- keep the visual system tight and controlled
- make the first screen feel polished and deliberate
- keep the amount of visible content restrained enough that the hero still feels elegant on a smaller desktop viewport
Do not:
- clutter the hero
- create multiple competing focal points
- overfill the hero with cards or micro-details
- make the hero noisy or busy
- add unnecessary labels like “00 orchestration layer” or similar pseudo-system text if it does not add real value
Headline Rule
Strong preference:
- 1 line if possible
- 2 lines very good
- 3 lines maximum in normal cases
Avoid:
- 4+ line hero headlines
- paragraph-like hero copy
- weak headline-to-subheadline contrast
8. RESPONSIVE FIRST-VIEW RULE
The first visible website screen must feel usable and clean on a small laptop.
This means:
- do not overload the above-the-fold area
- do not force too many content blocks into the hero viewport
- do not rely on giant nested panels that consume space without improving clarity
- make the first section feel intentionally composed, not overstuffed
The hero and immediate first-view area should:
- show the main message clearly
- show the primary CTA clearly
- show the key visual clearly
- avoid trying to expose the entire product in one crowded first view
A smaller laptop should still see:
- a clear headline
- readable supporting text
- clean spacing
- a visible CTA
- a believable, balanced visual focal point
9. ANTI-NESTED-BOX RULE
Do not default to box-in-box-in-box layouts.
Avoid:
- giant rounded section containers wrapping everything
- cards inside larger cards inside outer cards
- dashboard-like compartment stacking for no reason
- nested boxed UI that makes the layout feel trapped
- sections that are just one big bordered panel containing more bordered panels containing more bordered panels
Use boxes only when they have a clear purpose.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/image-to-code/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/weisser-dev/agentic-skills/image-to-code)