pdf-parsing SKILL.md skillA
pdf-parsing from black-yt/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add black-yt/skills/pdf-parsing@git:20260713.9b7b32bPins git:20260713.9b7b32b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- black-yt/skills
- Path
pdf-parsing/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260713.9b7b32b, committed Jul 13, 2026
- First version recorded
- May 9, 2026
- Size
- 8,555 bytes
- Repository stars
- 16
- License
- none declared
当需要用 structai.read_pdf 将 PDF 文档解析成本地 Markdown、抽取图片资源,并处理 MinerU 解析缓存或代理重试问题时使用。.
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 解析 ## 目标 把 PDF 文档解析成本地可读取、可搜索、可复制的 Markdown,并抽取 PDF 中的图片资源。解析完成后,后续阅读应优先使用本地 Markdown 文件;重复调用 `structai.read_pdf` 也会优先复用本地解析结果,不会在本地结果已存在时重复上传同一个 PDF。 ## 依赖安装 当前 skill 对照的关键解析依赖: - `structai` package version:`0.1.24`。 - `structai` GitHub HEAD:`d20df602578bee124a9c93b293493e63212d0aab`。 - 更新本 skill 前,先确认 `structai.read_pdf` 行为是否变化;如果上游版本或 HEAD 变化,必须重新阅读 `read_pdf` 源码和 `structai_skill()` 输出。 ```bash pip install structai ``` 如果包索引中找不到 `structai`,或需要使用 GitHub 仓库中的最新代码: ```bash pip install "git+https://github.com/black-yt/structai.git" ``` 校验: ```bash python3 -c "from structai import read_pdf; import inspect; print(inspect.signature(read_pdf))" ``` 如果当前环境同时有多个 Python,请确认 `pip` 和 `python3` 指向同一个环境: ```bash python3 -m pip show structai python3 -c "import structai; print(structai.__file__)" ``` ## `read_pdf` 源码追溯 - `read_pdf` 行为以当前安装版本源码为准;如果缓存、上传、下载、图片路径或返回值和预期不一致,先读源码再判断。 - `inspect.signature(read_pdf)` 用于看函数参数。 - `inspect.getsource(read_pdf)` 用于看 `read_pdf` 入口逻辑。 - `structai.__file__` 和 `structai.pdf.__file__` 用于定位安装包源码文件。 - 源码只用于阅读和定位问题,不要改源码,不要直接修改 `site-packages` 或共享环境;需要改库时,先 clone `https://github.com/black-yt/structai`,在用户确认后用 editable install。 ```bash …
Read the whole file at its exact version.
How to install
mdr add black-yt/skills/pdf-parsing@sha256:7d05be3a004fc063The line at the top of this page pins the label git:20260713.9b7b32b, 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_jjcuak2ylezxts6g)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between May 9, 2026 and Jul 13, 2026, about one every 16 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260713.9b7b32b latest | 2026-07-13 | 9b7b32b | 8,555 B | A | view · diff |
| git:20260605.e763408 | 2026-06-05 | e763408 | 8,213 B | A | view · diff |
| git:20260509.b2dbdf8 | 2026-05-09 | b2dbdf8 | 6,902 B | A | view · diff |
| git:20260509.02fca21 | 2026-05-09 | 02fca21 | 6,413 B | A | view · diff |
| git:20260509.ab5becd | 2026-05-09 | ab5becd | 6,395 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 (8555 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
black-yt/skills · 16 stars · license none declared · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_jjcuak2ylezxts6g GET https://markdownregistry.com/api/v1/resolve?ref=black-yt/skills/pdf-parsing GET https://markdownregistry.com/api/v1/blob/7d05be3a004fc063fde863fd11346e4db2e4aecdf2f4d7ca67d2bd3c7b5c1b23
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.