Manage ASL perfusion MRI processing pipelines, including CBF quantification and image normalization.

Install

mkdir -p .claude/skills/asl-skill && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11678" && unzip -o skill.zip -d .claude/skills/asl-skill && rm skill.zip

Installs to .claude/skills/asl-skill

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use this skill whenever the user wants to process Arterial Spin Labeling (ASL) perfusion MRI data including CBF (cerebral blood flow) quantification, ASL preprocessing (motion correction, partial volume correction, M0 normalization), or ASL-based brain perfusion analysis. Triggers include: 'ASL', 'ASL processing', 'CBF', 'cerebral blood flow', 'perfusion MRI', 'arterial spin labeling', 'pCASL', 'CASL', 'PASL', or any request involving ASL perfusion data.
458 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Process Arterial Spin Labeling (ASL) perfusion MRI data
  • Quantify Cerebral Blood Flow (CBF) using models like Buxton
  • Perform ASL preprocessing steps like motion correction and registration
  • Normalize ASL data to MNI space for group analysis
  • Extract ROI-based CBF values from atlas-defined regions

How it works

This skill processes ASL perfusion MRI data by delegating tasks like motion correction, M0 normalization, and CBF quantification to specialized tool skills. It generates a numbered execution plan and saves outputs in a structured directory.

Inputs & outputs

You give it
ASL perfusion MRI data and T1w structural data
You get back
CBF maps, preprocessed ASL images, and ROI summary reports

When to use asl-skill

  • Process pCASL perfusion data
  • Calculate cerebral blood flow
  • Perform ASL motion correction
  • Normalize ASL MRI images

About this skill

ASL Skill (Modality Layer)

Overview

asl-skill is the NeuroClaw modality-layer interface skill responsible for all Arterial Spin Labeling (ASL) perfusion MRI data processing tasks.

It strictly follows the NeuroClaw hierarchical design principles:

  • This skill only describes WHAT needs to be done and which tool skill to delegate to.
  • It contains no implementation code or concrete commands.
  • All concrete execution is delegated to existing base/tool skills: fsl-tool, nibabel-skill, and claw-shell.
  • Companion scripts in scripts/ provide reference implementations for CBF quantification.

Core workflow (never bypassed):

  1. Identify input ASL data and labeling strategy (pCASL, CASL, or PASL).
  2. Ensure T1w structural data is available (via smri-skill if not yet processed).
  3. Generate a numbered execution plan clearly stating WHAT needs to be done and which tool skill will handle each step.
  4. Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
  5. On confirmation, delegate every step to the appropriate skill via claw-shell.
  6. After execution, save all outputs in a clean directory structure (asl_output/).

Research use only.


Quick Reference (Common ASL Tasks)

TaskWhat needs to be doneDelegate to which tool skillExpected output
ASL preprocessingMotion correction, masking, registration to T1wfsl-tool (ASL_PREPCORE)Preprocessed ASL in T1w space
M0 normalizationDivide ASL difference image by M0 reference image to get perfusion signalfsl-tool or scripts/compute_cbf.pyNormalized perfusion map
CBF quantificationConvert perfusion signal to absolute CBF (mL/100g/min) using Buxton modelscripts/compute_cbf.pyCBF map (NIfTI) + ROI summary (CSV)
Partial volume correctionCorrect CBF for gray/white matter partial volume effectsfsl-tool + tissue segmentationPVC-corrected CBF map
ASL-to-MNI normalizationWarp CBF map to MNI152 template for group analysisfsl-tool (FNIRT) or smri-skillCBF in MNI152 space
ROI-based CBF extractionExtract mean CBF from atlas-defined ROIsfsl-tool + atlasPer-region CBF values (CSV)
Quality controlCheck for outliers, low SNR, motion artifacts in ASL seriesscripts/compute_cbf.py (--qc)QC report

ASL Labeling Strategies

StrategyDescriptionTypical Parameters
pCASL (pseudo-Continuous ASL)Most common; single PLD, good SNRLabel duration: 1.5–2.0 s, PLD: 1.5–2.0 s
CASL (Continuous ASL)Longer labeling, higher SNR but more sensitive to transit effectsLabel duration: 2–4 s, PLD: 1–2 s
PASL (Pulsed ASL)Short labeling, lower SNR, no separate M0 needed (QUIPSS II)Bolus thickness: 10–15 cm, TI1/TI2: 700/1800 ms

Core CBF Quantification Model

The Buxton single-compartment model for pCASL:

CBF = (6000 * ΔM * λ) / (2 * α * M0 * T1b * (exp(-w/T1b) - exp(-(τ+w)/T1b)))   [mL/100g/min]

