visual-clone — Design DNA Extractor
Given a reference design image, systematically extract every visual element and output
a structured replication prompt that can be used to recreate the style in a different context.
When to Use
- User provides a design image (poster, card, banner, UI screenshot, social media graphic) and wants to replicate the style
- User wants to understand the visual language of a reference and apply it elsewhere
- User needs a structured design brief derived from an existing piece
Workflow (MANDATORY)
You MUST follow these steps in order:
Step 1: Receive the Reference Image
Read the image the user provides. If no image is given, use AskUserQuestion to ask them to provide one.
Step 2: Ask Context
Use AskUserQuestion to collect before analysis:
Ask the user (single question):
- "你想把这个风格复刻到什么场景?(例如:另一张海报、社交媒体图、名片、PPT 封面、AI 生图 prompt……)如果还没想好也可以先提取,之后再套用。"
Step 3: Analyze — Extract Design DNA
Examine the image and extract ALL of the following dimensions. Be specific, not vague.
Use concrete values (hex colors, approximate sizes, named fonts) wherever possible.
Output a structured Markdown document titled "Design DNA" with these sections:
3.1 Layout / 布局
- Overall composition (grid, centered, asymmetric, layered, etc.)
- Content zones and their spatial relationships
- Alignment patterns, margins, padding estimates
- Visual hierarchy: what draws the eye first → second → third
- Aspect ratio
3.2 Color Palette / 色彩
- Primary color(s) with hex values
- Secondary / accent colors with hex values
- Background color(s) / gradient description
- Color ratio (approximate % of each color in the composition)
- Color mood: warm / cool / neutral / contrasting
3.3 Typography / 字体
- Headline font style (serif, sans-serif, script, display — name if recognizable)
- Body text font style
- Font weight / size hierarchy
- Letter-spacing, line-height feel (tight / normal / loose)
- Text color(s) and any text effects (shadow, outline, gradient fill)
3.4 Visual Style / 视觉风格
- Design era / movement (e.g., Swiss modernism, Y2K, Japanese minimalism, brutalism)
- Illustration style if present (flat, 3D, hand-drawn, photographic, collage)
- Shape language (geometric, organic, angular, rounded)
- Border / divider treatment
- Icon style if present
3.5 Texture & Material / 质感
- Surface feel (matte, glossy, paper grain, noise, fabric, metallic)
- Overlay effects (grain, halftone, blur, duotone)
- Shadow style (none, soft, hard, long, colored)
- Depth / dimensionality (flat, layered, 3D)
3.6 Imagery / 图像处理
- Photo treatment (if any): filter, crop style, masking, blend mode
- Illustration integration method
- Decorative elements (patterns, stickers, stamps, badges)
3.7 Copy & Tone / 文案风格
- Headline tone (formal, playful, poetic, provocative, minimal)
- Information density (sparse / moderate / dense)
- Language register and word choice style
- CTA style if present
3.8 Spacing & Rhythm / 间距与节奏
- Overall density (airy / balanced / compact)
- White space usage pattern
- Repetition / rhythm of elements
- Breathing room between sections
Step 4: Generate Replication Prompt
Based on the extracted DNA, generate a single, self-contained replication prompt in this format:
## Replication Prompt / 复刻指令
### Visual Brief
[1-2 sentence summary of the overall visual identity]
### Specifications
- **Layout**: [composition description]
- **Color palette**: [hex values with roles]
- **Typography**: [font styles, hierarchy]
- **Style**: [era, mood, shape language]
- **Texture**: [material feel, effects]
- **Imagery**: [photo/illustration treatment]
- **Spacing**: [density, rhythm]
- **Copy tone**: [voice, register]
### When Applying to [user's target scenario]
[Specific adaptation notes for the user's stated scenario.
What to keep exactly, what to adjust, what to substitute.]
### AI Image Generation Version (English)
[If applicable: a condensed English prompt optimized for
Midjourney / DALL-E / Flux / Stable Diffusion style,
under 200 words, focusing on visual descriptors]
Step 5: Deliver
Output the full Design DNA analysis + Replication Prompt as a single Markdown document.
If the user specified a target scenario in Step 2, include concrete adaptation guidance.
If they said "先提取", skip the adaptation section and note they can come back to apply it later.
Output Rules
- Color values MUST include hex codes, not just names
- Font identification: name the font if recognizable, otherwise describe the style precisely
- All section headers in 中英双语 format
- Technical terms in English, descriptions in Chinese
- Be specific over generic: "12px letter-spacing, tight leading" > "modern typography"
- The Replication Prompt should be copy-pasteable as a standalone brief
No Scripts Needed
This skill is pure visual analysis. No Python scripts, no CLI tools.
Runtime context (shared)
运行前读取本 Skill 包的 skill.yaml,由宿主提供 skill-runtime/v1 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。
- 只使用 Manifest 声明的字段;Profile 保存公开品牌事实,Preferences 保存个人工作偏好。
required: true 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。
- 报错提供可复制的
context_id、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。
通用反馈闭环
用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
- 先判断意见是
task-specific(仅本次)还是 reusable(可跨任务复用)。
task-specific 只修改当前任务,不改 Skill。
reusable 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
- 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
reusable 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。
1---2name: lov-visual-clone-23description: Analyze a reference design image and extract visual DNA — layout, style, color palette, texture, typography, copy tone, spacing, etc. — into a structured, reusable replication prompt that can be applied to new scenarios. Trigger when: user provides a reference image and asks to "extract style", "replicate this", "clone this design", "analyze this visual", "generate a replication prompt", "提取设计要素", "复刻这个风格", "分析这张图", "视觉克隆".4license: MIT5---67# visual-clone — Design DNA Extractor89Given a reference design image, systematically extract every visual element and output10a structured replication prompt that can be used to recreate the style in a different context.1112## When to Use1314- User provides a design image (poster, card, banner, UI screenshot, social media graphic) and wants to replicate the style15- User wants to understand the visual language of a reference and apply it elsewhere16- User needs a structured design brief derived from an existing piece1718## Workflow (MANDATORY)1920**You MUST follow these steps in order:**2122### Step 1: Receive the Reference Image2324Read the image the user provides. If no image is given, use `AskUserQuestion` to ask them to provide one.2526### Step 2: Ask Context2728**Use `AskUserQuestion` to collect before analysis:**2930Ask the user (single question):31- "你想把这个风格复刻到什么场景?(例如:另一张海报、社交媒体图、名片、PPT 封面、AI 生图 prompt……)如果还没想好也可以先提取,之后再套用。"3233### Step 3: Analyze — Extract Design DNA3435Examine the image and extract ALL of the following dimensions. Be specific, not vague.36Use concrete values (hex colors, approximate sizes, named fonts) wherever possible.3738Output a structured Markdown document titled **"Design DNA"** with these sections:3940#### 3.1 Layout / 布局41- Overall composition (grid, centered, asymmetric, layered, etc.)42- Content zones and their spatial relationships43- Alignment patterns, margins, padding estimates44- Visual hierarchy: what draws the eye first → second → third45- Aspect ratio4647#### 3.2 Color Palette / 色彩48- Primary color(s) with hex values49- Secondary / accent colors with hex values50- Background color(s) / gradient description51- Color ratio (approximate % of each color in the composition)52- Color mood: warm / cool / neutral / contrasting5354#### 3.3 Typography / 字体55- Headline font style (serif, sans-serif, script, display — name if recognizable)56- Body text font style57- Font weight / size hierarchy58- Letter-spacing, line-height feel (tight / normal / loose)59- Text color(s) and any text effects (shadow, outline, gradient fill)6061#### 3.4 Visual Style / 视觉风格62- Design era / movement (e.g., Swiss modernism, Y2K, Japanese minimalism, brutalism)63- Illustration style if present (flat, 3D, hand-drawn, photographic, collage)64- Shape language (geometric, organic, angular, rounded)65- Border / divider treatment66- Icon style if present6768#### 3.5 Texture & Material / 质感69- Surface feel (matte, glossy, paper grain, noise, fabric, metallic)70- Overlay effects (grain, halftone, blur, duotone)71- Shadow style (none, soft, hard, long, colored)72- Depth / dimensionality (flat, layered, 3D)7374#### 3.6 Imagery / 图像处理75- Photo treatment (if any): filter, crop style, masking, blend mode76- Illustration integration method77- Decorative elements (patterns, stickers, stamps, badges)7879#### 3.7 Copy & Tone / 文案风格80- Headline tone (formal, playful, poetic, provocative, minimal)81- Information density (sparse / moderate / dense)82- Language register and word choice style83- CTA style if present8485#### 3.8 Spacing & Rhythm / 间距与节奏86- Overall density (airy / balanced / compact)87- White space usage pattern88- Repetition / rhythm of elements89- Breathing room between sections9091### Step 4: Generate Replication Prompt9293Based on the extracted DNA, generate **a single, self-contained replication prompt** in this format:9495```markdown96## Replication Prompt / 复刻指令9798### Visual Brief99[1-2 sentence summary of the overall visual identity]100101### Specifications102- **Layout**: [composition description]103- **Color palette**: [hex values with roles]104- **Typography**: [font styles, hierarchy]105- **Style**: [era, mood, shape language]106- **Texture**: [material feel, effects]107- **Imagery**: [photo/illustration treatment]108- **Spacing**: [density, rhythm]109- **Copy tone**: [voice, register]110111### When Applying to [user's target scenario]112[Specific adaptation notes for the user's stated scenario.113 What to keep exactly, what to adjust, what to substitute.]114115### AI Image Generation Version (English)116[If applicable: a condensed English prompt optimized for117 Midjourney / DALL-E / Flux / Stable Diffusion style,118 under 200 words, focusing on visual descriptors]119```120121### Step 5: Deliver122123Output the full Design DNA analysis + Replication Prompt as a single Markdown document.124125If the user specified a target scenario in Step 2, include concrete adaptation guidance.126If they said "先提取", skip the adaptation section and note they can come back to apply it later.127128## Output Rules129130- Color values MUST include hex codes, not just names131- Font identification: name the font if recognizable, otherwise describe the style precisely132- All section headers in **中英双语** format133- Technical terms in English, descriptions in Chinese134- Be specific over generic: "12px letter-spacing, tight leading" > "modern typography"135- The Replication Prompt should be **copy-pasteable** as a standalone brief136137## No Scripts Needed138139This skill is pure visual analysis. No Python scripts, no CLI tools.140141## Runtime context (shared)142143运行前读取本 Skill 包的 `skill.yaml`,由宿主提供 `skill-runtime/v1` 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。144145- 只使用 Manifest 声明的字段;Profile 保存公开品牌事实,Preferences 保存个人工作偏好。146- `required: true` 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。147- 报错提供可复制的 `context_id`、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。148149## 通用反馈闭环150151用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:1521531. 先判断意见是 `task-specific`(仅本次)还是 `reusable`(可跨任务复用)。1542. `task-specific` 只修改当前任务,不改 Skill。1553. `reusable` 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。1564. 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。1575. `reusable` 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。