AgentSkillsCN

visual-analysis

在分析图像、截图、UI 原型图或视觉内容以提取信息、对比设计方案,或评估色彩、字体、布局等视觉属性时使用

SKILL.md
--- frontmatter
name: visual-analysis
description: Use when analyzing images, screenshots, UI mockups, or visual content for extracting information, comparing designs, or assessing visual properties like colors, typography, and layout

Visual Analysis Skill

Analyze images, screenshots, and visual content.

When to Use

  • Analyzing UI mockups or screenshots
  • Extracting information from images
  • Comparing visual designs
  • Quick visual assessments

Quick Mode

Fast, focused analysis for specific questions.

Prompt pattern:

code
Analyze this image: [attach image]
[specific question]

Examples:

  • "What text is visible in this UI?"
  • "List all colors used with their hex values"
  • "Identify all interactive elements"

Deep Mode

Comprehensive analysis with structured output.

Prompt pattern:

code
Analyze this image comprehensively:

1. CONTENT INVENTORY
   - All UI elements present
   - Text content
   - Icons and imagery

2. VISUAL PROPERTIES
   - Color palette (hex values)
   - Typography (fonts, sizes, weights)
   - Spacing patterns
   - Layout structure

3. OBSERVATIONS
   - Design patterns used
   - Potential issues
   - Notable features

Output as structured markdown.

Common Analysis Patterns

UI Component Analysis

code
Analyze this UI component:

1. Component type and purpose
2. Visual states (hover, focus, disabled)
3. Accessibility considerations
4. Props/variants needed
5. Similar patterns in common UI libraries

Screenshot Comparison

code
Compare these two images:

1. Visual differences (be specific about location)
2. Missing elements
3. Spacing/sizing discrepancies
4. Color accuracy
5. Priority fixes ranked by visual impact

Color Extraction

code
Extract all colors from this image.

Output as JSON:
{
  "primary": ["#hex1", "#hex2"],
  "secondary": ["#hex3"],
  "neutral": ["#hex4", "#hex5"],
  "accent": ["#hex6"]
}

Include approximate usage percentage for each color.

Layout Analysis

code
Analyze the layout structure:

1. Grid system (columns, gutters)
2. Container widths
3. Section divisions
4. Responsive breakpoint hints
5. Flexbox vs Grid recommendations

Output CSS/Tailwind structure.

Output Formats

  • Markdown (default): Structured text
  • JSON: For design tokens
  • Code: Direct implementation

Storage

Save findings to .opencode/memory/design/analysis/

Related Skills

NeedSkill
Found accessibility issuesaccessibility-audit
Need to implement designmockup-to-code
Want design tokensdesign-system-audit
Need aesthetic improvementsfrontend-design