agentleFS
CaoMeiYouRenCaoMeiYouRen/vision-augment/SKILL.md

vision-augment

Skill0 starsChanged 12 days agoMITView on GitHub

视觉增强 MCP —— 为无视觉能力的 LLM(如 DeepSeek、GLM)提供看图、OCR 与文档解析。当用户需要分析图片/截图内容、识别图片中的文字、解析 docx/pdf/pptx/xlsx/html 文档时使用。工具:mcp_vision_augment_vision(task_type=reasoning|ocr|document)、mcp_vision_augment_health(环境探测)、mcp_vision_augment_clear_cache。

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. OliverMao/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Files
SKILL.md

vision-augment skill

为无视觉能力的 LLM 提供多模态能力(本地优先,视觉理解走视觉模型)。本 skill 负责使用引导:触发时机、环境探测与自动配置、MCP 调用方法;能力本体由 MCP server 提供。

安装

# 从 GitHub 安装到全局(opencode / hermes-agent 等,按需调整 -a)
npx skills add CaoMeiYouRen/vision-augment -g -a opencode -a hermes-agent -y

# 或项目级(不指定 -g):npx skills add CaoMeiYouRen/vision-augment

同时需注册 MCP server(uvx vision-augment,stdio 或 streamable-http),配置见仓库 README。

环境探测与自动配置(推荐先做)

第一步总是调用 mcp_vision_augment_health,拿到环境状态后按下表向用户反馈还缺什么、给什么命令。不要凭空猜测配置。

health 字段状态向用户反馈(含命令)
channels 为空 且 ollama.reachable=false视觉理解不可用二选一:① 配置 VISION_AUGMENT_CHANNELS(OpenAI 兼容端点 JSON 数组,base_url/api_key/model);② ollama pull llava 启动本地 Ollama VL 模型
channels 非空视觉理解已配置无需操作(通道按序降级,失败自动兜底 Ollama)
ollama.reachable=true本地兜底可用无需操作
ocr_engine.available=falseOCR 引擎缺失安装 extra:uvx vision-augment[ocr](或重装:uv tool install "vision-augment[ocr] @ git+...")
document_engine.available=false文档引擎缺失安装 extra:uvx vision-augment[document]
transport / cache / input_limits信息项一般无需反馈;cache.ttl_seconds=0 表示缓存关闭

若调用 mcp_vision_augment_health 失败(工具不存在/连不上),按顺序排查:MCP server 是否已注册(检查 harness 的 mcp_servers 配置,stdio 用 command: uvx, args: [vision-augment])→ 服务端进程是否存活 → HTTP 模式端点 /mcp 是否可达。把排查结果与注册配置片段一并反馈用户。

MCP 使用方法

工具

工具说明
mcp_vision_augment_vision主入口:task_type(reasoning 看图问答 / ocr 图片文字 / document 文档解析)+ source(路径 / file:// / http(s)://(需服务端开启)/ data:URL)+ task(reasoning 提问)+ language(OCR 语言,默认 ch)
mcp_vision_augment_health环境探测(见上节)
mcp_vision_augment_clear_cache清除本地结果缓存

任务选择

  • 用户要求"看这张图/截图/描述图片内容/截图里的按钮" → task_type=reasoning + task 提问
  • 用户要求"提取图片里的文字/OCR/识别票据" → task_type=ocr(language 默认 ch)
  • 用户要求"解析/总结这个文档(docx/pdf/pptx/xlsx/html)" → task_type=document
  • 多步编排:文档内容含图表 → 先 document 解析全文,再对图页/截图单独 ocr 或 reasoning

调用示例

mcp_vision_augment_vision(task_type="reasoning", source="C:\\Users\\me\\截图.png", task="描述这张截图的内容,并指出按钮布局")
mcp_vision_augment_vision(task_type="ocr", source="C:\\Users\\me\\票据.png", language="ch")
mcp_vision_augment_vision(task_type="document", source="C:\\Users\\me\\报告.docx")

返回值(统一 JSON envelope)

{task_type, tool_used, code, error, result, confidence, metadata}:

  • code=0:成功;result 为结果文本;metadata.truncated=true 表示被截断
  • code=1 通道失败 / code=2 超时 → 检查通道配置或 Ollama;可重试
  • code=3 输入无效 → 检查 source 路径/格式/大小
  • code=4 本地引擎未安装 → 按 error 提示安装对应 extras(见环境探测表)
  • code=5 内部错误 → 反馈用户查看服务端日志(VISION_AUGMENT_DEBUG=true)

反模式

  • 扫描版 PDF / 复杂表格 → 不要用 document,改用 ocr 逐页提取(或提示用户这是文档引擎边界)
  • 不要重复调用 reasoning 问同一张图同一问题(结果已缓存)
  • 未先跑 health 就断言"配置齐全" → 环境可能已变化,探测是唯一可靠来源

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.