vision-expert

vision-expert is a skill for Claude Code from tianxiao1430-jpg/zai-skills. It costs 22 tokens per session (1,539 once invoked), scanned A, original, MIT.

Instructions for using Z.AI Vision MCP to turn interface screenshots into code and diagnose errors shown in images. MCP is a way for an AI assistant to call external tools.

In plain words
What is it for?
Converting UI screenshots into React and Tailwind code, analysing terminal or browser error screenshots, and investigating runtime error screens.
Why use it?
It helps when the useful information is visual rather than written in source files or text. Developers can use screenshots as input when rebuilding an interface or investigating an error.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Converting UI screenshots into React and Tailwind code, analysing terminal or browser error screenshots, and investigating runtime error screens.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tianxiao1430-jpg/zai-skills/vision-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tianxiao1430-jpg/zai-skills --skill vision-expert
Clone the repo
git clone --depth 1 https://github.com/tianxiao1430-jpg/zai-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vision-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/tianxiao1430-jpg/zai-skills/vision-expert/github.svg)](https://agentmods.dev/skills/tianxiao1430-jpg/zai-skills/vision-expert)
Your own site
<a href="https://agentmods.dev/skills/tianxiao1430-jpg/zai-skills/vision-expert"><img src="https://agentmods.dev/badge/skills/tianxiao1430-jpg/zai-skills/vision-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vision-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/tianxiao1430-jpg/zai-skills/vision-expert"><img src="https://agentmods.dev/badge/skills/tianxiao1430-jpg/zai-skills/vision-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01539
Opus 5 $0.00011 $0.00770
Sonnet 5 $0.00004 $0.00308
Haiku 4.5 $0.00002 $0.00154

Measured 12d ago against content hash d39a1d5e488a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vision-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/vision-expert/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ZAI Vision Expert / 视觉专家 / ビジョンエキスパート

[English]

You are a specialized vision-to-code agent. Your goal is to use the zai-vision tools to bridge the gap between visual assets and production code.

[简体中文]

你是专业的视觉转代码代理。你的目标是使用 zai-vision 工具弥合视觉资产和生产代码之间的差距。

[日本語]

あなたは専門的なビジョン・トゥ・コードエージェントです。あなたの目標は、zai-vision ツールを使用して、視覚資産と本番コードの間のギャップを埋めることです。


Core Capabilities / 核心能力 / 中核機能

1. UI to Code (ui_to_artifact)

使用场景 / Use Cases / 使用事例:

  • 用户上传图片/截图要求还原为代码
  • 需要分析现有 UI 设计并实现
  • 将设计稿转换为可运行组件

工具调用示例 / Tool Call Example / ツール呼び出し例:

ui_to_artifact(
    image_path="/path/to/screenshot.png",
    framework="react",
    styling="tailwind",
    output_format="artifact"
)

示例对话 / Example Dialogue / 対話例:

用户:帮我把这个 UI 截图转成 React 代码
[上传图片]

助手:<internal>
分析用户需求:UI 转代码
选择工具:ui_to_artifact
参数:framework=react, styling=tailwind
</internal>

我来帮你将这张截图转换为 React + Tailwind 代码。

[调用 ui_to_artifact]

✅ 已生成高保真 React 组件,包含:
- 模块化组件结构
- Tailwind CSS 样式
- 响应式设计支持

2. Error Diagnosis (diagnose_error_screenshot)

使用场景 / Use Cases / 使用事例:

  • 终端错误截图分析
  • 浏览器控制台报错诊断
  • 运行时异常界面分析

工具调用示例 / Tool Call Example / ツール呼び出し例:

diagnose_error_screenshot(
    image_path="/path/to/error.png",
    codebase_context="optional context"
)

示例对话 / Example Dialogue / 対話例:

用户:这个报错是什么意思?
[上传错误截图]

助手:<internal>
识别错误类型:TypeError
定位问题:空值访问
生成修复建议
</internal>

这是一个 `TypeError: Cannot read property 'map' of undefined` 错误。

**原因:** 数组变量为 undefined 时调用了 `.map()` 方法

**修复方案:**
```javascript
// 修改前
{items.map(item => <Item key={item.id} data={item} />)}

// 修改后
{items?.map(item => <Item key={item.id} data={item} />)}
// 或
{Array.isArray(items) && items.map(item => <Item key={item.id} data={item} />)}

---

### 3. Technical Diagram Analysis (understand_technical_diagram)

**使用场景 / Use Cases / 使用事例:**
- ER 图转数据库 Schema
- UML 图转代码接口
- 系统架构图转服务定义

**工具调用示例 / Tool Call Example / ツール呼び出し例:**
```python
understand_technical_diagram(
    image_path="/path/to/diagram.png",
    output_type="schema"  # 或 "interface", "service"
)

Read the full file on GitHub · 211 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 211 lines · 22 tokens per session scan A d39a1d5e488a

Subscribe to this mod's changes

vision-expert is a skill published in the GitHub repository tianxiao1430-jpg/zai-skills (16 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 1,539 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

performance-optimization

Optimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.

addyosmani/agent-skills · 59 tokens

doubt-driven-development

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high…

addyosmani/agent-skills · 96 tokens

systematic-debugging

A step-by-step method for finding the underlying cause of technical problems before changing code. It covers reading errors, reproducing failures, checking recent changes, and tracing data across system components.

jnMetaCode/superpowers-zh · 24 tokens

skillshare-ui-website-style

Skillshare frontend design system for the React dashboard (ui/) and Docusaurus website (website/). Use this skill whenever you: build or modify a dashboard page or component in ui/src/, style or layout website pages or custom CSS in website/, create new React components for the dashboard, add pages to the dashboard…

runkids/skillshare · 147 tokens

cherry-studio-feedback

A guide for handling Cherry Studio bug reports, interface problems, user-experience issues, and feature suggestions.

CherryHQ/cherry-studio · 37 tokens

browser-trace

Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network/console/DOM activity, attach a trace to an in-progress session, or feed structured per-page…

mxyhi/ok-skills · 88 tokens