This wraps Gemini Pro's vision API for analyzing images from the command line. You can extract text from screenshots, debug error messages, compare UI states, or pull code snippets out of images. The prompting examples are genuinely useful, especially the structured templates for OCR, UI analysis, and turning screenshots into bug reports. It's basically OCR plus understanding, so you get both the text and context about what you're looking at. Works well for those moments when you need to grab text from an image or quickly analyze what's happening in a screenshot without manually typing everything out. Quality depends on your image clarity, and you'll want to verify extracted text since no OCR is perfect.

skills.sh installs
1.2K
GitHub stars
27
last updated
Aug 21, 2026

Install

$ npx -y skills add johnlindquist/claude --skill gemini-image --agent claude-code

Installs into .claude/skills of the current project.

Files

Gemini Image Analysis

Analyze images using Gemini Pro's vision capabilities.

Prerequisites

pip install google-generativeai
export GEMINI_API_KEY=your_api_key

CLI Reference

Basic Image Analysis

# Analyze an image
gemini -m pro -f /path/to/image.png "Describe this image in detail"

# With specific question
gemini -m pro -f screenshot.png "What error message is shown?"

# Multiple images
gemini -m pro -f image1.png -f image2.png "Compare these two images"

Analysis Operations

General Description

gemini -m pro -f image.png "Describe this image comprehensively:
1. Main subject/content
2. Colors and composition
3. Text visible (if any)
4. Context and purpose
5. Notable details"

Extract Text (OCR)

gemini -m pro -f screenshot.png "Extract all text from this image.
Format as plain text, preserving layout where possible.
Include any text in buttons, labels, or UI elements."

Code from Screenshot

gemini -m pro -f code-screenshot.png "Extract the code from this screenshot.
Provide as properly formatted code with correct indentation.
Note any parts that are unclear or partially visible."

Sponsors

Details

Repository
github.com/johnlindquist/claude
Category
Design & UI/UX

More from johnlindquist/claude

All 7
1nexscope-ai avatarecommerce-brandingnexscope-ai/ecommerce-skillsBuild and strengthen your e-commerce brand identity. Brand positioning, messaging, visual identity guidelines, and brand consistency across sales channels and m1.2Kskills.sh installs
2vtex avatararchitecture-well-architected-commercevtex/skillsApply when scoping, reviewing, or documenting cross-cutting VTEX commerce architecture across storefront, IO, headless, marketplace, payments, or any other VTEX1.2Kskills.sh installs
3tencentcloudbase avatarspec-workflowtencentcloudbase/skillsUse when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclea1.2Kskills.sh installs
4jasonjgardner avatarblockbench-mcp-overviewjasonjgardner/blockbench-mcp-projectOverview of the Blockbench MCP server tools, resources, and prompts. Use to understand the full MCP capability set, learn how tools work together, or when start1.2Kskills.sh installs
5vtex avatarvtex-io-auth-and-policiesvtex/skillsApply when deciding or implementing permissions and authorization boundaries for VTEX IO apps. Covers manifest policies, outbound-access rules, least-privilege 1.2Kskills.sh installs
6vtex avatarvtex-io-client-integrationvtex/skillsApply when designing or implementing how a VTEX IO backend app integrates with VTEX services or external APIs through @vtex/api and @vtex/clients. Covers choosi1.2Kskills.sh installs