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.
npx skills add lawyerllsx-dotcom/Legal-Workflow-Chain --skill visiongit clone --depth 1 https://github.com/lawyerllsx-dotcom/Legal-Workflow-ChainWrote 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.
[](https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/vision)<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/vision"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/vision/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.
<a href="https://agentmods.dev/skills/lawyerllsx-dotcom/legal-workflow-chain/vision"><img src="https://agentmods.dev/badge/skills/lawyerllsx-dotcom/legal-workflow-chain/vision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.01479 |
| Opus 5 | $0.00033 | $0.00740 |
| Sonnet 5 | $0.00013 | $0.00296 |
| Haiku 4.5 | $0.00007 | $0.00148 |
Grade A, and why
vision 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.
This is a copy
89% identical to vision — 25 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
vision
Multi-provider vision tool. Call various vision models to describe images. Feed it a prompt + image path, get back a text description.
⚠️ 使用边界:文字内容一律走 OCR,不要用本工具
本工具是视觉理解(识人、识物、识场景、看图说话),不是 OCR。
- 文字内容(文档、证据、票据、合同页、截图里的文字等)→ 用 OCR 提取文字,不要调用本工具:
- 本地 OCR(默认优先,不联网):你本机的本地 OCR 工具(路径按部署替换,如
ocr.bat/ocr_run.py) - 线上 OCR(须经用户明确同意):
mcp__paddleocr__*
- 本地 OCR(默认优先,不联网):你本机的本地 OCR 工具(路径按部署替换,如
- 非文字内容(识别人物/物体/场景/图表/UI 布局等)→ 用本工具。
- 触发条件:仅在用户明确要求视觉识别("识别这是谁""看看这张图""用视觉识别")或内容明显为非文字时调用。用户未指明时,默认按文字内容处理、走 OCR。
聊天中粘贴的图片:先提取到临时文件,按上述规则路由——文字内容 → 本地 OCR;非文字/用户指明 → 本工具(见 pasted_image_flow.py)。
When to use this tool
If you can already see and understand the image yourself (native multimodal model), skip this tool — analyze it directly.
A SessionStart hook normally announces this session's routing status up front. If that context isn't visible (e.g. compacted out of a long conversation, or the hook isn't installed), check before calling this tool:
python vision.py --check-routing
native→ you already have native image understanding this session; don't call this tool.external(default) → proceed with the quick start below.
Quick start
python vision.py [--provider <name>] <image_path> <prompt>
When --provider is omitted, the provider is resolved by: --provider flag > VISION_PROVIDER env > first API key found.
Providers
doubao (Volcengine Ark)
- API key:
DOUBAO_API_KEY - Default model:
doubao-seed-2-0-pro-260215 - Custom endpoint:
DOUBAO_BASE_URL
qwen (DashScope)
- API key:
DASHSCOPE_API_KEY - Default model:
qwen-vl-max - Custom endpoint:
DASHSCOPE_BASE_URL - Available models:
qwen-vl-max,qwen-vl-plus,qvq-max
openai (GPT-4o)
- API key:
OPENAI_API_KEY - Default model:
gpt-4o - Custom endpoint:
OPENAI_BASE_URL - Also works with any OpenAI-compatible endpoint.
anthropic (Claude)
- API key:
ANTHROPIC_API_KEY - Default model:
claude-sonnet-5 - Custom endpoint:
ANTHROPIC_BASE_URL - Requires the
anthropicpackage (pip install anthropic); it's imported lazily so other providers work without it.
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.
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.
- 12d ago First seen · 133 lines · 66 tokens per session scan A 8f49379ad928
vision is a skill published in the GitHub repository lawyerllsx-dotcom/Legal-Workflow-Chain (5 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 1,479 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to vision, differing in 25 lines, and is treated as a copy.
Other skills, from other repositories
legal-kb-builder
A tool for turning legal documents and other source material into a searchable local knowledge base. It supports sources such as PDF, DOCX, images, Markdown, and question-and-answer sets.
tw-legal-rag
A tool for finding real Taiwan court judgments and legal interpretations with verifiable citations before answering questions about Taiwan law.
legal-research
A legal research skill for finding and analysing laws and court cases, including similar cases. It requires access to a reliable legal research database before producing a formal report.
document-fill
A document-filling assistant that uses a supplied template and case files to fill in forms, contracts, or legal documents. It also reports where each filled value came from and which details are missing.
contract-review
A contract-review workflow for agreements governed by Chinese law, United States law, or both. It examines clauses one by one and produces a list of legal-risk questions, with an optional marked-up Word document.
litigation-knowledge-base
A knowledge-management system for litigation work. It organizes public legal research, private case notes, and private work notes, and can search across connected knowledge bases.