Medtech Model Evidence Export
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install skills-medtech-model-evidence-exportWhat this does: Exports sanitized metadata, parameters, reproducibility details, quality metrics, and optional review artifacts from Medical AI inference runs or evidence packs to MLflow. Use after inference, including NV-Generate runs; not for live training tracking, model registration, or clinical use.
Manual setup by platform
Claude Code
~/.claude/skills/skills-medtech-model-evidence-export/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Medtech Model Evidence Export to MLflow
Purpose
Mirror an existing medical-inference result or evidence pack into MLflow after
the run and emit the export_result JSON contract. Keep the original evidence
pack as the source of truth. Training skills should add MLflow inside their
training loops instead.
Instructions
- Run
scripts/export_evidence_pack.pyin the defaultdry-runmode. - Inspect
params,metrics,artifact_plan, andmlflow.note.content. - Choose
--mode localor--mode databricksonly after checking the target. - Keep
--artifact-policy metadataunless the target is approved for images. - For
previeworallin a live mode, also pass
--confirm-medical-artifact-upload. - Keep
--source-ref,--note, config filenames, and artifact filenames free
of patient or secret identifiers; always review the dry-run output first.
Hosts with a script helper can use
run_script("scripts/export_evidence_pack.py", args=["PACK_OR_RESULT", "--mode", "dry-run"]).
Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
scripts/export_evidence_pack.py | Export post-hoc inference evidence through MLflow. | PACK_OR_RESULT --mode dry-run --artifact-policy metadata |
Prerequisites
- Python 3.10+.
mlflow>=2.10,<4forlocalordatabricksmode.numpy>=1.24,<3andnibabel>=4,<6for NIfTI quality metrics and previews.MLFLOW_TRACKING_URImay select a caller-managed tracking server.- Databricks mode uses the caller's
DATABRICKS_HOST,DATABRICKS_TOKEN, or
configured Databricks profile. The declared network endpoint is
https://<caller-provided-mlflow-or-databricks-workspace>; Docker and GPU
are not required. - Local mode may write the MLflow store under
<current-working-directory>/mlruns.
Examples
Preview the export without contacting MLflow:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/inference_pack --mode dry-run --artifact-policy metadata
Export a direct NV-Generate result with reproducibility metadata:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/nv-generate/result.json \
--mode local \
--experiment-name medical-ai-inference \
--config configs/chest_lung_tumor.json \
--seed 0 \
--source-ref git:61c4ec709b84cad468852243c48e250bec732074
Log downsampled slice previews, but not raw NIfTI files:
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/nv-generate/result.json \
--mode databricks \
--experiment-name /Shared/medical-ai-inference \
--artifact-policy preview \
--confirm-medical-artifact-upload
--artifact-policy all additionally uploads discovered or explicitly supplied
NIfTI images and masks, subject to --max-artifact-mb. Use --image and
--mask when paths are not present in the result JSON.
The exporter logs:
- scalar run and quality metrics, including sampled HU mean/std/min/max for CT
(generic intensity statistics otherwise), a documented intensity-SNR
heuristic, mask foreground percentage, and mapped tumor volume percentage
when a tumor label mapping is available; - generation parameters, model/checkpoint identity, RNG seed, and recipe hash;
- source config digest or
--source-ref, plus a prompt digest when present; mlflow.note.contentwith a short human-readable run summary;- a sanitized metadata bundle by default, optional PNG slice previews, and
raw image/mask artifacts only under the explicitallpolicy.
Limitations
- This is post-hoc inference export, not live training-curve tracking.
- Global intensity SNR and downsampled volume statistics are engineering
checks, not image-quality or clinical-performance claims. - Preview and raw artifacts may contain sensitive medical information. The
caller must approve the destination and data policy before upload. - The exporter does not evaluate model quality, register models, or alter the
source evidence pack.
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| Evidence source not recognized | No direct result JSON or pack manifest.json. | Pass the result file, evidence-pack directory, or trusted-run root. |
| MLflow import fails | Live mode lacks the declared package. | Install mlflow>=2.10,<4 or use --mode dry-run. |
| Preview/all confirmation error | A live image upload was not acknowledged. | Review the destination, then pass --confirm-medical-artifact-upload. |
| Referenced image not found | Result paths moved after inference. | Pass current paths with --image and --mask. |
Security
Reviews (0)
Related skills
Browse all →More from skills
View source →More Build skills
Browse category →Frequently asked questions about medtech-model-evidence-export
What does the medtech-model-evidence-export skill do?
Exports sanitized metadata, parameters, reproducibility details, quality metrics, and optional review artifacts from Medical AI inference runs or evidence packs to MLflow. Use after inference, including NV-Generate runs; not for live training tracking, model registration, or clinical use. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the medtech-model-evidence-export skill?
Run `npx @skills-hub-ai/cli install skills-medtech-model-evidence-export` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-medtech-model-evidence-export/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does medtech-model-evidence-export work with?
medtech-model-evidence-export runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the medtech-model-evidence-export skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use medtech-model-evidence-export after installing it?
In Claude Code, type `/skills-medtech-model-evidence-export` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the medtech-model-evidence-export skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.