vision-support

vision-support

Provides image recognition capabilities for text-only models (such as deepseek-v4-pro, GLM-5.1, mimo-v2.5-pro, etc.). Automatically triggered when the primary model cannot parse images, when a user attaches screenshots/designs/UI mockups for analysis, or when a user says 'look at this image', 'analyze this screenshot', or 'what is wrong with this image'. Also applies to any scenario where a user pastes an image but the current model lacks vision capabilities. Supports analyzing multiple images simultaneously, with fallback capabilities configured across multiple vision models. Can also be manually invoked using /skill:vision-support or /vision. Iron rule: Models configured for this skill are strictly for image content recognition and must never participate in primary logical reasoning. Note: If the active model natively supports multimodal input (such as Claude Sonnet 4, GPT-4o, or Gemini), do not use this skill; let the primary model handle the image directly.

12stars
1forks
Updated 9/20/2026
SKILL.md
read-only
name
vision-support
description

Provides image recognition capabilities for text-only models (such as deepseek-v4-pro, GLM-5.1, mimo-v2.5-pro, etc.). Automatically triggered when the primary model cannot parse images, when a user attaches screenshots/designs/UI mockups for analysis, or when a user says 'look at this image', 'analyze this screenshot', or 'what is wrong with this image'. Also applies to any scenario where a user pastes an image but the current model lacks vision capabilities. Supports analyzing multiple images simultaneously, with fallback capabilities configured across multiple vision models. Can also be manually invoked using /skill:vision-support or /vision. Iron rule: Models configured for this skill are strictly for image content recognition and must never participate in primary logical reasoning. Note: If the active model natively supports multimodal input (such as Claude Sonnet 4, GPT-4o, or Gemini), do not use this skill; let the primary model handle the image directly.

Vision Support — Image Recognition Bridge for Non-Multimodal Models

Iron Rule: All models configured in this skill are strictly used for image content recognition and must never participate in primary logical reasoning.
These models will not perform decision-making, analysis, or coding on behalf of the primary model. Their sole responsibility is to "see" the image and describe its contents in text.

When to Use This Skill

  • The user attaches an image in the conversation, but the active model does not support image understanding
  • The user mentions a screenshot/image/UI/design: "Look at this screenshot", "There's an issue with the UI", "Analyze this design mockup"
  • The user describes a visual problem unclearly: "The webpage isn't displaying correctly", "The layout is broken"
  • The agent encounters an image file (PNG/JPG/WebP, etc.) during execution
  • Manual invocation via the /vision or /skill:vision-support commands

First-Time Setup — One-Click Initialization

node SKILL_DIR/scripts/vision.mjs init

Interactive wizard in three simple steps:

  1. Select Provider — Choose from a preconfigured list of popular platforms
  2. Enter Credentials — Input your API Key (or environment variable name)
  3. Select Model — Automatically fetches the available model list from the API for selection (displays a recommended list if fetching fails)

Supported platforms cover major global and domestic providers:

Category Platforms
Global OpenAI, Google Gemini, Anthropic Claude, DeepSeek, Groq, Mistral, xAI (Grok), OpenRouter, Fireworks AI
Domestic Qwen VL, Zhipu GLM (GLM-4V), Moonshot (Kimi), StepFun, MiniMax, SiliconFlow, Xiaomi MiMo
Local Ollama, LM Studio
Custom Any OpenAI-compatible third-party provider (enter custom baseUrl)

Adding a Backup Model

node SKILL_DIR/scripts/vision.mjs config add

Follows the same interactive setup. Added models serve as fallbacks and are automatically attempted if the primary model fails.

Configuration Commands

# Interactive
node SKILL_DIR/scripts/vision.mjs init                    # Initialize primary model
node SKILL_DIR/scripts/vision.mjs config add              # Add a fallback model
node SKILL_DIR/scripts/vision.mjs config edit [name]      # Edit model configuration

# Shortcuts
node SKILL_DIR/scripts/vision.mjs config list             # List all configured models
node SKILL_DIR/scripts/vision.mjs config primary [name]   # Set primary model
node SKILL_DIR/scripts/vision.mjs config remove <name>    # Remove a model
node SKILL_DIR/scripts/vision.mjs config set-key <name> <key>   # Set API key
node SKILL_DIR/scripts/vision.mjs config set-url <name> <url>   # Set API URL
node SKILL_DIR/scripts/vision.mjs config test [name]      # Test connectivity

Usage — Image Recognition

Single Image

node SKILL_DIR/scripts/vision.mjs ./screenshot.png
node SKILL_DIR/scripts/vision.mjs ./ui.png "What is wrong with the layout of this UI?"
node SKILL_DIR/scripts/vision.mjs "https://example.com/img.png" "Describe this image"

Multiple Images

node SKILL_DIR/scripts/vision.mjs img1.png img2.png "Compare the differences between these two images"
node SKILL_DIR/scripts/vision.mjs ./screenshots/*.png "Analyze these UI screenshots"
node SKILL_DIR/scripts/vision.mjs ./local.png https://example.com/remote.jpg "Describe both of these"

Locating Images

If the user mentions an image but provides no path, search for candidate files first:

find . -name "*.png" -o -name "*.jpg" -o -name "*.webp" | head -20
ls -lt *.png *.jpg *.webp 2>/dev/null

Workflow After Obtaining Results

The plain text output sent to stdout upon script success is the vision analysis result (stderr logs do not interfere).

  1. Read Recognition Result: Use the text output from stdout as the image description
  2. Combine with User Query: Merge the image description with the user's request
  3. Primary Model Execution: Use the description as context to let the primary model complete the main task

Fallback Mechanism

The primary model marked with ★ in config list is called first. If it fails, configured fallback models are tried sequentially. If all models fail, the process exits with a non-zero exit code.

Environment Variables

Variable Description
VISION_CONFIG_PATH Custom configuration file path
VISION_DEFAULT_MODEL Temporarily override the primary model (matched by name)
VISION_API_KEY Global fallback API key