pdf-processor SKILL.md skillA
pdf-processor 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/pdf-processor@v2.13.0Pins v2.13.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/pdf-processor/SKILL.md- Versions recorded
- 5
- Latest version
- v2.13.0, committed Sep 18, 2026
- First version recorded
- Aug 1, 2026
- Size
- 14,068 bytes
- Repository stars
- 775
- License
- none declared
PDF 处理工具,支持扫描件预处理、OCR 双层 PDF、页码添加、PDF 合并、解密、水印去除和压缩。本技能应在用户需要一键处理、优化或整理 PDF 文档时使用。不要用于:纯文本 PDF 内容编辑、PDF 阅读与批注、电子签名、非压缩目的的格式转换。.
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
# pdf-processor ## 定位 本技能是 PDF 处理的统一入口,覆盖扫描件预处理、OCR 双层 PDF 生成、页码添加、PDF 合并、解密、水印去除和压缩。优先保护原始文件,按用户意图选择最短可用流程。 核心职责: 1. 扫描件一键处理:解密 → 页面预处理 → 合并输出 → OCR 双层 PDF。 2. 单项处理:只预处理、只 OCR、只压缩、只解密、只去水印、只合并、只加页码。 3. 用户没有特别说明时,扫描件走默认统一入口;明确提出单项需求时只执行对应工具。 本技能不做纯文本 PDF 内容编辑、PDF 阅读批注、电子签名、非压缩目的的格式转换。 ## 默认策略 - 不修改原始文件;输出到新文件,重名时加 `_1`、`_2` 等序号。 - 扫描件、拍照件、证据材料默认继续生成可搜索双层 PDF;PaddleOCR 与本地 `ocrmypdf` 默认直接保留原 PDF,只有 MinerU 或显式图像处理请求才走统一栅格预处理。 - `auto` 在已配置时默认优先 PaddleOCR API,再尝试 MinerU,最后回退本地引擎(已安装 RapidOCR 时优先 RapidOCR,否则 `ocrmypdf`);明确禁止外传的材料必须使用 `--local-only`。 - 输入含姓名、案号、医疗、账号等敏感信息且用户尚未明确授权该文件外传时,先说明将上传完整 PDF 并取得一次确认;已授权当前文件后不重复询问,授权不扩展到同目录或其他材料。 - 电子 PDF 或混合 PDF 默认保留文字、矢量、图片和批注层,跳过栅格化预处理与重压缩;只有用户明确接受层丢失风险时才使用 `--force-raster-preprocess`。 - “只预处理”“不要 OCR”“只矫正压缩”才使用 `--preprocess-only`。 - “合并”“加页码”“解密”“去水印”“压缩”只执行对应工具,不自动进入预处理/OCR。 - 压缩只有用户明确提出时才单独执行;统一入口中的默认压缩是预处理输出策略的一部分。 - 水印去除只在用户明确要求时执行,不作为默认自动步骤。 ## 常用流程 ### 1. 一键处理扫描 PDF ```bash python3 scripts/pdf-preprocess-ocr.py --input input.pdf --output output.pdf ``` …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/pdf-processor@sha256:6068c49a6b4c57baThe line at the top of this page pins the label v2.13.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_zcj2ikeo2gaue5iu)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 1, 2026 and Sep 18, 2026, about one every 12 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.13.0 latest | 2026-09-18 | dfacabf | 14,068 B | A | view · diff |
| v2.12.1 | 2026-09-16 | f813b8e | 13,170 B | A | view · diff |
| v2.12.0 | 2026-08-14 | 28f4c96 | 13,170 B | A | view · diff |
| v2.10.2 | 2026-08-13 | 0e4c92e | 12,827 B | A | view · diff |
| v2.10.2 | 2026-08-01 | 2d2232c | 11,974 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 (14068 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_zcj2ikeo2gaue5iu GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/pdf-processor GET https://markdownregistry.com/api/v1/blob/6068c49a6b4c57ba9b0e06f28872cdfdac7d940785ab23ec0899f4d7ed745fe8
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.
More from cat-xierluo/legal-skills
Every file in cat-xierluo/legal-skills