Where:

  • ΔM = ASL difference image (control - label)
  • M0 = equilibrium magnetization of arterial blood
  • λ = blood-tissue water partition coefficient (0.9 mL/g)
  • α = labeling efficiency (0.85 for pCASL, 0.95 for CASL, 0.98 for PASL)
  • T1b = T1 of arterial blood at 3T (~1.65 s) or 1.5T (~1.35 s)
  • w = post-labeling delay (PLD)
  • τ = label duration

Scripts

scripts/compute_cbf.py

Computes CBF maps from ASL difference images and M0 reference.

python skills/asl-skill/scripts/compute_cbf.py \
  --diff /path/to/asl_diff.nii.gz \
  --m0 /path/to/m0_reference.nii.gz \
  --output /path/to/asl_output/cbf_map.nii.gz \
  --roi-summary /path/to/asl_output/cbf_roi.csv \
  --roi-atlas /path/to/atlas_in_asl_space.nii.gz \
  --label-strategy pcasl \
  --pld 1.8 \
  --label-duration 1.8 \
  --field-strength 3.0

Standard Output Layout

asl_output/
├── preprocessed/          # Motion-corrected, registered ASL
├── cbf/                   # CBF maps
│   ├── cbf_map.nii.gz
│   ├── cbf_roi.csv
│   └── cbf_mni.nii.gz    # (if normalization requested)
├── pvc/                   # Partial volume corrected CBF (if requested)
├── qc/                    # Quality control reports
│   └── asl_qc_report.csv
└── logs/

Installation (Handled by dependency-planner)

No manual installation required at this layer. When first used, asl-skill automatically calls dependency-planner to ensure fsl-tool, nibabel-skill, and claw-shell are ready.


Important Notes & Limitations

  • ASL has inherently low SNR compared to BOLD fMRI; averaging multiple control-label pairs is recommended.
  • M0 image is required for absolute CBF quantification; if absent, only relative CBF can be computed.
  • PLD and labeling duration must be known from the acquisition protocol; incorrect values invalidate CBF.
  • At 3T, T1b ≈ 1.65 s; at 1.5T, T1b ≈ 1.35 s.
  • Partial volume correction is important for ASL due to its low resolution (~3–4 mm).
  • ASLPrep (https://aslprep.readthedocs.io/) is the recommended automated pipeline for large cohorts.
  • This skill is for research workflows; not for clinical decision-making.

When to Call This Skill

  • After smri-skill when T1w structural preprocessing is complete and ASL data needs processing.
  • When the user needs CBF quantification from pCASL, CASL, or PASL data.
  • When ASL-to-T1w coregistration or normalization to MNI space is required.
  • When partial volume correction is requested for ASL perfusion analysis.
  • When dataset skills (e.g., PNC) delegate ASL processing.

Complementary / Related Skills

  • smri-skill → T1w structural preprocessing (brain extraction, tissue segmentation for PVC)
  • fmri-skill → if ASL is used alongside BOLD for multimodal analysis
  • fsl-tool → ASL_PREPCORE (preprocessing), FLIRT/FNIRT (registration/normalization), BASIL (CBF quantification)
  • nibabel-skill → NIfTI I/O for mask manipulation
  • nilearn-tool → ROI-based CBF extraction
  • brain-visualization → CBF map visualization

Reference

Created At: 2026-05-06 12:19 HKT Last Updated At: 2026-05-06 12:19 HKT Author: chengwang96

When not to use it

  • When the task is for clinical decision-making
  • When M0 image is absent and absolute CBF quantification is required

Prerequisites

fsl-toolnibabel-skillclaw-shell

Limitations

  • ASL has inherently low SNR compared to BOLD fMRI
  • M0 image is required for absolute CBF quantification
  • Incorrect PLD and labeling duration values invalidate CBF

How it compares

This skill provides a structured, delegated workflow for ASL data processing, ensuring adherence to NeuroClaw hierarchical design principles, unlike manual processing or ad-hoc script execution.

Compared to similar skills

asl-skill side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
asl-skill (this skill)03moReviewAdvanced
quant-analyst1032moNo flagsAdvanced
umap-learn62moReviewIntermediate
embedding-strategies82moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

umap-learn

K-Dense-AI

UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.

6100

embedding-strategies

wshobson

Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.

890

building-automl-pipelines

jeremylongshore

Build automated machine learning pipelines, including feature engineering, model selection, and performance evaluation.

688

model-compare

rawwerks

Compare 3D CAD models using boolean operations (IoU, Dice, precision/recall). Use when evaluating generated models against gold references, diffing CAD revisions, or computing similarity metrics for ML training. Triggers on: model diff, compare models, IoU, intersection over union, model similarity, CAD comparison, STEP diff, 3D evaluation, gold reference, generated model, precision recall 3D.

783

matchms

davila7

Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.

674

Search skills

Search the agent skills registry