Best for
- Use when analyzing images, answering visual questions, detecting objects, or processing documents with vision.
einverne/dotfiles/claude/skills/gemini-vision/SKILL.md
Guide for implementing Google Gemini API image understanding - analyze images with captioning, classification, visual QA, object detection, segmentation, and multi-image comparison. Use when analyzing images, answering visual questions, detecting objects, or processing documents with vision.
Decision brief
This skill enables Claude to use Google's Gemini API for advanced image understanding tasks including captioning, classification, visual question answering, object detection, segmentation, and multi-image analysis.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/einverne/dotfiles --skill "claude/skills/gemini-vision"Inspect the Agent Skill "gemini-vision" from https://github.com/einverne/dotfiles/blob/7d18cf4fefdeec05853c7420cc0499dde1e88b27/claude/skills/gemini-vision/SKILL.md at commit 7d18cf4fefdeec05853c7420cc0499dde1e88b27. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Get API Key: Obtain from Google AI Studio 2. Install SDK: pip install google-genai (Python 3.9+)
Review the “Usage Examples” section in the pinned source before continuing.
When implementing Gemini vision features:
1. Get API Key: Obtain from Google AI Studio 2. Install SDK: pip install google-genai (Python 3.9+)
The skill checks for GEMINIAPIKEY in this order:
Permission review
The documentation asks the agent to run terminal commands or scripts.
python scripts/analyze-image.py path/to/image.jpg "What's in this image?"The documentation includes network, browsing, or remote request actions.
python scripts/analyze-image.py https://example.com/image.jpg "Describe this"The documentation asks the agent to run terminal commands or scripts.
python scripts/analyze-image.py https://example.com/image.jpg "Describe this"The documentation asks the agent to create, modify, or delete local files.
# Delete fileThe documentation asks the agent to create, modify, or delete local files.
python scripts/manage-files.py delete file-idThe documentation includes sending, uploading, or posting data to a remote service.
Upload large files via File APIThe documentation includes network, browsing, or remote request actions.
Upload large files via File APIThe documentation includes sending, uploading, or posting data to a remote service.
**upload-file.py**: Upload files to Gemini File APIEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 88/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 119 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
This skill enables Claude to use Google's Gemini API for advanced image understanding tasks including captioning, classification, visual question answering, object detection, segmentation, and multi-image analysis.
pip install google-genai (Python 3.9+)The skill checks for GEMINI_API_KEY in this order:
Process environment variable (recommended)
export GEMINI_API_KEY="your-api-key"
Skill directory: .claude/skills/gemini-vision/.env
GEMINI_API_KEY=your-api-key
Project directory: .env or .gemini_api_key in project root
Security: Never commit API keys to version control. Add .env to .gitignore.
# Analyze a local image
python scripts/analyze-image.py path/to/image.jpg "What's in this image?"
# Analyze from URL
python scripts/analyze-image.py https://example.com/image.jpg "Describe this"
# Specify model
python scripts/analyze-image.py image.jpg "Caption this" --model gemini-2.5-pro
python scripts/analyze-image.py image.jpg "Detect all objects" --model gemini-2.0-flash
python scripts/analyze-image.py img1.jpg img2.jpg "What's different between these?"
# Upload file
python scripts/upload-file.py path/to/large-image.jpg
# Use uploaded file
python scripts/analyze-image.py file://file-id "Caption this"
# List uploaded files
python scripts/manage-files.py list
# Get file info
python scripts/manage-files.py get file-id
# Delete file
python scripts/manage-files.py delete file-id
Images consume tokens based on size:
Token Formula:
crop_unit = floor(min(width, height) / 1.5)
tiles = (width / crop_unit) × (height / crop_unit)
total_tokens = tiles × 258
Example: 960×540 image = 6 tiles = 1,548 tokens
Limits vary by tier (Free, Tier 1, 2, 3):
Common errors:
See the references/ directory for:
When implementing Gemini vision features:
All scripts support the 3-step API key lookup:
Run any script with --help for detailed usage instructions.
Official Documentation: https://ai.google.dev/gemini-api/docs/image-understanding
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
JasonColapietro/suede-creator-skills
Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).
narrative-io/narrative-skills-marketplace
Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "
notque/vexjoy-agent
Generate rich self-contained HTML artifacts instead of markdown. Auto-detects artifact shape (spec, code-review, prototype, report, editor, data-viz, diagram, deck) and loads shape-specific patterns. Bundles Birchline design system with 4 theme presets. Use for "make HTML", "as HTML", "HTML artifact", or auto-injected by router when output benefits from rich visualization.