ui-analyse
БесплатноБез исполняемых скриптовНе проверенUI visual analysis patterns using Gemini 3 Pro Preview multimodal capabilities. Analysis-only - no code changes. Use dev:ui-implement for applying…
от MadAppGang★ 290 звёзд на GitHubОб этом скилле
UI Analysis Skill
Overview
This skill provides patterns for analyzing UI designs visually using Gemini 3 Pro Preview. It is analysis-only - for implementing improvements, use dev:ui-implement.
Relationship to Other Skills
| Skill | Purpose | Modifies Code? |
|---|---|---|
| dev:ui-analyse | Visual analysis, issue detection | No |
| dev:ui-implement | Apply improvements from analysis | Yes |
| dev:ui-style-format | Style file specification | No |
| dev:design-references | Reference image management | No |
Provider Selection
Detection Logic
detect_gemini_provider() {
# Priority 1: Gemini Direct API (lowest latency)
if -n "$GEMINI_API_KEY"; then
echo "g/gemini-3-pro-preview"
return 0
fi
# Priority 2: OpenRouter (requires or/ prefix)
if -n "$OPENROUTER_API_KEY"; then
echo "or/google/gemini-3-pro-preview"
return 0
fi
# Priority 3: Vertex AI
if -n "$GOOGLE_APPLICATION_CREDENTIALS"; then
echo "vertex/gemini-3-pro-preview"
return 0
fi
# Priority 4: Gemini OAuth (check claudish)
if npx claudish --list-accounts 2>/dev/null | grep -q "gemini"; then
echo "g/gemini-3-pro-preview"
return 0
fi
# No provider
return 1
}
Model Prefix Reference
| Prefix | Provider | Env Var | Notes |
|---|---|---|---|
g/ |
Gemini Direct | GEMINI_API_KEY | Lowest latency |
or/ |
OpenRouter | OPENROUTER_API_KEY | Avoids google/ collision |
vertex/ |
Vertex AI | GOOGLE_APPLICATION_CREDENTIALS | Enterprise |
Error Messages by Provider
| Provider | Missing | Error Message | Setup Instructions |
|---|---|---|---|
| gemini_direct | GEMINI_API_KEY | "Gemini API key not found" | export GEMINI_API_KEY="your-key" from aistudio.google.com |
| openrouter | OPENROUTER_API_KEY | "OpenRouter API key not found" | export OPENROUTER_API_KEY="your-key" from openrouter.ai |
| vertex_ai | GOOGLE_APPLICATION_CREDENTIALS | "Google Cloud credentials not configured" | gcloud auth application-default login |
| gemini_oauth | OAuth session | "No Gemini OAuth session" | claudish auth gemini |
Analysis Patterns
Pattern 1: Quick Usability Scan
Analyze this UI screenshot for usability issues.
**Focus Areas**:
1. Visual hierarchy - Is the most important content prominent?
2. Affordances - Do interactive elements look clickable?
3. Consistency - Do similar elements behave similarly?
**Output**: Top 5 issues with severity and location.
Usage:
npx claudish --model "$GEMINI_MODEL" --image "$SCREENSHOT_PATH" --quiet --auto-approve <<< "
Analyze this UI screenshot for usability issues.
Focus Areas:
1. Visual hierarchy - Is the most important content prominent?
2. Affordances - Do interactive elements look clickable?
3. Consistency - Do similar elements behave similarly?
Output: Top 5 issues with severity and location."
Pattern 2: Accessibility Audit
Audit this UI for WCAG 2.1 AA compliance.
**Checklist**:
- [ ] Text contrast >= 4.5:1 (WCAG 1.4.3)
- [ ] Non-text contrast >= 3:1 (WCAG 1.4.11)
- [ ] Touch targets >= 44x44px (WCAG 2.5.5)
- [ ] Focus visible (WCAG 2.4.7)
**Output**: Pass/Fail per criterion with evidence.
Usage:
npx claudish --model "$GEMINI_MODEL" --image "$SCREENSHOT_PATH" --quiet --auto-approve <<< "
Audit this UI for WCAG 2.1 AA compliance.
Checklist:
- Text contrast >= 4.5:1 (WCAG 1.4.3)
- Non-text contrast >= 3:1 (WCAG 1.4.11)
- Touch targets >= 44x44px (WCAG 2.5.5)
- Focus visible (WCAG 2.4.7)
Output as: Pass/Fail per criterion with visual evidence."
Pattern 3: Anti-AI Design Audit
Analyze this UI for "AI-generated" patterns that should be avoided.
**Check for**:
1. Rigid symmetric grids (should be asymmetric)
2. Flat solid colors (should have gradients/texture)
3. Generic typography (should have dramatic hierarchy)
4. Static elements (should have micro-interactions)
5. Default Tailwind colors (should be bespoke palette)
**Output**: List violations with specific recommendations.
Usage:
npx claudish --model "$GEMINI_MODEL" --image "$SCREENSHOT_PATH" --quiet --auto-approve <<< "
Analyze this UI for AI-generated patterns that should be avoided.
Check for:
1. Rigid symmetric grids (should be asymmetric)
2. Flat solid colors (should have gradients/texture)
3. Generic typography (should have dramatic hierarchy)
4. Static elements (should have micro-interactions)
5. Default Tailwind colors (should be bespoke palette)
List each violation found with specific recommendations for improvement."
Pattern 4: Comparative Analysis
Compare these two images:
- Image 1: Design reference
- Image 2: Implementation
**Validate**:
1. Layout accuracy
2. Color fidelity
3. Typography matching
4. Spacing precision
5. Component rendering
**Output**: Match score (1-10) and deviation list.
Usage: ```
Установить ui-analyse в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ui-analyse?
UI visual analysis patterns using Gemini 3 Pro Preview multimodal capabilities. Analysis-only - no code changes. Use dev:ui-implement for applying improvements. Includes provider detection, prompting patterns, and severity guidelines.
Как установить скилл ui-analyse?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ui-analyse запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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