vision

Delegates visual tasks from text-only models to vision-capable subagents in OpenCode.

29|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/WeZZard/opencode-vision --skill vision-wezzard
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: vision
Source: https://github.com/WeZZard/opencode-vision
Command: npx skills add https://github.com/WeZZard/opencode-vision --skill vision-wezzard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @opencode-ai/plugin, and includes scripts (resource) components.

What problem does it solve? Text-only orchestrator models like GLM 5.2 or DeepSeek cannot see screenshots, dropped images, or visual tool results, so they cannot answer layout, color, alignment, or visual-verification questions. This Skill routes those visual tasks to a dynamically registered vision-capable subagent and returns structured JSON findings the orchestrator can relay. ## Core Features & Use Cases - Visual Intent Detection: Recognizes explicit visual language, image attachments in user messages, screenshot tool results (chrome-devtools, Playwright, cua-driver), and gaps between text output and visual criteria. - Dynamic Model Discovery: Runs a bundled script that lists image-capable models from your configured OpenCode providers, lets the user pick one, and persists the choice across sessions. - Task-Specific JSON Contracts: Designs a minimal response template per visual task, delegates to a vision-* subagent, and parses/validates the returned JSON with retry on malformed output. - Use Case: After a browser tool returns /tmp/dashboard.png and the user asks "does the dashboard look right", the Skill delegates the screenshot to a vision subagent with a layout-focused JSON template and reports evidence-backed findings. ## Quick Start Ask the agent to visually verify that the page in the latest screenshot matches the design, and it will route the image to a vision subagent.

Frequently Asked Questions about vision

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I give a text-only model like GLM 5.2 vision capabilities in OpenCode?▼

Install the opencode-vision plugin with opencode plugin opencode-vision -g and configure at least one provider with an image-capable model. The plugin registers vision subagents and ships a skill that routes visual tasks to them automatically.

How does the vision skill choose which model to use?▼

It runs the bundled vision-models.mjs script, which lists image-capable models from your configured OpenCode providers and cached model catalog. You pick one from a capped shortlist, and the choice is persisted to ~/.config/opencode/vision-model-image.txt for future sessions.

Can I use the vision skill with screenshots from Playwright or chrome-devtools?▼

Yes. The skill detects image attachments in tool results from chrome-devtools_take_screenshot, playwright_browser_take_screenshot, and cua-driver tools. It prefers screenshots saved to file paths, since the vision subagent reads images from disk.

When should I not use the vision skill?▼

Do not use it when your main orchestrator model is already vision-capable, since native multimodality is the better path. Prepend "You MUST not use the vision skill" to your prompt to bypass it per task.

Why does the vision skill say no image-capable models are available?▼

The discovery script returns an empty list when no configured OpenCode provider exposes an image-capable model. Connect a provider in OpenCode, set its API-key environment variable, or configure enabled_providers or provider entries, then retry.