Agent Skillsaduermael/herm › image-vision

image-vision

GitHub

提供图像和PDF的视觉分析能力,支持OCR、图表识别及UI检查。通过doc模块读取本地或附件图片,支持单文件读取、异步并发处理及自定义提示词,确保准确解析非结构化视觉内容。

app/apple/herm/Skills/image-vision/SKILL.md aduermael/herm

触发场景

需要识别图片中的文字或手写内容 分析图表、截图或文档布局 提取PDF中的视觉元素信息

安装

npx skills add aduermael/herm --skill image-vision -g -y
更多选项

非标准路径

npx skills add https://github.com/aduermael/herm/tree/main/app/apple/herm/Skills/image-vision -g -y

不安装直接使用

npx skills use aduermael/herm@image-vision

指定 Agent (Claude Code)

npx skills add aduermael/herm --skill image-vision -a claude-code -g -y

安装 repo 全部 skill

npx skills add aduermael/herm --all -g -y

预览 repo 内 skill

npx skills add aduermael/herm --list

SKILL.md

Frontmatter
{
    "name": "image-vision",
    "metadata": {
        "short-description": "Inspect images and PDFs with vision"
    },
    "description": "Inspect attached or local images and visually analyze PDFs with vision. Use for photos, screenshots, scans, charts, diagrams, OCR, handwriting, UI inspection, or any task that depends on pixels, layout, or other non-structural page content."
}

Image Vision

Use the doc module with the exact attachment or local path. Do not guess or rewrite the path.

Read One File

Start with the simplest form:

local result = doc.read("/attachments/conversation-id/photo.jpeg")
print(result)

Images and PDFs default to vision when the vision callback is available. The built-in prompt extracts the document as structured Markdown and describes images, charts, diagrams, and other visual elements. This default is appropriate for most requests. Other supported document types default to structural extraction.

Treat the returned text as the visual model's analysis, then answer the user's question rather than merely repeating the extraction.

Supported visual inputs include PDF, PNG, JPEG, WebP, and GIF files.

Read Multiple Files

Issue all asynchronous reads before awaiting any result so vision requests can run in parallel:

local front = doc.readAsync("/attachments/conversation-id/front.jpeg")
local back = doc.readAsync("/attachments/conversation-id/back.jpeg")

local frontText = front:await()
local backText = back:await()
print(frontText)
print(backText)

Customize The Prompt

Set query only when the user needs a narrower analysis, special output format, or more detail than the default extraction:

local result = doc.read("/attachments/conversation-id/chart.jpeg", {
  query = "Extract the chart's title, axis labels, legend, and data values as a Markdown table."
})
print(result)

Preserve the user's request in the query. Set mode = "vision" when an explicit visual-mode override is useful:

local result = doc.read("/attachments/conversation-id/report.pdf", {
  mode = "vision",
  query = "Describe the page layout and all diagrams."
})
print(result)

Use mode = "structural" for a PDF when machine-readable text matters and visual interpretation is unnecessary. When both appearance and exact embedded text matter, run vision and structural reads separately and distinguish their results. Do not substitute structural extraction for requested visual analysis.

Failure Handling

  • Treat vision callback ... not available, provider configuration, authentication, and unsupported-model errors as authoritative. Report the limitation and stop after that failure.
  • Do not retry through image resizing, EXIF inspection, color or pixel sampling, ASCII rendering, browser upload, network services, or invented OCR APIs.
  • Do not silently fall back to structural mode when the task requires seeing pixels, layout, handwriting, charts, or diagrams.
  • Never claim to have seen or analyzed a file unless the vision read succeeded.

版本历史

  • 555c644 当前 2026-08-12 16:32
  • f2da284 2026-07-19 13:56

同 Skill 集合

app/apple/herm/Skills/apple-context/SKILL.md
app/apple/herm/Skills/beautiful-pdfs/SKILL.md
app/apple/herm/Skills/webbrowser/SKILL.md
skills/c-bounds-safety/SKILL.md
skills/device-interaction/SKILL.md
skills/modernize-tests/SKILL.md
skills/uikit-app-modernization/SKILL.md
skills/audit-xcode-security-settings/SKILL.md
skills/swiftui-specialist/SKILL.md
skills/swiftui-whats-new-27/SKILL.md

元信息

文件数
0
版本
4bcb16b
Hash
54aa995c
收录时间
2026-07-19 13:56

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-11 01:17
浙ICP备14020137号-1 $访客地图$