Cam-CAN Skill (Dataset-Orchestration Layer)

SkillDatabases & data

Use this skill whenever the user wants an end-to-end workflow for the Cam-CAN (Cambridge Centre for Ageing and Neuroscience) dataset, including BIDS validation, multimodal processing of sMRI, rs-fMRI, task-fMRI, and MEG, phenotype extraction, and QC integration. Triggers include: 'Cam-CAN', 'CamCAN', 'process Cam-CAN data', 'Cam-CAN MEG', 'Cam-CAN fMRI', or any request to run the Cam-CAN multimodal pipeline.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Cam-CAN Skill (Dataset-Orchestration Layer) skill

What this skill tells your AI

The instructions your AI receives, as published by cuhk-aim-group/neurodiscovery in skills/camcan-skill/SKILL.md and read by ahel’s review.

Overview

camcan-skill is the NeuroClaw orchestration skill for the Cam-CAN (Cambridge Centre for Ageing and Neuroscience) dataset.

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 via claw-shell.
  • Companion scripts in scripts/ provide reference implementations for BIDS validation, phenotype extraction, and QC.

Core workflow (never bypassed):

  1. Identify input Cam-CAN data and target modalities.
  2. Generate a numbered execution plan clearly stating WHAT needs to be done and which tool skill will handle each step.
  3. Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
  4. On confirmation, delegate every step to the appropriate skill via claw-shell.
  5. After execution, save all outputs in a clean directory structure (camcan_output/).

Research use only.


Quick Reference

TaskWhat needs to be doneDelegate toExpected output
BIDS validationValidate Cam-CAN BIDS structurescripts/validate_camcan.pyValidation report
sMRI processingBrain extraction, tissue segmentation, cortical reconstructionsmri-skillsmri_output/ derivatives
rs-fMRI processingPreprocessing, denoising, connectivityfmri-skillfmri_output/ derivatives
task-fMRI processingMovie-watching task GLM, activation analysisfmri-skillfmri_output/ task results
MEG processingSource localization, time-frequency analysismeg-skillmeg_output/ TFR and source
Phenotype extractionCognitive, sensory, health measuresscripts/extract_camcan_phenotype.pyMerged phenotype CSV
QC summaryPer-subject quality controlscripts/camcan_qc_summary.pyQC summary + exclusion list

Dataset Characteristics

  • Cohort: ~700 participants spanning the adult lifespan (18-88 years)
  • Design: Cross-sectional population-based sample
  • Site: MRC Cognition and Brain Sciences Unit, Cambridge, UK
  • Scanner: Siemens 3T TIM TRIO
  • MEG system: CTF 275-channel system
  • Access: OpenNeuro ds003097 (CC0 license)

Supported Modalities

ModalityDescriptionTasks/Conditions
T1wHigh-resolution structural MRISingle acquisition
T2*wFunctional MRI (multi-echo EPI)Resting-state (eyes open), Movie-watching
MEGMagnetoencephalographyResting-state (eyes open), Auditory (passive listening), Visual (passive viewing)
dMRIDiffusion-weighted imagingDTI tractography

Cam-CAN Task Paradigms

fMRI Tasks

TaskDescriptionDuration
RESTResting-state (eyes open)~8 min
MOVIEMovie-watching (feature film excerpts)~15 min

MEG Tasks

TaskDescriptionDuration
RESTResting-state (eyes open, eyes closed)~8 min
AUDITORYPassive listening to tones and speech~5 min
VISUALPassive viewing of visual stimuli~5 min

BIDS Preparation

Script: scripts/validate_camcan.py

Validates Cam-CAN BIDS structure and generates a compliance report.

python skills/camcan-skill/scripts/validate_camcan.py \
  --input /path/to/CamCAN/bids \
  --output /path/to/camcan_output/qc/bids_validation.csv

Features:

  • BIDS directory structure validation
  • Modality completeness check (T1w, T2*w, MEG, dMRI)
  • Sidecar JSON presence and content validation
  • Participant ID consistency across modalities
  • Missing data identification and reporting

