gemini-visual
БесплатноЗапускает вложенные скриптыНе проверенVisual and front-end development assistant powered by Google Gemini's multimodal models. Use for UI analysis, design comparison, accessibility audits, color…
Об этом скилле
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-genaipackageGEMINI_API_KEYenvironment variable
Installation
pip install google-genai
Getting an API Key
- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- 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-flashorgemini-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
Установить gemini-visual в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gemini-visual?
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.
Как установить скилл gemini-visual?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gemini-visual запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic