Skip to content
Back to skills

Ct Segmentation Quality V1

ASecurity

Audits nv_segment_ct evidence packs for label-map readability, anatomy plausibility (organ volume bounds, fragmentation, bilateral symmetry, liver-larger-than-spleen), and optional per-class Dice/IoU against a referenced ground-truth label map. Engineering verification only.

  • 49 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
toolspythonbash

Works with

  • cli

Security analysis

A100/100

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

Scanned November 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Ct Segmentation Quality V1?

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

Security grade badge for Ct Segmentation Quality V1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvidia-medtech-ct-segmentation-quality-v1/badge)](https://www.skillsdirectory.com/skills/nvidia-medtech-ct-segmentation-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: ct-segmentation-quality-v1
description: Audits nv_segment_ct evidence packs for label-map readability, anatomy plausibility (organ volume bounds, fragmentation, bilateral symmetry, liver-larger-than-spleen), and optional per-class Dice/IoU against a referenced ground-truth label map. Engineering verification only.
license: Apache-2.0
---

# ct_segmentation_quality_v1

## Purpose
- Audits `nv_segment_ct` evidence packs for label-map readability, anatomy plausibility, requested-label containment, and optional Dice/IoU against a recorded ground-truth label map.
- Use this after the source segmentation skill has produced an evidence pack. Engineering verification only.
- Manifest I/O: inputs are `nv_segment_ct_evidence_pack`; outputs are `ct_segmentation_quality_report`.

## Instructions
- Run `scripts/grade.py` on the evidence-pack directory that should be audited.
- If a host agent exposes `run_script`, use `run_script("scripts/grade.py", args=["RUNS/PACK_DIR"])`.
- Prefer the eval-engine command when you need a verifier evidence pack; use the direct Python command for quick local inspection.

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

## Prerequisites
- The target pack must contain `manifest.json`, `validation_summary.json`, and `output.json`.
- The label-map path recorded in `output.path` must resolve from the pack directory or current repo root.

## Limitations
- Single-pack verifier only; dataset-level aggregation belongs in `benchmarks/`.
- Anatomy bounds are engineering floors and may fail pediatric, post-resection, or pathological cases intentionally.
- Not for clinical interpretation.

## Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| Missing pack files | The fixture path is not an evidence-pack directory. | Point the verifier at the completed source-skill run directory. |
| Label map unreadable | `output.path` is missing or stale. | Preserve source-skill artifacts with the evidence pack before auditing. |
| Plausibility failure | Output violates an engineering floor. | Keep the failed verifier output and inspect per-tier reasons. |

Paired verifier for `skills/nv-segment-ct`.

```bash
python eval_engine/run.py verifiers/ct-segmentation-quality-v1 \
  --fixture runs/spleen_clean \
  --out runs/spleen_clean_quality
```

The verifier reads the target pack's `manifest.json`, `validation_summary.json`,
and `output.json`. It loads the label-map NIfTI referenced at `output.path`,
recomputes per-class voxel counts and converts to volumes using the recorded
spacing. It then runs three tiers:

- **artifact_inventory** — label-map file exists, integer dtype, shape and
  affine match the recorded input geometry.
- **anatomy_plausibility** — per-class volume bounds (e.g. spleen 50-500 mL),
  largest connected component dominates, fragmentation cap, bilateral organ
  symmetry, and `liver_volume > spleen_volume` when both are present.
- **gt_metrics** — runs only if `input.ground_truth_path` is recorded in the
  evidence pack and the file is readable. Computes per-class Dice and IoU
  against the reference and checks per-class Dice floors.

Per-class anatomy bounds live in `validators/anatomy_bounds.json`. Bounds are
population-typical adult ranges; pediatric or post-resection cases will fail
intentionally for v0.1.

This is a single-pack verifier. Dataset-level aggregation (mean Dice across
N cases) belongs in `benchmarks/`.

Not for clinical interpretation.

Files in this skill

  • SKILL.md3.5 KB
  • conftest.py2 KB
  • fixtures/build_fixtures.py6.6 KB
  • fixtures/fragmented_pack/manifest.json85 B
  • fixtures/fragmented_pack/output.json1.6 KB
  • fixtures/fragmented_pack/predicted_seg.nii.gz1.4 KB
  • fixtures/fragmented_pack/validation_summary.json91 B
  • fixtures/gt_pass_pack/manifest.json85 B
  • fixtures/gt_pass_pack/output.json1.6 KB
  • fixtures/gt_pass_pack/predicted_seg.nii.gz1.3 KB
  • fixtures/gt_pass_pack/reference_seg.nii.gz1.3 KB
  • fixtures/gt_pass_pack/validation_summary.json91 B
  • fixtures/pass_pack/manifest.json85 B
  • fixtures/pass_pack/output.json1.6 KB
  • fixtures/pass_pack/predicted_seg.nii.gz1.3 KB
  • fixtures/pass_pack/validation_summary.json91 B
  • scripts/grade.py21.9 KB
  • skill_manifest.yaml4.3 KB
  • tests/test_ct_segmentation_quality_grade.py8.8 KB
  • validators/anatomy_bounds.json1.4 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 tools →

Comments

Loading comments…

Newsletter

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