Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

gemini-visual

FreeRuns bundled scriptsNot checked

Visual and front-end development assistant powered by Google Gemini's multimodal models. Use for UI analysis, design comparison, accessibility audits, color…

ckorhonenby ckorhonen★ 35 GitHub stars4 installs in other catalogs

About this skill

Gemini Visual - Front-End & Visual Development Assistant

Overview

A comprehensive toolkit leveraging Google Gemini's advanced visual reasoning capabilities for front-end development and design tasks. Gemini provides state-of-the-art multimodal understanding with spatial reasoning, document understanding, and high-resolution image processing.

When to Use

  • UI/UX Analysis: Analyze screenshots for layout issues, visual hierarchy, and design patterns
  • Accessibility Audits: Check contrast ratios, text readability, and WCAG compliance
  • Design Comparison: Compare mockups, before/after screenshots, or different design variations
  • Color Palette Extraction: Extract colors from images with HEX, RGB, and HSL values
  • Screenshot to Code: Generate HTML/CSS from design screenshots
  • UI Asset Generation: Create icons, backgrounds, gradients, and UI graphics
  • Responsive Design Review: Analyze multi-device screenshots for consistency
  • Visual Debugging: Identify rendering issues, broken layouts, or visual bugs
  • Design from Brief: Generate designs, code, and components from text descriptions
  • Interactive Design Sessions: Multi-turn conversations for iterative design refinement

Prerequisites

  • Python 3.9+
  • google-genai package
  • GEMINI_API_KEY environment variable

Installation

pip install google-genai

Getting an API Key

  1. Go to Google AI Studio
  2. Sign in with your Google account
  3. Click "Create API Key"
  4. Copy the key and set it as an environment variable:
export GEMINI_API_KEY="your-api-key"

Add to your shell profile (~/.zshrc or ~/.bashrc) for persistence:

echo 'export GEMINI_API_KEY="your-api-key"' >> ~/.zshrc

Scripts Overview

Script Purpose
analyze_ui.py Analyze UI screenshots for issues, patterns, and suggestions
generate_ui_assets.py Generate icons, backgrounds, and UI graphics
compare_designs.py Compare two designs and highlight differences
extract_colors.py Extract color palettes from images
screenshot_to_code.py Convert screenshots to HTML/CSS code
design_from_brief.py Generate designs and code from text briefs (no image required)

Available Models

Model Best For Notes
gemini-2.5-flash Visual analysis, code generation, fast reasoning Best cost/quality for analysis
gemini-2.5-pro Complex visual reasoning, code generation Highest quality analysis
gemini-2.5-flash-image Asset generation, image editing Native image output
gemini-nano-banana-2.1 High-quality image generation, 4K output Fast iteration
gemini-3-pro-image Professional image generation Asset generation default

Note: For image analysis tasks (analyze_ui, compare_designs, screenshot_to_code, extract_colors), use the text+vision models (gemini-2.5-flash or gemini-2.5-pro). For image generation tasks (generate_ui_assets), use the image-output models.

Media Resolution Options

Control token usage and detail level with --resolution:

Resolution Tokens/Image Best For
low 70 Quick scans, thumbnails
medium 560 Standard screenshots, OCR
high 1120 Detailed UI analysis
ultra_high 2240+ Fine text, complex layouts

Script Reference

1. analyze_ui.py - UI Analysis

Analyze UI screenshots for design issues, accessibility problems, and improvement suggestions.

python scripts/analyze_ui.py [options] IMAGE

Required:
  IMAGE                    Path to UI screenshot to analyze

Options:
  -m, --mode MODE          Analysis mode (default: comprehensive)
                           Modes: comprehensive, accessibility, layout, ux
  -r, --resolution RES     Media resolution (default: high)
  -o, --output FILE        Save analysis to file (JSON or text)
  -f, --format FORMAT      Output format: text, json, markdown (default: text)
  --thinking LEVEL         Thinking level: low, high (default: high)
  -v, --verbose            Show detailed progress

Examples:

# Comprehensive UI analysis
python scripts/analyze_ui.py screenshot.png

# Accessibility-focused analysis
python scripts/analyze_ui.py -m accessibility app_screen.png

# Layout analysis with JSON output
python scripts/analyze_ui.py -m layout -f json -o report.json mockup.png

# Quick UX review
python scripts/analyze_ui.py -m ux --thinking low mobile_app.png

Analysis Modes:

  • comprehensive: Full analysis including layout, colors, typography, accessibility, and UX
  • accessibility: WCAG compliance, contrast ratios, screen reader compatibility, touch targets
  • layout: Visual hierarchy, spacing, alignment, responsive issues
  • ux: User flow, affordances, cognitive load, interaction patterns

2. generate_ui_assets.py - Asset Generation

Full SKILL.md on GitHub

Install gemini-visual in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

scripts/analyze_ui.pyscripts/compare_designs.pyscripts/design_from_brief.pyscripts/extract_colors.pyscripts/generate_ui_assets.pyscripts/screenshot_to_code.py

FAQ

What does the gemini-visual skill do?

Visual and front-end development assistant powered by Google Gemini's multimodal models. Use for UI analysis, design comparison, accessibility audits, color palette extraction, screenshot-to-code conversion, generating UI assets, and text-based design assistance from briefs.

How do I install the gemini-visual skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the gemini-visual skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare gemini-visual with