pdf-organizer SKILL.md skillA
pdf-organizer 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-organizer@v0.6.1Pins v0.6.1 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-organizer/SKILL.md- Versions recorded
- 4
- Latest version
- v0.6.1, committed Oct 3, 2026
- First version recorded
- May 31, 2026
- Size
- 16,060 bytes
- Repository stars
- 775
- License
- none declared
当需要整理法律 PDF 时使用:检测文字层,生成页面索引、整理草稿和下游交接文件,按内容拆分、合并或直接重命名 OCR 后双层扫描件并规范命名;支持跨源页引用拼合与页覆盖审计(孤儿页/重复引用);可做旋转与倾斜校正,不做 OCR 或压缩。.
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 Organizer ## 定位 本技能处理“PDF 文件和法律文书逻辑不一致”的问题。它关注的不是普通文件拼接,而是按文书内容把 PDF 整理成律师实际会使用的文件。 核心职责: 1. 按内容把整份扫描/OCR PDF 拆成多份独立文书。 2. 按内容把被拆散的同一份文书合并回一个 PDF。 3. 对不需要拆分或合并的 PDF,直接根据内容识别结果规范命名。 4. 根据标题、主体、相对方、案由、日期等要素生成规范文件名。 5. 生成页面级检查索引和 manifest 草稿,供 AI/人工复核。 6. 以页引用集合统一表达拆分、复制、合并与跨源拼合,执行前可审计页覆盖(孤儿页/重复引用页)。 7. 生成下游 `handoff.json`,附页级来源引用,供案件材料整理、合同审查、诉讼分析等 Skill 协同使用。 7. 在整理前后做轻量页面方向处理,例如 90/180/270 度旋转;倾斜校正作为可选预处理能力。 8. 将 PDF 每页标准化为 A4 尺寸:横向页面自动适配 A4 横版(842×595 pt),竖向页面自动适配 A4 竖版(595×842 pt),等比缩放居中。 本技能不做 OCR、不压缩 PDF,也不替代案件材料整体归类。若 PDF 还没有可检索文字层,先使用 OCR 工具;若需要复杂裁边、压缩、批量 OCR 或高质量图像预处理,优先使用 PDF Processor。 ## 与其他技能配合 - OCR 前处理、双层 PDF、压缩、复杂裁边等工作交给 PDF Processor。 - 复杂版面识别、PDF 转 Markdown 或需要结构化 OCR 结果时,先使用 OCR 解析工具。 - 本技能输出的整理后 PDF 可以继续交给材料整理、案件分析或文书生成技能。 ## 依赖 ### 系统依赖 | 依赖 | 安装方式 | |------|----------| | `python3` | macOS 通常已内置 | | `ocrmypdf` | 可选,仅 `deskew` 倾斜校正需要;macOS: `brew install ocrmypdf` | ### Python 包 | 包名 | 用途 | 安装命令 | |------|------|----------| | `pypdf` | 拆分、合并、复制、页面旋转 | `python3 -m pip install -r scripts/requirements.txt` | 只做清单规划时不需要安装依赖;执行拆分、合并或旋转时需要 `pypdf`。倾斜校正依赖 `ocrmypdf` 命令行工具,未安装时应提示用户改用 PDF Processor 或先安装。 ## 输入/输出 ### 输入 …
Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/pdf-organizer@sha256:a417f4b13d01c004The line at the top of this page pins the label v0.6.1, 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_rbv2iw6d7h4rook4)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between May 31, 2026 and Oct 3, 2026, about one every 42 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.6.1 latest | 2026-10-03 | 30e584b | 16,060 B | A | view · diff |
| v0.6.0 | 2026-09-18 | dfacabf | 15,040 B | A | view · diff |
| v0.5.0 | 2026-06-01 | eb1993d | 12,678 B | A | view · diff |
| v0.5.0 | 2026-05-31 | 69801d5 | 12,147 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 (16060 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_rbv2iw6d7h4rook4 GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/pdf-organizer GET https://markdownregistry.com/api/v1/blob/a417f4b13d01c0049aec764271449f55026f561382b84878a104e15d0eed5b04
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.