AGENT SKILL

openmed

Route OpenMed local-first clinical NLP, PHI de-identification, healthcare interoperability, model runtime, multimodal intake, and privacy-risk workflows.

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

01 前言 Front Matter

name
openmed
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route OpenMed local-first clinical NLP, PHI de-identification, healthcare interoperability, model runtime, multimodal intake, and privacy-risk workflows.
disable-model-invocation
true

02 资源文件 7

03 SKILL.md 正文

OpenMed repo skill

Use this skill when a task asks to build, debug, or plan with OpenMed, the local-first Python/Swift/Android/browser SDK for clinical extraction, de-identification, document intake, model runtimes, and healthcare data handoffs. Keep examples synthetic unless the user explicitly confirms a local, authorized PHI boundary.

Quick orientation

  • Package/distribution: openmed; import root: openmed.
  • Python requirement: Python 3.10+.
  • Core install: pip install openmed.
  • Common editable install for a checkout: uv pip install -e ".[dev]" or a targeted editable install such as pip install -e ".[cli,service]".
  • The CLI entry point is openmed; run openmed --help to list commands.
  • Read references/repo-provenance.md before deciding whether this skill is current for a checkout.

Minimal import check

import openmed
print(openmed.__version__)
print(openmed.list_models(include_remote=False)[:3])

For no-download tests, use a fixture loader instead of a real model. The bundled scripts/openmed_quickstart_smoke.py shows this pattern for analyze_text and deidentify.

Route map

Task family Read this
Extract, mask, replace, hash, date-shift, audit, stream, or batch PHI/PII sub-skills/deidentification-privacy/SKILL.md
Run clinical/biomedical NER, section/context assertions, labs, meds, timelines, grounding, or codeable concepts sub-skills/clinical-extraction-grounding/SKILL.md
De-identify or evaluate tabular/structured releases, quasi-identifiers, k-anonymity, l-diversity, DP, leakage gates, or compliance evidence sub-skills/structured-risk-evaluation/SKILL.md
Use the openmed CLI, REST/gRPC/MCP surfaces, clients, adapters, FHIR/OMOP/HL7/OpenMRS/DHIS2/OpenHIM, or framework connectors sub-skills/interoperability-serving/SKILL.md
Select/cache/prefetch models, inspect ModelLoader, choose CPU/CUDA/MLX/CoreML/ONNX/Torch, export for mobile/browser, or debug runtime parity sub-skills/model-runtimes-mobile/SKILL.md
Extract text/layout/metadata from PDFs, Office files, Markdown, images/OCR, DICOM, SMS/chatlogs, calendars, contacts, or verify redaction fidelity sub-skills/multimodal-document-intake/SKILL.md

Shared references and scripts

  • references/package-map.md — read for the package/module map, CLI families, and optional extras by workflow.
  • references/install-and-configuration.md — read when choosing extras, offline/cache settings, privacy-safe configuration, or environment checks.
  • references/troubleshooting.md — read for cross-cutting install/import, optional dependency, privacy, backend, and stale-skill failures.
  • scripts/check_openmed_environment.py — run to inspect installation, CLI, and optional backend availability without invoking models.
  • scripts/openmed_quickstart_smoke.py — run for a deterministic synthetic analyze_text + deidentify smoke that avoids network/model downloads.

Core safety rules

  • Do not paste real PHI into remote agent prompts, logs, code comments, golden files, or issue text. Use synthetic examples in all generated code.
  • OpenMed is local-first after required artifacts are available; model downloads, remote adapters, telemetry-enabled paths, and user integrations are separate boundaries that must be explicitly accepted.
  • Do not bundle restricted terminology or DUA-gated assets. UMLS, SNOMED CT, CPT, MIMIC, i2b2, n2c2, and similar assets must be user-supplied or bridged out-of-process.
  • Aggregate F1 is not enough for privacy work: direct identifiers, critical leakage, span integrity, multilingual IDs, date shifts, surrogate consistency, and quantized recall deltas need separate checks.
  • If the current checkout commit, package version, public APIs, CLI commands, or major docs differ from references/repo-provenance.md, refresh this skill.

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