Skip to content
Back to skills

Totalsegmentator

ASecurity

"Use TotalSegmentator as an installed package for medical-image

  • 247 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 9, 2026
toolspythonbashapibackend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill totalsegmentator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Totalsegmentator?

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

Security grade badge for Totalsegmentator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-totalsegmentator/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-totalsegmentator)

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: totalsegmentator
description: "Use TotalSegmentator as an installed package for medical-image
  segmentation, task discovery, runtime configuration, output parsing, DICOM
  handling, auxiliary analysis, and advanced training boundaries."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# TotalSegmentator

Use this skill when a user asks about TotalSegmentator, the `TotalSegmentator` CLI, the `totalsegmentator` Python package, anatomical CT/MR segmentation tasks, model-weight or license setup, segmentation output parsing, DICOM/NIfTI handling, or TotalSegmentator-style nnU-Net retraining.

TotalSegmentator outputs are research/workflow artifacts unless the surrounding product has its own approved clinical validation. Preserve input provenance, verify task/class choices, and prefer machine-readable JSON outputs over scraping stdout.

## Quick Start

1. Discover capabilities first when task or class names are uncertain: `totalseg_info --json` or [capability-discovery](sub-skills/capability-discovery/SKILL.md).
2. Build segmentation commands through [segmentation-workflows](sub-skills/segmentation-workflows/SKILL.md); add `--report <path.json>` for automation.
3. Parse `run_report.json`, `statistics.json`, multilabel outputs, probabilities, and combined masks through [outputs-and-statistics](sub-skills/outputs-and-statistics/SKILL.md).
4. Use [runtime-configuration](sub-skills/runtime-configuration/SKILL.md) for install/import checks, CPU/GPU/MPS decisions, model weights, offline setup, licenses, and usage-stat settings.
5. Use [dicom-and-formats](sub-skills/dicom-and-formats/SKILL.md) before long runs when inputs are DICOM folders/zips, DICOM output is requested, or crop-to-body preprocessing is needed.

## Route by User Intent

| User intent | Read this |
| --- | --- |
| List tasks, classes, modalities, license flags, or valid `--roi_subset` names | [capability-discovery](sub-skills/capability-discovery/SKILL.md) |
| Build or run a CT/MR segmentation CLI/API workflow | [segmentation-workflows](sub-skills/segmentation-workflows/SKILL.md) |
| Validate reports, statistics, masks, multilabel headers, probabilities, or combined masks | [outputs-and-statistics](sub-skills/outputs-and-statistics/SKILL.md) |
| Fix install/import/backend issues, choose devices, pre-stage weights, configure offline or licensed tasks | [runtime-configuration](sub-skills/runtime-configuration/SKILL.md) |
| Validate NIfTI/DICOM inputs, DICOM SEG/RTSTRUCT outputs, modality detection, or crop-to-body preprocessing | [dicom-and-formats](sub-skills/dicom-and-formats/SKILL.md) |
| Use contrast phase, CT/MR modality, body stats, or Evans index helper CLIs | [auxiliary-analysis](sub-skills/auxiliary-analysis/SKILL.md) |
| Plan retraining, dataset conversion, benchmark evaluation, or model-contribution work | [advanced-training](sub-skills/advanced-training/SKILL.md) |

## Safe Install and Smoke Check

Install the public package in the user's chosen environment:

```bash
pip install TotalSegmentator
```

Then run safe checks that do not download model weights:

```bash
totalseg_info --json
python scripts/check_install.py --task total --class-name liver --json
```

The root helper verifies package metadata, importability, registry access, selected task/class names, and console-script availability. It does not run segmentation, validate licenses against the network, or download weights.

## Common Workflows

- **Automation pipeline:** discover task/classes with `totalseg_info --json`, build a `TotalSegmentator` command with `--report` and optional `--statistics`, then parse JSON files through the outputs sub-skill.
- **CPU-only run:** choose `--device cpu`, add `--fast` or a small `--roi_subset`, and use the segmentation troubleshooting reference for memory/runtime limits.
- **Offline deployment:** use runtime configuration to set a writable TotalSegmentator home, pre-stage weights, save any required license, and run read-only diagnostics before inference.
- **DICOM output:** validate the input as DICOM first, install the needed optional DICOM output dependency, and avoid requesting DICOM output from NIfTI input.
- **Advanced research:** use the training sub-skill only for explicit retraining/evaluation/contribution requests; ordinary segmentation should stay in the segmentation workflow.

## Runtime References

- Read [references/task-selection.md](references/task-selection.md) for task, class, modality, and license selection patterns.
- Read [references/troubleshooting.md](references/troubleshooting.md) for cross-cutting install, data, CLI/API, optional dependency, model-weight, and license failures.
- Read [references/repo-provenance.md](references/repo-provenance.md) to decide whether this skill is aligned with the source version.
- `references/repo-routing-metadata.json` contains structured metadata for managed router import.

## Boundaries

- Do not hard-code task/class lists from memory; use `totalseg_info` or `totalsegmentator.registry`.
- Do not run heavyweight segmentation, model downloads, licensed tasks, or training by default when the user only needs planning or validation.
- Do not expose license numbers, local cache paths, or environment paths in shared reports.
- Do not treat skipped native examples or heavyweight tests as passing; record why they are skipped and use safe JSON/helper checks where possible.

Files in this skill

  • SKILL.md5.3 KB
  • references/repo-provenance.md3.9 KB
  • references/repo-routing-metadata.json335 B
  • references/task-selection.md3 KB
  • references/troubleshooting.md3.9 KB
  • scripts/check_install.py4 KB
  • sub-skills/advanced-training/SKILL.md3.4 KB
  • sub-skills/advanced-training/references/training-and-evaluation.md10.3 KB
  • sub-skills/advanced-training/references/troubleshooting.md5.5 KB
  • sub-skills/auxiliary-analysis/SKILL.md3.5 KB
  • sub-skills/auxiliary-analysis/references/auxiliary-tools.md11 KB
  • sub-skills/auxiliary-analysis/references/troubleshooting.md7.3 KB
  • sub-skills/auxiliary-analysis/scripts/build_auxiliary_command.py8.4 KB
  • sub-skills/capability-discovery/SKILL.md2.6 KB
  • sub-skills/capability-discovery/references/registry-reference.md6.4 KB
  • sub-skills/capability-discovery/references/troubleshooting.md4.2 KB
  • sub-skills/capability-discovery/scripts/dump_task_registry.py5.9 KB
  • sub-skills/dicom-and-formats/SKILL.md2.9 KB
  • sub-skills/dicom-and-formats/references/dicom-and-nifti.md9.1 KB
  • sub-skills/dicom-and-formats/references/troubleshooting.md7.7 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.

Comments

Loading comments…

Newsletter

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