microsoft/amplifier-bundle-skills/image-vision
Claude Code and agent skill by microsoft/amplifier-bundle-skills
- community
- verified
Checking that the SKILL.md file is still in the repository.
Analyze images using LLM vision APIs (Anthropic Claude, OpenAI GPT-4, Google Gemini, Azure OpenAI). Use when a task requires understanding image content, describing visual elements, answering questions about images, comparing images, or extracting text from images (OCR). Provides ready-to-use scripts.
Install
npx vskill@latest install microsoft/amplifier-bundle-skills/image-visionSKILL.md
Image Vision Analysis
Overview
Analyze images using state-of-the-art LLM vision models. Use the provided scripts for most tasks - custom code only needed for advanced scenarios.
Workflow Decision Tree
First time using this skill?
→ Read `setup.md` for one-time environment and API key setup
Simple image analysis (most common)
→ Use "Quick Start" canned scripts below
Batch processing or multi-turn conversations
→ Read `patterns.md` for advanced patterns
Something failing?
→ Check setup.md for troubleshooting
Quick Start (Use Wrapper Scripts)
ALWAYS use the wrapper scripts - they handle venv setup automatically:
The wrapper scripts automatically:
- Create venv if it doesn't exist
- Install required SDKs
- Use venv Python (no manual activation needed)
- Handle errors gracefully
Example usage:
Advanced: Direct Script Usage (Not Recommended)
If you need to call the Python scripts directly, you MUST use the venv Python:
For agents: Always use the wrapper scripts to avoid setup issues.
Provider Comparison
| Provider | Model | Best For | Speed | Cost | |
|---|---|---|---|---|---|
| Anthropic | claude-sonnet-4-5 | Latest, balanced quality/speed | Fast | $$ | |
| Anthropic | claude-3-opus | Highest quality (older) | Slow | $$$ | |
| Anthropic | claude-3-haiku | Fastest, simple tasks | Very Fast | $ | |
| OpenAI | gpt-5 | Latest flagship model | Fast | $$$ | |
| OpenAI | gpt-4.1 | High-volume production | Fast | $$ | |
| Gemini | gemini-2.5-flash | Latest, excellent balance | Very Fast | $ | |
| Gemini | gemini-2.5-pro | Large images, best quality | Medium | $$ | |
| Azure | (deployment-based) | Enterprise, compliance | Varies | Varies |
Supported Image Formats
- JPEG/JPG - Most common
- PNG - With transparency
- GIF - Static or animated (only the first frame is analyzed)
- WEBP - Modern format
Max sizes:
- Anthropic: 5MB per image
- OpenAI: 20MB (auto-resizes)
- Gemini: Varies by model (1.5 pro handles very large)
Common Use Cases
⚠️ Known Limitations for Web UI Analysis
Typography and Font Detection
Vision models struggle with precise typography at typical screenshot resolutions:
❌ Unreliable for:
- Distinguishing serif vs sans-serif fonts at small sizes (<16px)
- Identifying specific font families (Inter vs Roboto vs Arial)
- Detecting subtle weight differences (400 vs 500)
- Precise alignment measurements (<5px differences)
✅ Reliable for:
- High-level layout issues (spacing, hierarchy, colors)
- Large size differences (14px vs 24px heading sizes)
- Missing elements or obviously broken UI states
- Color contrast and accessibility problems
Best Practice: Multi-Modal Investigation
For Web UI bugs, use this hierarchy:
When to Stop Using Vision
If vision gives contradictory results across 2+ attempts on similar screenshots:
- Stop asking vision for more detailed analysis
- Switch to browser DevTools inspection (query computed styles)
- Use vision only for final verification after fix is applied
This indicates the issue is too subtle for vision models to detect reliably.
Prompt Patterns for Web UI
Font/Typography (with caveats):
Alignment (relative observations):
Layout and Spacing:
Output Format
All scripts output to stdout as plain text. The LLM's analysis is printed directly:
For structured output, modify your prompt:
When to Write Custom Scripts
Use the canned scripts for:
- ✅ Single image + single prompt analysis
- ✅ Quick one-off tasks
- ✅ Simple Q&A about images
Write custom scripts when you need:
- ❌ Batch processing (analyze 100 images)
- ❌ Multi-turn conversations (follow-up questions on same image)
- ❌ Custom output formatting (generate markdown reports)
- ❌ Image preprocessing (resize, crop, filter)
- ❌ Provider fallback logic (try Gemini, then Claude)
→ See `patterns.md` for custom script examples
Anti-Patterns
| ❌ Don't | ✅ Do | |
|---|---|---|
| Write custom script for simple analysis | Use canned scripts | |
| Use low-quality compressed images | Use clear, high-res images | |
| Ask vague questions | Be specific in prompts | |
| Forget to set API keys | Set keys in environment variables | |
| Mix up provider-specific model names | Check provider comparison table |
Quick Reference
| Task | Command | |
|---|---|---|
| Analyze (single provider) | ./vision-analyze.sh anthropic img.png "prompt" | |
| Analyze (auto-fallback) | ./vision-analyze-robust.sh img.png "prompt" | |
| Extract text (OCR) | ./vision-analyze.sh gemini img.png "Extract all text" | |
| Health check | ./health-check.sh | |
| Compare images | See patterns.md for custom script | |
| Batch process | See patterns.md for custom script |
⚠️ CRITICAL INSTRUCTIONS FOR AGENTS
READ THIS BEFORE USING THIS SKILL:
1. Always Use the Wrapper Scripts
Examples:
2. ALWAYS Check Exit Code Before Using Output
Exit codes are classified so callers get an honest failure signal instead of a catch-all (this distinction matters: a missing key and a slow provider need different fixes):
| Exit | Meaning | What to do | |
|---|---|---|---|
0 | Success | Use the output | |
1 | Usage error, or all configured providers failed (mixed/other errors) | Read stderr for the underlying error | |
3 | No vision provider configured (no API key present) | Set GOOGLE_API_KEY / ANTHROPIC_API_KEY / OPENAI_API_KEY (or AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT) | |
4 | provider_timeout — provider(s) present but every attempt timed out within the bounded timeout | Increase the timeout (3rd arg), use a smaller image, or a faster provider |
vision-analyze-robust.sh fails fast and clearly on exit 3/4 rather than hanging — a missing or slow provider surfaces immediately, not minutes later.
3. NEVER Fabricate Visual Observations
If vision analysis fails, you MUST:
✅ DO:
- Report failure explicitly to user
- Provide error details from stderr
- Ask user how to proceed (retry? different provider? skip visual analysis?)
- Wait for user direction before continuing
❌ NEVER:
- Write analysis documents without successfully seeing images
- Fabricate visual observations based on context/guesswork
- Guess pixel measurements or UI element details
- Pretend you analyzed screenshots you didn't actually see
- Continue with tasks that require visual inspection if vision failed
Example of CORRECT failure handling:
4. Timeout Considerations
Vision API calls typically take 5-60 seconds:
- Gemini Flash: 3-10s (fastest)
- Anthropic Claude: 5-15s
- OpenAI GPT-4: 8-20s
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 6 Mar 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/image-vision/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 17 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/amplifier-bundle-skills/image-vision)