AGENT SKILL

multimodal-document-intake

Route OpenMed document, OCR, DICOM, image, table, and metadata intake workflows before de-identification or clinical extraction.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
multimodal-document-intake
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route OpenMed document, OCR, DICOM, image, table, and metadata intake workflows before de-identification or clinical extraction.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Multimodal document intake

Use this sub-skill when a task starts from files, scans, images, DICOM studies, messages, spreadsheets, or mixed document formats and needs normalized text, source-offset provenance, layout coordinates, or redaction-fidelity checks before passing text into OpenMed de-identification, clinical extraction, or interop handoffs.

Use when

  • The input is PDF, DOCX, PPTX, RTF, ODT, EPUB, Markdown/AsciiDoc, CSV/XLSX, image, scan, OCR output, DICOM/DICOM-SR, SMS/chatlog, calendar, contact, or a community health worker form.
  • You need ExtractedDocument.text, SourceSpan offsets, page/bounding-box provenance, or source-text replacement after redaction.
  • You need to decide whether to install openmed[multimodal], openmed[ocr-paddle], a system OCR binary, or no optional document backend.
  • You need openmed verify-pdf-style evidence that text-layer and visual redactions match.

Route elsewhere

  • Free-text PHI detection, masking, date shifting, mappings, and audit reports → ../deidentification-privacy/SKILL.md.
  • Clinical NER, assertions, sections, labs, medications, timelines, or grounding → ../clinical-extraction-grounding/SKILL.md.
  • FHIR/OMOP/HL7/OpenMRS/DHIS2/service handoffs → ../interoperability-serving/SKILL.md.
  • Mobile/browser model runtime deployment after document text is prepared → ../model-runtimes-mobile/SKILL.md.

Recommended workflow

  1. Identify the input family and whether it is born-digital text, scanned image, mixed text+layout, or medical imaging metadata/pixels.
  2. Read references/document-intake-workflows.md for the format-specific route, optional dependencies, and safe ordering.
  3. If you only need a safe parser/OCR contract demonstration, run scripts/document_intake_smoke.py --json.
  4. Keep real PHI out of prompts and logs. Use synthetic fixtures or already authorized local files; never paste source document text into an external agent message.
  5. Preserve offsets and provenance when handing text to de-identification, then project final redactions back to the original source representation.
  6. For PDFs, images, and DICOM, validate both visible pixels and hidden metadata or text layers before treating the output as scrubbed.

Bundled references and scripts

  • references/document-intake-workflows.md — read for format-specific recipes, data contracts, optional dependency choices, and handoff patterns.
  • references/api-reference.md — read for verified public APIs and returned object shapes used by document, OCR, DICOM, and redaction-fidelity code.
  • references/troubleshooting.md — read when a parser, OCR engine, hidden text layer, DICOM field, metadata scrub, or span projection behaves unexpectedly.
  • scripts/document_intake_smoke.py — run for a deterministic Markdown plus fake-OCR smoke check that does not require external binaries or downloads.

Safety reminders

  • Treat extracted text and metadata as PHI until de-identification and fidelity verification complete.
  • Prefer local, synthetic, or fixture data while developing. Do not send scans, image pixels, DICOM headers, or raw text to remote tools.
  • OCR engines may download models or require system language packs. Make those network and installation boundaries explicit before use.
  • DICOM PHI can live in both headers and burned-in pixels; verify both paths.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351