szl-paper-evidence-audit
Audits claims taken from scientific PDF tables and figures against a pinned local PDF and Docling JSON, retaining page and bounding-box locators and requiring visual review. Use when a paper has old scans, complex tables, figure values, or an extracted number that must be checked before citation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- szl-paper-evidence-audit
- license
- Apache-2.0
- description
- Audits claims taken from scientific PDF tables and figures against a pinned local PDF and Docling JSON, retaining page and bounding-box locators and requiring visual review. Use when a paper has old scans, complex tables, figure values, or an extracted number that must be checked before citation.
02 资源文件 2
- 资产文件assets/example-claims.json604 B
- 脚本scripts/audit.py9.8 KB
03 SKILL.md 正文
Paper table and figure evidence audit
Use this after extracting a paper, before quoting its tables or figures. It complements a PDF/OCR skill; it does not perform OCR, inspect image pixels, prove a scientific claim, or certify a clinical result. A matching extracted string is still a review request, never verified truth.
Workflow
- Use a paper you may lawfully access. Keep it local. If the PDF is scanned or the layout is complex, use an installed, locally configured document converter such as Docling to produce DoclingDocument JSON. Record the converter, version, pipeline, and OCR engine. Do not silently install or download models, upload the paper, or send it to a hosted service.
- Independently inspect the PDF page/crop for every table value or figure claim. Do not infer a plotted value from a caption or extract a clinical result without qualified human review. Record units, row/column headers, uncertainty, footnotes, and whether the source is a scan.
- Calculate SHA-256 of the original PDF and extraction JSON. Create a claim manifest using the exact format in
assets/example-claims.json. Each claim names one#/tables/Nor#/pictures/Nreference. Its quote must equal the complete extracted text of one table cell or one linked caption text item, not an excerpt. Pin both input hashes; a mismatch fails closed. - Run
scripts/audit.pywith the original PDF, Docling JSON, and manifest. Review allUNRESOLVEDandREVIEW_REQUIREDrecords against the actual page. For figures, a match locates the linked caption and picture; visual values remain unverified. - Carry the output hashes and unresolved findings into a project evidence ledger or the companion
szl-artifact-lineageskill. Never turn the audit's unsigned local record into a publication, model-evaluation, or clinical-use approval.
python -B scripts/audit.py --pdf paper.pdf --document-json paper.docling.json --claims claims.json --output evidence.json
--output creates a new file and refuses overwrite. Without it, the command prints JSON. Exit 0 means the manifest was structurally audited and every expected string was located; every claim still requires review. Exit 2 means at least one binding or locator is unresolved; exit 1 means invalid input. The script is offline, Python 3.9+ standard library, and does not need credentials. It reads only the three explicitly selected local files. Input limits: 128 MiB PDF, 32 MiB Docling JSON, 1 MiB manifest, and 1,000 claims.
For old scans and complex table layouts, inspect raw Docling JSON as well as any Markdown rendering: a converter can omit content, normalize text, or misorder reading. Regions must have positive width and height in their declared coordinate origin (Docling's default is top-left). Figure-caption findings require separate picture and caption regions on the same PDF page. A quote spanning multiple caption text items cannot be matched, and a caption longer than the 2,048-character quote limit is invalid. The two input hashes bind selected bytes, but do not prove that the JSON was actually extracted from that PDF. Page number and bounding box locate evidence but do not validate OCR, units, or figure interpretation. No result is approved automatically.
Outside services: none in the bundled script. Optional Docling installation/conversion may download model assets depending on the user's configuration; get approval for those resources and record versions. Credentials: none for the bundled script. Source format references: Docling's document model and converter; all code here is original.
04 同仓库更多 Skills
szl-unit-invariants
Checks declared SI dimensions, allowlisted unit conversions, expected ranges and fixed pointwise invariants (equal, sum, difference, product, ratio) over selected measurement or simulation columns, flagging incompatible quantities, scale errors of 1000x and broken conservation checks. Use when merging instrument exports with different units, validating simulation output against conservation laws, or when a reviewer asks how unit errors were ruled out. Not an uncertainty-propagation or symbolic tool.
szl-uncertainty-lineage
Propagate declared measurement uncertainty through a small arithmetic dependency graph using a first-order delta approximation. Use when a researcher needs to see how corrected inputs or shared-source correlation change a reported standard uncertainty; require unit checks separately.
szl-typesafe-ai
TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
demo
暂无简介
demo
暂无简介
szl-skill-update-review
Compare pinned local skill packages using inventories and a retained lock; report changed skills, files, declarations and reruns without approving safety or validity.