design-dna

Ochiq manbalardan

Namunaviy interfeyslarni (tasvirlar, skrinshotlar, URL manzillar) miqdoriy Design DNA JSON formatiga aylantiring — tokenlar, sifat uslubi, vizual effektlar — soʻngra kontentingiz asosida mos interfeysni yarating.

Mashina tarjimasi · Asl matnni koʻrsatish

Turn reference UIs (images, screenshots, URLs) into quantified Design DNA JSON—tokens, qualitative style, visual effects—then generate matching UI from your content.

AI skillKategoriya: AI koʻnikmalari · Dizayn va UI · FrontendOpen sourcemaʼlumot tekshirilgan: 15-okt, 2026

Sharh

  • agent-skills
  • claude-skills
  • codex-skills
  • cursor-skills
  • design-dna
  • design-system
  • design-tokens
  • skills-cli
  • ui-design
  • visual-design

Oʻrnatish

Buyruqlar faqat koʻrsatiladi, marketpleys ularni bajarmaydi. Rasmiy hujjatlar bilan solishtiring.
  • Manbadan yigʻishOchiq manbalardankatalog metamaʼlumotlaridan

    Manbadan yigʻish: tekshirilgan yigʻish retsepti yoʻq — repozitoriy koʻrsatmalariga amal qiling.

    github.com/zanwei/design-dna ↗

Moslik

«Nomaʼlum» dalil topilmaganini bildiradi, mahsulot mos emasligini emas.
PlatformaHolatArxitekturaDalilIshonchlilik
Claude CodeNomaʼlum———
Claude (web & desktop)Nomaʼlum———
OpenAI CodexNomaʼlum———
ChatGPTNomaʼlum———
CursorNomaʼlum———
GitHub CopilotNomaʼlum———
Gemini CLINomaʼlum———

Relizlar

tekshirilgan: 29-okt, 2026
Manbada relizlar topilmadi.

Sifat profili

algoritm quality-v1.0 · baholangan 15-okt, 2026
Sifat bahosi77
Xavf bahosi0
Ishonchlilik 1.00
Sifat bahosi va xavf bahosi — turli koʻrsatkichlar. Yuqori sifat xavfsizlikni kafolatlamaydi.

Baho tarkibi

Qoʻllab-quvvatlash · 2016
last activity 49 days ago
Hujjatlar · 1515
README 7070 chars, description present
Foydalanishga tayyorlik · 159
install instructions: yes; releases: no
Metamaʼlumotlar · 108
3/4 of description, homepage, license, topics
Relizlar · 102
0 release(s)
Kategoriya aniqligi · 1010
classifier confidence 0.97
Ommaboplik · 108
1974 stars (log-dampened, 10k = max)
Litsenziya aniqligi · 55
SPDX MIT
Hamjamiyat · 55
issues enabled, 109 forks

Litsenziya

MIT
Litsenziya maʼlumrepozitoriy xostingi maʼlumotlariga koʻra

Bu katalog siyosati holati, yuridik xulosa emas.

Manbalar

github.com/zanwei/design-dnaAsosiy★ 1 974 yulduzfaollik: 28-avg, 2026Asosiy repozitoriy · Ishonchlilik 1.00

Sharhlar

Sharh yozish uchun kiring

Hali sharhlar yoʻq.

Muqobillar

oil-uiOʻxshash
Claude Code, Codex va boshqa AI agentlar uchun UI dizayn koʻnikmasi: turli yoʻnalishlarni oʻrganish, ularni yonma-yon solishtirish, haqiqiy skrinshotlar asosida takomillashtirish. 给 AI Agent 用的 UI 设计 Skill。MIT · AI koʻnikmalari
google-maps-scraperOʻxshash
Google Maps’dan maʼlumotlarni yigʻish. Har bir joy uchun nomi, manzili, telefon raqami, veb-sayt URL manzili, reytingi, sharhlar soni, kenglik va uzunlik koordinatalari, sharhlar, elektron pochta manzili va boshqa maʼlumotlarni ajratib oladi.MIT · AI koʻnikmalari
styleseedOʻxshash
Claude Code, Codex va Cursor uchun ochiq manbali dizayn-metodlari dvigateli. Qat’iy dizayn mulohazasi, bir nechta grammatikalar, semantik palitralar, referenslarni kompilyatsiya qilish va dalillar bilan tekshiriladigan UI uchun 23 ta agent ko‘nikmasi. MIT.MIT · AI koʻnikmalari
ux-ui-agent-skillsOʻxshash
Claude’ni katta dizayn-arxitektorga aylantiring: DTCG tokenlari, 52 ta komponent, WCAG 2.2 AA–AAA, 138 ta dizayn-tizim, istalgan freymvork uchun kod va muvaffaqiyatni soxtalashtirish o‘rniga yig‘ishni to‘xtatadigan 50 ta obyektiv tekshiruv.MIT · AI koʻnikmalari
google-maps-scraper-kitOʻxshash
Lidlar generatsiyasi uchun bepul Google Maps skreperi. Telefonlar, elektron pochtalar, veb-saytlar va ijtimoiy tarmoqlarni CSV formatiga eksport qiladi. Docker orqali mahalliy ishlaydi, API kalitlari talab etilmaydi. Claude Code uchun koʻnikma kiritilgan.MIT · AI koʻnikmalari
compass-skillsOʻxshash
Sinan (司南): shaxsiylashtirilgan sun'iy intellekt vazifalarini boshqarish koʻnikmalar tizimi / COMPASS: Personal Alignment Skills OS for AI AgentsMIT · AI koʻnikmalari

README

