Skip to content
Back to skills

Mr Synthesis Quality V1

ASecurity

Used to verify nv-generate-mr and nv-generate-mr-brain evidence packs by re-reading generated MR NIfTI images and checking geometry, finite nonconstant nonnegative intensities, runtime identity, and scope disclosure.

  • 49 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 27, 2026
researchpythonbash

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add NVIDIA-Medtech/medical-AI-skills --skill mr-synthesis-quality-v1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mr Synthesis Quality V1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mr Synthesis Quality V1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvidia-medtech-mr-synthesis-quality-v1/badge)](https://www.skillsdirectory.com/skills/nvidia-medtech-mr-synthesis-quality-v1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mr-synthesis-quality-v1
description: Used to verify nv-generate-mr and nv-generate-mr-brain evidence packs by re-reading generated MR NIfTI images and checking geometry, finite nonconstant nonnegative intensities, runtime identity, and scope disclosure.
license: Apache-2.0
allowed-tools: Bash
metadata:
  author: "NVIDIA MedTech <noreply@nvidia.com>"
  tags:
    - MedTech
    - MR
    - generation
    - verifier
---

# MR Synthesis Quality Verifier

## Purpose
- Used for deterministic second-pass review of `nv-generate-mr` and `nv-generate-mr-brain` evidence packs.
- Re-reads generated image artifacts and checks source-pack success, upstream entrypoint identity, model inventory, modality/version identity, shape and spacing consistency, finite nonconstant nonnegative voxel values, aggregate-flag honesty, runtime identity, and scope disclosure.
- Manifest I/O: inputs are `nv_generate_mr_evidence_pack`; outputs are `mr_synthesis_quality_report`.

## Instructions
- Use this verifier only on evidence packs produced by `skills/nv-generate-mr` or `skills/nv-generate-mr-brain`.
- Run it through `eval_engine/run.py` when producing verifier evidence.
- The verifier entrypoint is `scripts/grade.py`; do not replace it with prompt-only review.
- Treat a pass as an engineering floor only, not as validation of anatomical realism, diagnostic utility, or training-data suitability.

## Available Scripts
| Script | Purpose | Arguments |
|---|---|---|
| `scripts/grade.py` | Primary verifier entrypoint declared by `skill_manifest.yaml`. | `EVIDENCE_PACK_DIR` |

## Prerequisites
- Runtime requirements: Python packages listed in `runtime.side_effects.pip_packages`.
- The input directory must contain `manifest.json`, `validation_summary.json`, and `output.json` from a supported MR generation evidence pack.
- Referenced generated image artifacts must be available for NIfTI header/data checks.

## Limitations
- Does not validate anatomical realism, radiologic image quality, diagnosis, regulatory claims, or production training-data suitability.
- Basic numeric checks catch empty/corrupt outputs, not subtle model failures.
- Does not re-run the upstream diffusion model.

## Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| `target_skill_matches` fails | The fixture is not an `nv-generate-mr` or `nv-generate-mr-brain` evidence pack. | Re-run the verifier against a supported source pack. |
| `image_artifacts_readable` fails | A generated NIfTI path is missing, moved, or unreadable. | Regenerate or restore the source evidence pack artifacts. |
| `image_values_nonconstant` fails | The generated image is constant or nearly empty. | Inspect upstream logs and regenerate evidence after fixing runtime/input issues. |
| `aggregate_flags_match_recomputed` fails | Source output flags disagree with verifier recomputation. | Fix the wrapper summary logic and regenerate the source pack. |

## Example

```bash
python eval_engine/run.py verifiers/mr-synthesis-quality-v1 \
  --fixture runs/nv_generate_mr_demo \
  --out runs/mr_synthesis_quality

python verifiers/mr-synthesis-quality-v1/scripts/grade.py \
  runs/nv_generate_mr_demo
```

Files in this skill

  • SKILL.md3.1 KB
  • fixtures/brain_pass_pack/manifest.json224 B
  • fixtures/brain_pass_pack/output.json3 KB
  • fixtures/brain_pass_pack/validation_summary.json94 B
  • fixtures/build_fixtures.py1.2 KB
  • fixtures/constant_image_pack/manifest.json216 B
  • fixtures/constant_image_pack/output.json3 KB
  • fixtures/constant_image_pack/validation_summary.json94 B
  • fixtures/pass_pack/manifest.json206 B
  • fixtures/pass_pack/output.json2.9 KB
  • fixtures/pass_pack/validation_summary.json94 B
  • scripts/grade.py12.1 KB
  • skill_manifest.yaml3.9 KB
  • tests/test_mr_synthesis_quality_grade.py4.2 KB
  • validators/output_schema.json2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.