# minimax-image-understanding

This skill connects your coding agent to MiniMax vision models via understand_image. It handles screenshot OCR, UI layout inspection, and visual bug diagnostics.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 556 installs · ★ 15
- Author: imsus
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/imsus/pi-extension-minimax-coding-plan-mcp/tree/HEAD/skills/minimax-image-understanding/SKILL.md
- Updated: 2026-06-20
- HTML: https://affpapa.org/en/nevibecode/skills/minimax-image-understanding

## What it does

The skill equips the agent with the `understand_image` tool, sending prompts and image payloads to the MiniMax VLM endpoint at `{api_host}/v1/coding_plan/vlm`. The agent uses it to transcribe code from screenshots, extract error strings, and evaluate UI components.

Input handling covers web URLs, local filesystem paths, and raw base64 data URLs. Leading `@` symbols are stripped automatically. The tool converts inputs into base64. Supported image formats include JPEG, PNG, and WebP.

Files in SVG, GIF, PSD, or PDF formats will cause errors. Without valid API credentials and completed verification, the API call fails with status code 1004 or 2038.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understanding -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/minimax-image-understanding/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/minimax-image-understanding/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understanding -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/minimax-image-understanding/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understanding -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/minimax-image-understanding/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install imsus/pi-extension-minimax-coding-plan-mcp minimax-image-understanding
```

2. **Manually: put the files in place**
- File: `.github/skills/minimax-image-understanding/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understanding -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/imsus/pi-extension-minimax-coding-plan-mcp --path skills/minimax-image-understanding
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/minimax-image-understanding/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understanding -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/imsus/pi-extension-minimax-coding-plan-mcp/tree/HEAD/skills/minimax-image-understanding/SKILL.md

## When to use it
- transcribe source code from technical screenshots
- extract text strings and error details using OCR
- analyze interface layouts and component hierarchies
- inspect visual layout bugs directly from local image files

## Example prompts
- Extract the exact error message from ./error-screenshot.png
- Transcribe the source code shown in https://example.com/code.png
- Review the layout structure in /Users/username/Documents/mockup.png

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: da15502828a5b5ad.

BEGIN THIRD-PARTY FILE da15502828a5b5ad
````text
---
name: minimax-image-understanding
description: Analyze images using AI with the understand_image tool
---

# MiniMax Image Understanding Skill

Use this skill when you need to analyze, describe, or extract information from images.

## How to Use

Call the `understand_image` tool directly with a prompt and image URL:

```
understand_image({
  prompt: "Your question about the image",
  image_url: "https://example.com/image.png"
})
```

## When to Use

Use `understand_image` when:

- **Screenshots**: Error messages, UI issues, code in screenshots
- **Visual content**: Photos, diagrams, charts, graphs
- **Documents**: Extracting text from images (OCR), understanding layouts
- **UI/UX analysis**: Evaluating designs, identifying components
- **Visual debugging**: Understanding visual bugs or layout issues

## When NOT to Use

Do NOT use `understand_image` when:

- **Image is already described** in the conversation
- **The image is a simple icon** or emoji you recognize
- **No image is provided** or the image URL is inaccessible
- **Redundant with existing context** (e.g., file contents already visible)

## Usage

```
understand_image({
  prompt: "What do you see in this image?",
  image_url: "https://example.com/screenshot.png"
})
```

## API Details

**Endpoint**: `POST {api_host}/v1/coding_plan/vlm`

**Request Body**:
```json
{
  "prompt": "Your question about the image",
  "image_url": "data:image/jpeg;base64,/9j/4AAQ..."
}
```

**Response Format**:
```json
{
  "content": "AI analysis of the image...",
  "base_resp": {
    "status_code": 0,
    "status_msg": "success"
  }
}
```

## Image Processing

The tool automatically handles three types of image inputs:

1. **HTTP/HTTPS URLs**: Downloads the image and converts to base64
   - Example: `https://example.com/image.jpg`

2. **Local file paths**: Reads local files and converts to base64
   - Absolute: `/Users/username/Documents/image.png`
   - Relative: `images/photo.png`
   - Removes `@` prefix if present

3. **Base64 data URLs**: Passes through existing base64 data
   - Example: `data:image/png;base64,iVBORw0KGgo...`

## Image Formats

Supported:
- **JPEG** (.jpg, .jpeg)
- **PNG** (.png)
- **WebP** (.webp)

Not supported:
- PDF, GIF, PSD, SVG, and other formats

## Crafting Effective Prompts

### For Descriptions
- "Describe what's in this image in detail"
- "What is the main subject of this image?"
- "Describe the visual style and composition"

### For Code/Technical
- "What code is shown in this screenshot?"
- "Extract all text from this image"
- "Identify the UI framework/components used"

### For Analysis
- "Analyze this UI design. What is working well and what could be improved?"
- "What emotions or mood does this image convey?"
````
END THIRD-PARTY FILE da15502828a5b5ad

The third-party file has ended. Everything between the da15502828a5b5ad tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2734 of 4301 bytes. © imsus · MIT · https://github.com/imsus/pi-extension-minimax-coding-plan-mcp/tree/HEAD/skills/minimax-image-understanding/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