zanwei/design-dna dan · litsenziya MIT · yuklangan 29-okt, 2026

An agent skill for extracting, structuring, and applying visual design identity as machine-readable "Design DNA" across three dimensions: design tokens, qualitative style, and visual effects.

[example]

https://github.com/user-attachments/assets/00e0a28d-42ce-4a08-a0c0-1ecf8b9f7e97

https://github.com/user-attachments/assets/80793608-930d-42ca-951f-eb21ac188d54

https://github.com/user-attachments/assets/cd4cba94-cd2c-480f-8efa-4ac86e00ae1f

Prerequisites

  • Node.js environment installed
  • Ability to run npx commands

Installation

Quick Install (Recommended)

npx skills add zanwei/design-dna

Install to Specific Agent

# Cursor only, non-interactive, global install
npx skills add zanwei/design-dna -a cursor -g -y

# Claude Code only
npx skills add zanwei/design-dna -a claude-code -g -y

Install from Local Clone

git clone https://github.com/zanwei/design-dna.git
npx skills add ./design-dna -y

List Available Skills

npx skills add zanwei/design-dna --list

What It Does

DimensionRole
Design SystemMeasurable tokens: color, typography, spacing, layout, shape, elevation, motion, components
Design StyleQualitative perception: mood, visual language, composition, imagery, interaction feel, brand voice
Visual EffectsBeyond plain CSS: Canvas, WebGL, 3D, particles, shaders, scroll-driven motion, cursor effects, SVG animation, glassmorphism, etc.

The skill drives a three-phase workflow:

  1. Structure — Surface the full schema and field meanings (see references/schema.md).
  2. Analyze — From screenshots, images, or URLs, produce a complete JSON profile (every field filled; conflicts noted).
  3. Generate — Given DNA JSON plus content, implement the design (default: self-contained HTML/CSS/JS), following references/generation-guide.md.

Phases can be used alone or chained (e.g. Analyze → Generate).

How It Works

Pipeline at a glance (Mermaid renders on GitHub):

flowchart LR
    A["Reference designs<br/>Screenshots · URLs · images<br/><br/>Any design you admire"]
    B["Design DNA JSON<br/>Quantified spec<br/><br/>Structured profile"]
    C["Final output<br/>Faithful implementation<br/><br/>Production-ready UI"]

    A -->|"Analyze — extract every visual property"| B
    B -->|"Generate — apply DNA to your content"| C
    B -.-> D["Save · reuse · version control"]

Step 1 — Curate references. Collect screenshots, images, or live URLs of designs whose visual identity you want to capture. Multiple references can be combined; the skill identifies dominant patterns and notes variants.

Step 2 — Extract DNA. Feed the references to the agent. It inspects every visual property across all three dimensions and outputs a complete, quantified Design DNA JSON — no empty fields, no guesswork. This JSON becomes a portable, reusable design specification.

Step 3 — Generate from DNA. Provide the DNA JSON together with your own content. The agent produces implementations that faithfully reproduce the original design language while adapting to your material.

The DNA JSON is the key artifact. Once extracted, it can be committed to version control, shared across teams, reused across projects, and iteratively refined — turning subjective "make it look like that site" into a precise, reproducible specification that any agent can consume.

[!TIP] Refining visual richness. If the first pass still feels visually thin or under-detailed next to your references, run a deliberate polish iteration: re-attach the same URLs or screenshots. This narrows the gap between a workable draft and a reference-faithful, visually rich result without starting over.

Prompt: Against the reference, audit hierarchy, ornamentation, typographic rhythm, motion, materiality, and overall UI—then merge your conclusions back into the current implementation.

Deterministic Measurement (optional)

LLM color perception drifts toward familiar palette defaults — a brand pink like #ff90e8 gets "seen" as #ec4899 (ΔE ≈ 29). Two optional scripts make the Analyze and Generate phases measurable:

The manual commands below are for a local clone of this repository. Run them from the clone's root:

npm install --prefix ./scripts

# Analyze: measure the exact palette from a reference screenshot
node scripts/measure-colors.mjs reference.png > measured-colors.json

# Generate: score the implementation screenshot against the reference
node scripts/verify.mjs implementation.png measured-colors.json

When installed as an agent skill via Quick Install, the agent must resolve these scripts from the absolute directory containing the loaded SKILL.md; users do not need a scripts/ directory in their project root.

measure-colors.mjs runs deterministic k-means clustering over the actual pixels (with perceptual ΔE merging of anti-aliasing noise) and outputs exact hexes, coverage as 0..1 fractions, background/text/accent roles, and the clustering k. verify.mjs reuses the recorded k, re-measures the generated output, and reports per-color ΔE and coverage drift with PASS/FAIL thresholds, giving the agent a self-correction loop instead of relying on the user's eye. The skill instructs agents to use both automatically when references are image files; no API keys required.

Same reference (bun.sh's hero), same agent — perceived rebuild vs measured rebuild:

[Example: rebuilding the bun.sh hero from perceived style vs measured tokens. The measured rebuild reproduces every token (verify PASS, mean ΔE 0.87); the perceived rebuild drifts the near-black background to #000000 and the brand pink to the familiar #ec4899 (FAIL, mean ΔE 9.54).]

Compatibility

Follows the Agent Skills specification. Installable via skills CLI to all supported agents including Cursor, Claude Code, Codex, GitHub Copilot, and 39 more.

Contributing

Issues and pull requests are welcome. For substantive behavior changes, update SKILL.md and any affected files under references/ so the skill stays internally consistent.

License

MIT

Star History

[Star History Chart]

Repozitoriyni ochish ↗