Core Workflow (Never Bypassed)

  1. Identify user target: full Cam-CAN processing, imaging subset, phenotype extraction, or BIDS validation only.
  2. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
  3. Wait for explicit confirmation (YES / execute / proceed).
  4. On confirmation, run BIDS validation using scripts/validate_camcan.py.
  5. Delegate to smri-skill for structural MRI processing.
  6. Delegate to fmri-skill for functional MRI processing (resting-state and movie-watching).
  7. Delegate to meg-skill for MEG processing (source localization, time-frequency analysis).
  8. If phenotype extraction is requested, run scripts/extract_camcan_phenotype.py.
  9. If QC summary is requested, run scripts/camcan_qc_summary.py.
  10. Save outputs into camcan_output/.

Modality Processing Delegation

ModalityDelegated skillTypical tasksMain outputs
sMRI (T1w)smri-skillbrain extraction, tissue segmentation, cortical reconstructionsmri_output/ derivatives
fMRI (T2*w)fmri-skillpreprocessing, denoising, connectivity, task GLMfmri_output/ derivatives
MEGmeg-skillsource localization, time-frequency, connectivitymeg_output/ TFR and source
dMRIdwi-skilldiffusion preprocessing, tensor metricsdwi_output/ metrics

Standard Output Layout

camcan_output/
├── bids/                   # BIDS-staged data (or validation report)
├── smri/                   # Structural MRI derivatives
├── fmri/                   # Functional MRI derivatives (rest + movie)
├── meg/                    # MEG derivatives (TFR, source, connectivity)
├── dwi/                    # Diffusion MRI derivatives
├── phenotype/              # Merged phenotype tables
├── qc/                     # QC summaries and exclusion lists
└── logs/                   # Processing logs

Benchmark Adapter Guidance

For benchmark-style prompts, do not force the full orchestration when the task only asks for local Cam-CAN data validation or staging.

  • If the task starts from Cam-CAN data already present on disk and only asks for BIDS validation:
    • Skip the download stage
    • Default to the narrow path local Cam-CAN discovery -> BIDS validation -> report
  • In benchmark mode, do not require explicit confirmation before presenting the validation solution.

Safety and Execution Policy

  • No execution before explicit plan confirmation.
  • All execution must be routed via claw-shell.
  • Missing dependencies must be resolved by dependency-planner before running.

Important Notes and Limitations

  • Cam-CAN is a population-based sample spanning the full adult lifespan (18-88 years).
  • MEG data uses CTF 275-channel system; MEG processing requires system-specific handling.
  • Movie-watching fMRI is a unique task paradigm; standard GLM may not apply.
  • Age range is a key variable; consider age-stratified analyses.
  • Data is available on OpenNeuro ds003097 in BIDS format.
  • camcan-skill is orchestration-only; detailed preprocessing logic remains in modality skills.

When to Call This Skill

  • User asks for end-to-end Cam-CAN workflow.
  • User asks to process Cam-CAN MRI and/or MEG data.
  • User needs BIDS validation for Cam-CAN data.
  • User asks to extract Cam-CAN phenotype data (cognitive, sensory, health).
  • User asks for age-related brain imaging analysis using Cam-CAN.

Complementary / Related Skills

  • smri-skill → structural MRI preprocessing
  • fmri-skill → functional MRI preprocessing and analysis
  • meg-skill → MEG processing (source localization, time-frequency)
  • mne-eeg-tool → MNE-Python EEG/MEG processing
  • bids-organizer → BIDS validation and organization
  • brain-visualization → visualization of derivatives
  • dependency-planner → dependency resolution
  • conda-env-manager → environment management
  • claw-shell → command execution

Reference

Created At: 2026-05-06 13:31 HKT Last Updated At: 2026-05-06 13:31 HKT Author: chengwang96

Signals

GitHub stars
85
Forks
4
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
camcan-skill-cuhk-aim-group
Source
github.com/cuhk-aim-group/neurodiscovery