AGENT SKILL

auxiliary-analysis

Use TotalSegmentator auxiliary analysis CLIs for contrast phase, CT/MR modality, body statistics, and Evans index.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
auxiliary-analysis
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use TotalSegmentator auxiliary analysis CLIs for contrast phase, CT/MR modality, body statistics, and Evans index.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Auxiliary Analysis

Use this sub-skill when the task is not to run a general segmentation, but to run one of TotalSegmentator's secondary analysis commands: contrast phase prediction, CT/MR modality prediction, body-stat prediction, or Evans index calculation.

TotalSegmentator and these helper outputs are research/workflow aids, not standalone clinical decision systems. Preserve input provenance, inspect generated JSON/PNG outputs, and route license, install, and backend setup questions to the appropriate sibling skill.

Start Here

  • Build a safe command without running models: python scripts/build_auxiliary_command.py <phase|modality|body-stats|evans-index> ....
  • Read references/auxiliary-tools.md for command flags, output schemas, dependency notes, and reuse limits.
  • Read references/troubleshooting.md for optional dependency, license, classifier resource, output path, and expensive-rerun fixes.
  • Use totalseg_get_phase for CT contrast phase JSON with pi_time, phase label, confidence probability, min/max, and ensemble stddev.
  • Use totalseg_get_modality for CT/MR classification JSON; add -n only when intensities are normalized and ROI-based prediction is needed.
  • Use totalseg_get_body_stats for weight, size, age, sex, BMI, and BSA JSON from CT/MR images; default CNN inference is usually preferred over XGBoost.
  • Use totalseg_evans_index for Evans index JSON plus a required preview PNG for visual validation.

Route Elsewhere

  • For selectable task/class discovery, registry APIs, or license-required task inventory, use ../capability-discovery/SKILL.md.
  • For ordinary TotalSegmentator -i ... -o ... segmentation runs and python_api.totalsegmentator(...), use ../segmentation-workflows/SKILL.md.
  • For run reports, statistics.json, multilabel masks, probabilities, and mask combination, use ../outputs-and-statistics/SKILL.md.
  • For installation, model weights, offline caches, license setup, device/backend setup, and usage-stat configuration, use ../runtime-configuration/SKILL.md when present in this generated skill.
  • For DICOM input layout, NIfTI/DICOM conversion, DICOM outputs, and crop_to_body, use ../dicom-and-formats/SKILL.md when present in this generated skill.

Safe Operating Rules

  • Prefer the bundled command builder for automation because it prints shell-quoted commands and dependency cautions without importing TotalSegmentator or running inference.
  • Always write JSON outputs to explicit paths; for Evans index, always request and inspect the preview PNG before trusting the numeric result.
  • Treat optional dependencies as workflow-specific: XGBoost for phase/modality/XGBoost body stats, PyTorch+timm+MONAI for body-stats CNN, and antspyx+blosc for Evans index registration/serialization.
  • Do not rerun expensive segmentation blindly. Reuse documented existing statistics for contrast phase when available; body-stats CLI does not expose a safe existing-statistics flag.
  • Keep general segmentation planning and task/ROI selection out of this sub-skill unless the auxiliary tool itself invokes segmentation internally.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351