Skill站外收录 @skilllib/skill-2117939930272420534
vision
提供图像内容理解能力,支持对用户提供的本地图片或网络图片进行描述、文字识别、错误诊断、图表解析及界面分析,通过调用外部视觉模型实现无原生视觉条件下的多模态感知。
AI 技能
Skills.MD
# Vision (delegated image understanding)
You do not have native vision, but you can still "see" an image by running the
bundled script, which sends the image to a configurable OpenAI-compatible vision
model and returns a text answer.
## When to use
Use this skill whenever a task requires understanding image content and you
cannot view it directly, for example:
- The user uploads or points to an image / screenshot / photo and asks what's in it.
- You need to read text inside an image (OCR).
- You need to diagnose an error from a screenshot.
- You need to understand a UI mockup, diagram, chart, or scanned document.
- You need to compare what an image shows against code or expected output.
## How to use
Run the script with the Bash tool. Pass the image (local path or http(s) URL)
and a clear, specific instruction describing what you need to know:
```bash
python3 "$CLAUDE_SKILL_DIR/scripts/see.py" <image_path_or_url> "your question"
```
If `$CLAUDE_SKILL_DIR` is not set in your environment, use the relative path to
this skill folder, e.g. `python3 scripts/see.py ...` from the skill directory,
or the absolute path where the skill is installed.
Examples:
```bash
# Describe an image
python3 scripts/see.py ./photo.jpg "Describe this image in detail"
# OCR — extract text
python3 scripts/see.py ./receipt.png "Transcribe all text exactly, preserving layout"
# Diagnose an error screenshot
python3 scripts/see.py ./error.png "What error is shown and what is the likely cause?"
# Read a chart into structured data
python3 scripts/see.py ./chart.png "Extract every series, label, and value as a markdown table"
# Remote image
python3 scripts/see.py "https://example.com/diagram.png" "Explain this architecture diagram"
```
The script prints the model's answer to stdout. Read that answer and use it to
continue the task. Ask a focused question rather than a generic "describe" when
you need something specific (a value, a status, an error message) — you get
better results and spend fewer tokens.
## Configuration (required, set once)
The script reads its config from environment variables **or** a
`.claude/settings.json` `env` block (same variable names as the
vision-mcp-server MCP, so config carries over). Resolution order: an explicit
environment variable wins; otherwise the script reads `.claude/settings.json`,
searching from the current directory upward and then `~/.claude/`.
| Variable | Required | Example |
| --- | --- | --- |
| `VISION_BASE_URL` | yes | `http://localhost:1234/v1/chat/completions` |
| `VISION_MODEL` | yes | `Qwen3-VL-32B`, `gpt-4o`, `glm-4v`, ... |
| `VISION_API_KEY` | no* | your API key (*optional for local servers) |
| `VISION_MAX_TOKENS` | no | `4096` |
| `VISION_TEMPERATURE` | no | `0.2` |
| `VISION_DETAIL` | no | `auto` \| `low` \| `high` |
| `VISION_TIMEOUT` | no | `120` |
> `VISION_BASE_URL` must be the **full** chat-completions endpoint
> (`.../v1/chat/completions`), not just the base URL.
Set them in your shell profile, or in the MCP/agent `env` block, or inline:
```bash
export VISION_BASE_URL=http://localhost:1234/v1/chat/completions
export VISION_MODEL=Qwen3-VL-32B
export VISION_API_KEY=sk-... # optional for local
```
Or put them in `.claude/settings.json` (project-level, or global `~/.claude/`):
```jsonc
{
"env": {
"VISION_BASE_URL": "http://localhost:1234/v1/chat/completions",
"VISION_MODEL": "Qwen3-VL-32B",
"VISION_API_KEY": "sk-..."
}
}
```
## Notes
- Pure Python standard library — no `pip install` needed.
- Local files are auto-converted to a base64 data URL; http(s) URLs are passed through.
- If the script reports a missing variable or an unreachable endpoint, fix the
config above and retry. Add `--dry-run` to inspect the request without sending it:
`python3 scripts/see.py --dry-run img.png "test"`.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「vision」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次