用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/medmcp/medmcp-neuro-core --skill segmentation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | segmentation |
| description | Workflow for whole-brain segmentation and structure volumetry (e.g. thalamic volume) using FastSurfer |
segment_brain runs FastSurfer's deep-learning segmentation (FastSurferVINN,
seg-only) to label cortical and subcortical structures and produce a per-structure
volume CSV — no FreeSurfer license required, GPU-accelerated.
segment_brain also checks this itself: a filename naming a
non-T1w contrast (FLAIR, T2w, dwi, …) comes back in the warnings field.
Note the header alone cannot confirm contrast (NIfTI has no sequence field), so
this is a filename heuristic — relay the warning and offer to coregister a T1w
instead. Do not silently run on non-T1w.skull_strip beforehand is
unnecessary (and harmless, but don't add the step on the user's behalf).segment_brain with device="auto" (uses the GPU when available; falls
back to CPU, which is much slower — tell the user if it resolves to CPU). If the
image is strongly anisotropic or thick-slice (e.g. 1×1×5 mm 2D clinical scans),
the call raises rather than producing a garbage segmentation; relay the error and
only re-run with force=True if the user explicitly accepts degraded quality.volumes_path and report the matching row(s) — e.g. for the
thalamus, the Left-Thalamus and Right-Thalamus rows (values in mm³).
Match the structure names verbatim (see below). Offer the full CSV for other
structures rather than dumping every row.The volumes CSV has columns structure,volume_mm3. The structure column holds
FastSurfer's exact StructNames (case-sensitive, hyphenated): non-cortical
structures follow the aseg convention (Left-Thalamus, Right-Hippocampus, CSF,
Brain-Stem, …) and cortical parcels are ctx-lh-<stem> / ctx-rh-<stem>
(Desikan-Killiany-Tourville, e.g. ctx-lh-superiorfrontal). Match them verbatim — a
lowercased/spaced guess like left thalamus will not be found. Call
list_brain_segmentation_labels() to see the exact names before searching the CSV.
BrainSegVol row (total brain-segmentation volume, mm³) is the normaliser to use:
report each structure as a fraction of BrainSegVol. Note this is brain-segmentation
volume, not eTIV/ICV — true eTIV needs a Talairach registration that requires a
FreeSurfer license, which this license-free seg-only pipeline deliberately avoids;
BrainSegVol is the license-free equivalent for head-size normalisation..mgz label map (*_dseg.mgz) — the workspace viewer
renders MGZ natively, and you can overlay it on the input by dragging it onto the
image. To warp it into template space, use apply_transform with
interpolation="NearestNeighbor" (it's an integer label map).device was used.segment_brain warns when resolution
drifts outside ~0.7–1.3 mm or is mildly anisotropic, and refuses strongly
anisotropic / thick-slice data (≥2 mm voxels or ≥2× anisotropy) unless force=True,
because conforming such scans yields a meaningless segmentation. Always read back
the warnings field and pass it on to the user.