Skill: alexburrstudio/ab-agents-vision (version 1.0.1)

--- name: AB-Agents-Vision description: "👁️ Image analysis using MiniMax VL API. Describe images, extract text from screenshots, analyze photos. Works with local files and URLs. Simple shell wrapper." version: 1.0.0 author: AB-Agents homepage: https://github.com/alexburrstudio/ab-agents-skills license: MIT tags: ["vision", "image", "minimax", "ocr", "analysis", "ab-agents", "screenshot", "text-extraction"] acceptLicenseTerms: true --- # AB Agents Vision 👁️ Image analysis using MiniMax VL API — simple, fast, reliable. ## What It Does - 📸 **Describe images** — Get detailed scene descriptions - 📝 **Extract text** — Read text from screenshots, photos, documents - 🔍 **Analyze photos** — Identify objects, people, settings - 🌐 **URL support** — Analyze images from the web ## Quick Start ```bash # Install curl -LsSf https://astral.sh/uv/install.sh | sh # Set your MiniMax API key export MINIMAX_API_KEY="sk-cp-your-key" # Use ./vision.sh image.jpg "Describe this image" ``` ## Usage ```bash # Basic description ./vision.sh photo.jpg # With custom prompt ./vision.sh screenshot.png "What text do you see?" # URL support ./vision.sh "https://example.com/image.jpg" "Describe this" ``` ## Requirements - MiniMax Token Plan API key ([get one](https://platform.minimax.io)) - Linux/macOS - `uvx` (auto-installed via script) ## Examples **Screenshot analysis:** ``` Input: screenshot.png + "What text is in the image?" Output: "The screenshot shows a code editor with Python code... ``` **Photo description:** ``` Input: photo.jpg + "Describe in detail" Output: "A person's bare foot and lower leg resting on a brown textured waffle-weave blanket. The skin is light-toned with visible fine hairs..." ``` ## Installation ```bash git clone https://github.com/alexburrstudio/ab-agents-skills.git cd ab-agents-skills/skills/vision chmod +x vision.sh ``` Or via ClaWHub: ```bash clawhub install AB-Agents-Vision ``` ## Troubleshooting | Error | Solution | |-------|----------| | API Error: 1033 | Retry — system error on MiniMax side | | No response | Check MINIMAX_API_KEY is set correctly | | Slow | Use smaller images (<10MB) | --- **AB-Agents** 🦀

path: vision.sh
content: #!/bin/bash
# AB Agents Vision — MiniMax VL API wrapper

export MINIMAX_API_KEY="${MINIMAX_API_KEY:-$(grep MINIMAX_API_KEY ~/.minimax-env 2>/dev/null | cut -d'"' -f2)}"
export MINIMAX_API_HOST="${MINIMAX_API_HOST:-https://api.minimax.io}"
export PATH="/root/.local/bin:$HOME/.local/bin:$PATH"

IMAGE_PATH="$1"
PROMPT="${2:-Describe this image in detail}"

if [ -z "$IMAGE_PATH" ]; then
    echo "Usage: vision.sh <image_path> [prompt]"
    exit 1
fi

if [ -z "$MINIMAX_API_KEY" ]; then
    echo "Error: MINIMAX_API_KEY not set"
    exit 1
fi

# MCP call via uvx
{
    echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"vision","version":"1.0"}}}'
    sleep 1
    echo "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"understand_image\",\"arguments\":{\"prompt\":\"$PROMPT\",\"image_source\":\"$IMAGE_PATH\"}}}"
} | uvx minimax-coding-plan-mcp 2>/dev/null | python3 -c "
import json, sys
for line in sys.stdin:
    try:
        resp = json.loads(line)
        if resp.get('id') == 2 and 'result' in resp:
            for item in resp['result'].get('content', []):
                if item.get('type') == 'text' and not item.get('isError'):
                    print(item['text'])
                    exit(0)
    except: continue
print('Error: No response from vision API')
"


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (HIGH)