用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/medmcp/medmcp-neuro-core --skill registration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | registration |
| description | Workflow for registering NIfTI images to a standard template or within-subject coregistration using ANTsPy |
Confirm the template variant — before calling register_to_template, determine
whether to use the skull-stripped (brain-only) or full-head MNI template:
skull_strip in this session or the filename
contains brain (e.g. _desc-brain_, _brain.nii.gz) → infer skull-stripped.Always tell the user which template will be used and offer the alternative:
"Your image appears to be skull-stripped, so I'll register to the brain-only MNI template (
desc-brain). Reply 'full-head' to use the full MNI template instead." — or — "Your image appears to be a full-head scan, so I'll register to the full-head MNI template. Reply 'brain-only' to use the skull-stripped template instead."
Wait for the user to confirm or correct before proceeding. Using the wrong template variant degrades registration quality.
Ask the user which transform type to use — before calling any registration tool, present all available transform types with their descriptions (as listed in the tool's docstring) and wait for the user to choose. Never pick a type yourself.
Run registration — call register_to_template or coregister with the confirmed
transform_type and skull_stripped flag.
Apply to additional images — use apply_transform with the transform lists from
the registration result to warp images into the same space without re-running registration:
forward_transforms directlyinverse_transforms with invert_flags=inverse_invert_flagsWhen a T1w has been registered to the template and the user wants an additional contrast (FLAIR, T2w, DWI b0, etc.) in template space, use a two-step approach:
coregister the contrast to the T1w. Present all transform types with their descriptions
and let the user choose. Note that for DWI/fMRI b0, EPI distortion is a factor the user
may want to consider when choosing.apply_transform with the T1w→template forward_transforms to carry the
coregistered contrast into template space, using the registered T1w as the reference.Do not re-register the contrast directly to the template — this wastes time, produces inconsistent deformations, and makes native-space analysis harder.
interpolation="NearestNeighbor"
in apply_transform to avoid interpolation artifacts on integer labels.output_space="MNI152NLin2009cAsym" explicitly so the BIDS output filename is correct.register_to_template and coregister can be composed: concatenate
the transform lists in application order when calling apply_transform.