← 返回 Skills 市场
leostehlik

Visual DNA

作者 Leo Stehlik · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ pending
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install visual-dna
功能描述
Extract and apply visual design identity by analyzing images or URLs into structured Design DNA JSON, then generate matching UI with complete style and effects.
使用说明 (SKILL.md)

Design DNA

Extract visual identity from any reference. Apply it to any content. Reuse it everywhere.

Three phases — use any combination:

  1. Analyze — screenshots, images, or URLs → Design DNA JSON
  2. Generate — Design DNA JSON + your content → faithful implementation
  3. Structure — show the full schema when asked

Read references/schema.md for the full field list. Read references/generation-guide.md for generation rules.

The Three Dimensions

Dimension What it captures
design_system Measurable tokens: colour, typography, spacing, layout, shape, elevation, motion, components
design_style Qualitative feel: mood, visual language, composition, brand voice, interaction personality
visual_effects Special rendering: Canvas, WebGL, particles, shaders, scroll effects, SVG animation

Phase 1: Analyze

When the user provides screenshots, images, or URLs:

  1. Read references/schema.md — know every field before starting
  2. For each reference: analyze or fetch and analyze
  3. Fill every field — no empty strings, no guesswork flagged as guesswork
  4. When references conflict: note the dominant pattern, mention variants
  5. Output complete Design DNA JSON
  6. Ask: "Want to adjust any values before generating?"

Key extraction rules:

  • Colour: sample dominant palette by area. Primary = largest area, accent = CTA usage
  • Typography: identify font class visually (geometric, humanist, serif). Estimate scale ratios from heading/body relationships
  • Spacing: assess density by element proximity. Measure section rhythm consistency
  • Visual effects: scan for Canvas, WebGL, Three.js, GSAP, particles, shaders, custom cursors. Set enabled: false for anything not present

Phase 2: Generate

When the user provides DNA JSON + content:

  1. Read references/generation-guide.md
  2. Build CSS custom properties from design_system tokens
  3. Apply design_style qualitative fields to subjective decisions
  4. Implement visual_effects at the appropriate tech tier (CSS → Canvas → WebGL)
  5. Fetch real assets from original URLs when possible — don't recreate
  6. Default output: self-contained HTML with inline CSS/JS

Priority order:

  1. Colour & typography (80% of visual identity)
  2. Spacing & layout
  3. Shape & elevation
  4. Design style qualitative fields
  5. Visual effects
  6. Motion & interaction

Quality check before delivering:

  • Does it actually look like the reference?
  • Are all design tokens applied (not just some)?
  • Is the output self-contained (no external dependencies that could break)?
  • Do visual effects degrade gracefully without JS?

The DNA JSON as an Asset

The extracted JSON is the key output — not just the generated UI. Once extracted:

  • Commit it to version control
  • Share it across teams and projects
  • Feed it to any agent for any future generation
  • Refine it iteratively

This turns "make it look like that site" into a precise, reproducible spec.

Pair with no-slop-ui

When generating UI from DNA:

  • Apply no-slop-ui rules alongside DNA tokens
  • DNA tells you WHAT the design is
  • no-slop-ui tells you what NOT to do (no AI defaults slipping in)
  • Together: faithful to reference, clean execution
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install visual-dna
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /visual-dna 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial public Visual DNA skill.
元数据
Slug visual-dna
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Visual DNA 是什么?

Extract and apply visual design identity by analyzing images or URLs into structured Design DNA JSON, then generate matching UI with complete style and effects. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Visual DNA?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install visual-dna」即可一键安装,无需额外配置。

Visual DNA 是免费的吗?

是的,Visual DNA 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Visual DNA 支持哪些平台?

Visual DNA 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Visual DNA?

由 Leo Stehlik(@leostehlik)开发并维护,当前版本 v0.1.0。

💬 留言讨论