本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)101k · #1191

image-to-code

できること

このツールは、まずウェブサイトのビジュアルデザインを作成し、それをコードに変換します。最終的なコードの指針となる高品質な画像を生成することに重点を置き、見栄えがよく、きちんと動くウェブサイトに仕上げます。

使う場面

  • ✓独自性があり、プロフェッショナルな見た目のウェブサイトがほしいとき。
  • ✓注目を集める必要があるマーケティングページや製品ページを作るとき。
  • ✓ビジュアルの質を重視して、既存のウェブサイトをリデザインしたいとき。

スキルのリンク

https://github.com/nexu-io/open-design/blob/main/skills/image-to-code-skill/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/nexu-io/open-design/blob/main/skills/image-to-code-skill/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“テック系スタートアップのトップページを、モダンでシンプルな見た目のデザインとコードで作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

まずAIがアートディレクターのように、ウェブサイトのデザインを詳細な画像として生成します。次に、その画像を丁寧に解析し、すべてのビジュアルの細部を把握します。最後に、その解析結果をもとに、デザインに忠実なウェブサイトを構築するコードを書きます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

…

よくある質問

なぜAIはまず画像を生成するのですか?

先に画像を生成することで、コードを書く前にデザインを視覚的に固めることができます。これにより、思い描いたとおりの仕上がりになりやすくなり、品質と細部に重点を置けます。

「視覚的に強いデザイン」とはどういう意味ですか?

見た目に強い印象があり、芸術的によく考えられたデザインであることを意味します。読みやすさや明確な構造が備わり、開発者がコードに落とし込みやすいウェブサイトになります。

AIはどのような種類のウェブサイトでも作れますか?

ビジュアルの質が非常に重要なウェブサイトに特化しています。マーケティングページ、スタートアップのサイト、製品ページ、ポートフォリオなど、プレミアムなデザインが効果を発揮する場面に向いています。

詳細

作者による元の説明

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 o

repo: nexu-io/open-design

人気

GitHubのスター
101k
ランキング
#1191
ライセンス
Apache-2.0
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル