legal-ocr SKILL.md skillA
legal-ocr from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/legal-ocr@v1.6.0Pins v1.6.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/legal-ocr/SKILL.md- Versions recorded
- 5
- Latest version
- v1.6.0, committed Sep 18, 2026
- First version recorded
- Jun 8, 2026
- Size
- 15,362 bytes
- Repository stars
- 775
- License
- none declared
本技能应在用户需要 OCR、扫描识别、图片文字识别、文档识别,或将 PDF、图片、Office 文档、URL 转换为 Markdown 时使用。检测到法律材料时可进行保守的法律术语与文书结构优化。不要用于法律事实判断、补写缺失内容、语义改写、印章深度识别或图表实体分析。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Legal OCR 本技能用于 OCR、扫描识别、图片文字识别、文档识别,以及把 PDF、图片、Office 文档和 URL 转换为可继续编辑、分析和归档的 Markdown。它首先是通用 OCR 入口;当结果被识别为法律材料时,再自动启用保守型法律后处理。默认使用配置优先的自动路由: - 本地 PDF 默认先探测原生文本层:法院电子送达判决书、电子合同、政府公文等带可靠文本层的 PDF 直读比 OCR 更准、更快、更省额度。质量达标直接抽文字转 Markdown;不达标才落回 OCR。详见「PDF 文本层双路径」。 - 只配置 PaddleOCR:PaddleOCR 支持的 PDF / 图片优先走 PaddleOCR;超出能力边界时再提示或改走 MinerU 支持链路。 - 只配置 MinerU Token:所有 MinerU 支持的输入统一走 MinerU,包含 PDF、图片、Office、远程文档 URL 和网页 URL。 - 同时配置两套 API:本地 PDF / 图片优先 PaddleOCR,Office / 网页 URL 优先 MinerU;首选后端出现额度、频率、鉴权、网络或服务失败时自动尝试候选后端。 - 本机已安装 RapidOCR 时,本地 PDF / 图片把本地 RapidOCR 作为云端失败后的最后一级候选。 - 两套 API 都未配置:本机已装 RapidOCR 时优先本地识别(材料不出本机),MinerU 轻量接口退为兜底;未装 RapidOCR 时使用 MinerU 轻量接口处理小文件,并在超限时提示补充 Token。 - 敏感材料不允许外传时,显式使用 `--backend rapid`(本地 onnx 推理,全程不出本机)。 旧的 `paddle-ocr` 和 `mineru-ocr` 保持可用;本技能是新的统一入口,目标是覆盖两者的常用 OCR/转换场景。 ## 何时使用 在以下场景使用本技能: - 用户明确需要 OCR、扫描识别、图片文字识别或文档识别。 - 输入可能是 PDF、图片、Office 文档、远程文档 URL 或网页 URL,并希望转成 Markdown。 - 希望保留 archive,便于复核原文件、后端结果、Markdown 和图片资源。 - 需要自动选择 OCR 后端,而不是手动判断该用 PaddleOCR 还是 MinerU。 - 希望非法律材料保持通用 OCR 输出,法律材料再做术语和文书结构优化。 不优先使用本技能的场景: - 只需要快速读取一小段清晰文本,且不需要 Markdown 文件和归档。 - 需要基于上下文改写事实、补充缺失信息、印章深度标注或图表语义分析;这些能力仍在后续计划中。 ## 依赖 ### 系统依赖 | 依赖 | 安装方式 | …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/legal-ocr@sha256:7f10168b1037dadaThe line at the top of this page pins the label v1.6.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_dbjkoc6zcd6qikyg)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Jun 8, 2026 and Sep 18, 2026, about one every 26 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.6.0 latest | 2026-09-18 | dfacabf | 15,362 B | A | view · diff |
| v1.5.0 | 2026-07-10 | 4d30bad | 13,819 B | A | view · diff |
| v1.4.3 | 2026-06-14 | 0c7bb33 | 10,850 B | A | view · diff |
| v1.4.0 | 2026-06-08 | 0ef1f6a | 10,850 B | A | view · diff |
| v1.4.0 | 2026-06-08 | d854146 | 12,031 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15362 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_dbjkoc6zcd6qikyg GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/legal-ocr GET https://markdownregistry.com/api/v1/blob/7f10168b1037dada3b67345ba7f2d722d4cae315ee7f1c6d7982adae9f277976
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.