vision-skill

vision-skill is a skill for Claude Code, Codex from DDDFXYqiming/Agent_Extensions. It costs 47 tokens per session (1,140 once invoked), scanned A, original, MIT.

A vision skill for recognising and extracting information from local images, using a configured vision model. It includes a script that can describe images and return visible text.

In plain words
What is it for?
Use it to identify image content, extract text with OCR, or analyse a local image from a supplied path. It can also help find and inspect recent clipboard screenshots.
Why use it?
It provides a way to inspect screenshots or image-based error messages when the main model cannot read images directly. Configuration is supplied through environment variables rather than being built into the skill.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to identify image content, extract text with OCR, or analyse a local image from a supplied path. It can also help find and inspect recent clipboard screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dddfxyqiming/agent_extensions/vision-skill
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 DDDFXYqiming/Agent_Extensions --skill vision-skill
Clone the repo
git clone --depth 1 https://github.com/DDDFXYqiming/Agent_Extensions

Made for: Claude Code, Codex.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/dddfxyqiming/agent_extensions/vision-skill/github.svg)](https://agentmods.dev/skills/dddfxyqiming/agent_extensions/vision-skill)
Your own site
<a href="https://agentmods.dev/skills/dddfxyqiming/agent_extensions/vision-skill"><img src="https://agentmods.dev/badge/skills/dddfxyqiming/agent_extensions/vision-skill/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/dddfxyqiming/agent_extensions/vision-skill"><img src="https://agentmods.dev/badge/skills/dddfxyqiming/agent_extensions/vision-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,140 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 15
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00047 $0.01140
Opus 5.5 $0.00019 $0.00456
Sonnet 5.5 $0.00009 $0.00228
Haiku 4.5 $0.00005 $0.00114

Measured 2mo ago against content hash 63337a30c577, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vision-skill 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/vision.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

General_skills/vision-skill/SKILL.md · 72 lines

How it starts

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

识图技能

当主模型不支持直接读取图片时,图片不会进入对话上下文,但用户消息中通常会附带图片的本地路径(形如剪贴板截图或附件路径)。

配置(首次使用)

  1. 复制 templates/.env.example 为技能目录下的 .env(脚本启动时自动加载,无需额外依赖),填入:

    • VISION_API_URL:视觉模型 OpenAI 兼容完整接口地址(含路径,如 https://api.example.com/v1/chat/completions)
    • VISION_MODEL:模型名
    • VISION_API_KEY:API Key

    也可以直接导出同名环境变量;环境变量优先级高于 .env 文件(便于 CI/容器注入)。

  2. 运行 python scripts/vision.py --check 自检,确认配置生效。

使用步骤

  1. 从用户消息中找到图片路径;路径不明确时先找最近的剪贴板截图:

    Get-ChildItem $env:TEMP\codex-clipboard-*.png | Sort-Object LastWriteTime -Descending | Select-Object -First 3 FullName,Length
    
  2. 运行脚本识别图片:

    cd <技能目录>; python scripts/vision.py "<图片绝对路径>" "(可选)具体识图要求"
    
  3. 基于脚本输出的文字描述回答用户;描述中的重要文字、报错信息要原样转述。

常用选项(按场景选择)

场景 命令
一般识图 vision.py "<图>"
提取所有文字(OCR,保持排版) vision.py "<图>" --mode ocr
表格/数据截图转 Markdown 表格 vision.py "<图>" --mode table
代码/日志/报错截图 vision.py "<图>" --mode code 或 --mode error
小字看不清:先全图定位,再裁局部放大读 vision.py "<图>" --crop x1,y1,x2,y2 --budget large
多张图对比 / 批量读 vision.py "a.png" --images "b.png" "c.png" --prompt "对比这两张"
高分辨率细节(4K 截图小字) vision.py "<图>" --budget large
原图直发(不缩放) vision.py "<图>" --no-resize
环境自检(配置/PIL/接口) vision.py --check

高质量识图工作流

  1. 先整体:用默认参数读一遍,拿到全局描述并定位疑点(小字、报错、表格局部)。
  2. 再局部:对疑点区域用 --crop x1,y1,x2,y2 裁出来,配合 --budget large 放大后再读,直到信息足够。
  3. 关键内容原样转述:报错码、数字、代码、日志必须逐字转述,不概括、不脑补。

--crop 坐标为原图像素坐标(左上角为原点);--save-crop 路径 可把实际发送的裁切图存下来复核。

注意

  • 不要假装看到了图片,必须先运行脚本拿到描述再回答。
  • 脚本报错(文件不存在、超过大小限制、未配置、API 失败)时如实转述错误并给出建议。
  • 多张图一起发送时,--crop 只作用于第一张主图。
  • 脚本默认关闭模型思考(thinking: disabled,识图更快);模型不支持该参数时删掉对应字段,或改为 adaptive 开启。
  • 输出乱码(旧版控制台代码页 936)时先执行 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8; $env:PYTHONIOENCODING='utf-8' 再跑脚本;脚本本身已对交互终端/管道分别处理编码。
  • 脚本重定向到文件时产物是 UTF-8,读取用 Get-Content -Encoding UTF8,否则中文会花。

安装到具体宿主

Read the full file on GitHub · 72 lines

Files

What ships with it

3 files 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. 2mo ago Changed · -19 lines · +2 tokens per session 63337a30c577
  2. 3mo ago First seen · 91 lines · 45 tokens per session scan A 38690ea1d1ac

Subscribe to this mod's changes

vision-skill is a skill published in the GitHub repository DDDFXYqiming/Agent_Extensions (5 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,140 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

vision-skill compared with skills from other repositories

vision-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vision-skillDDDFXYqiming/Agent_ExtensionsSkill51mo agoMITA47Claude Code, Codex
python-programming-expertroedyrustam/vibes-plugSkill1293d agoMITA53Cursor
synthetic-data-finetuning-expertroedyrustam/vibes-plugSkill1293d agoMITA46Cursor
python-securityjim60105/copilot-promptSkill22yesterdayGFDL-1.3A149Claude Code
tidyfactor-stylerTidyFactor/StylerSkill1211mo agononeA100Claude Code, Codex
cardputer-buddyanthropics/claude-plugins-officialSkill49kyesterdayApache-2.0A109Claude Code
grillingvinvcn/mattpocock-skills-zh-CNSkill6.2k5d agoMITA43Claude Code, Codex