total-segmentator
$
npx mdskill add mkurman/zorai/total-segmentatorSegment 104+ CT structures instantly with nnUNet models.
- Enables rapid anatomical analysis of whole-body CT scans.
- Depends on nnUNet-based inference for multi-label masks.
- Executes via CLI flags or Python API without manual setup.
- Delivers NIfTI segmentation masks ready for quantitative analysis.
SKILL.md
.github/skills/total-segmentatorView on GitHub ↗
---
name: total-segmentator
description: "Tool for robust segmentation of 104+ anatomical structures in CT images. Uses nnUNet-based models for whole-body, organ, and bone segmentation. One-line CLI for comprehensive body-part segmentation."
tags: [medical-image-segmentation, ct-anatomy-segmentation, whole-body-ct, nnunet-inference, total-segmentator]
---
## Overview
TotalSegmentator segments 104+ anatomical structures in CT images using nnUNet-based models. Run full-body, organ, or bone segmentation with a single CLI command.
## Installation
```bash
uv pip install TotalSegmentator
```
## CLI Usage
```bash
# Full body segmentation (all 104 structures)
TotalSegmentator -i input_ct.nii.gz -o output_seg.nii.gz
# Organ-only segmentation (liver, kidneys, spleen, etc.)
TotalSegmentator -i input_ct.nii.gz -o organ_seg.nii.gz -ta organ
# Appendicular bones
TotalSegmentator -i input_ct.nii.gz -o bone_seg.nii.gz -ta appendicular_bones
```
## Python API
```python
from totalsegmentator.python_api import totalsegmentator
segmentation = totalsegmentator("input_ct.nii.gz", "output_seg.nii.gz")
```
## Workflow
1. Obtain CT scan in NIfTI format
2. Run `TotalSegmentator -i input.nii.gz -o output.nii.gz`
3. Task types: `total` (104 structures), `organ`, `vertebra`, `ribs`, `appendicular_bones`
4. Output is a multi-label segmentation mask
5. Extract volumes per label for quantitative analysis
More from mkurman/zorai
- account-management>
- agile-scrum>
- albumentationsFast image augmentation library (Albumentations). 70+ transforms for classification, segmentation, object detection, keypoints, and pose estimation. Optimized OpenCV-based pipeline with unified API across all CV tasks. Supports images, masks, bounding boxes, and keypoints simultaneously. Note: classic Albumentations (MIT) is no longer maintained; successor AlbumentationsX uses AGPL-3.0. For torchvision-native augmentations, use torchvision.transforms.v2.
- aml-complianceAnti-Money Laundering (AML) and Know Your Customer (KYC) compliance workflow. Sanctions screening, PEP detection, transaction monitoring, suspicious activity reporting (SAR), and OFAC compliance.
- anki-connectThis skill is for interacting with Anki through AnkiConnect, and should be used whenever a user asks to interact with Anki, including to read or modify decks, notes, cards, models, media, or sync operations.
- approval-checkpoint-long-taskCanonical long-task pack for daemon-managed work with deliberate approval checkpoints, status summaries, rollback notes, and mobile-safe governance-aware updates.
- auditing-goal-artifactsUse when reviewing recent zorai goal run outputs, closure markers, ledgers, or evidence bundles to judge whether completion is credible or to identify remaining uncertainty.
- autogenAutoGen (Microsoft) — multi-agent conversation framework. Agent-to-agent chat, code generation & execution, tool use, group chat, and human-in-the-loop. Build collaborative AI systems with specialized agents.
- backtraderPython backtesting framework for trading strategies. Data feeds, brokers, analyzers, and live trading support. Strategy development with commission models, slippage, and signal-based execution.
- beautiful-mermaidRender Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library. Use when the user asks to render a Mermaid diagram.