OASIS Skill (Dataset-Orchestration Layer)
Overview
oasis-skill is the NeuroClaw orchestration skill for the OASIS (Open Access Series of Imaging Studies) dataset, founded by the Knight Alzheimer Disease Research Center at Washington University.
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):
- Identify input OASIS data and target modalities.
- Generate a numbered execution plan clearly stating WHAT needs to be done and which tool skill will handle each step.
- Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
- On confirmation, delegate every step to the appropriate skill via
claw-shell.
- After execution, save all outputs in a clean directory structure (
oasis_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| BIDS validation |
Validate OASIS BIDS structure |
scripts/validate_oasis.py |
Validation report |
| sMRI processing |
Brain extraction, tissue segmentation, cortical thickness |
smri-skill |
smri_output/ derivatives |
| Phenotype extraction |
CDR, MMSE, demographic data |
scripts/extract_oasis_phenotype.py |
Merged phenotype CSV |
| QC summary |
Per-subject quality control |
scripts/oasis_qc_summary.py |
QC summary + exclusion list |
Dataset Characteristics
- OASIS-1 (Cross-sectional): ~416 subjects aged 18-96
- T1w MRI, some with very mild to mild AD
- OASIS-2 (Longitudinal): ~150 subjects aged 60-96
- Multiple sessions, non-demented and demented
- OASIS-3: ~1,000+ subjects, longitudinal spanning ~20 years
- T1w, PET (amyloid, tau), ASL
- Scanner: 1.5T Siemens Vision
- Clinical: CDR (Clinical Dementia Rating), MMSE, demographics
- Access: OpenNeuro ds000014 (OASIS-1), www.oasis-brains.org (OASIS-3)
- Format: BIDS-compliant (OASIS-1), raw + derivatives (OASIS-3)
Supported Modalities
| Modality |
Description |
Versions |
| T1w |
High-resolution structural MRI |
OASIS-1, 2, 3 |
| PET |
Amyloid (PIB/AV45), Tau (AV1451) |
OASIS-3 |
| ASL |
Arterial spin labeling perfusion |
OASIS-3 |
| fMRI |
Functional MRI |
OASIS-3 (limited) |
OASIS Clinical Measures
| Measure |
Description |
Range |
| CDR |
Clinical Dementia Rating |
0 (normal), 0.5 (very mild), 1 (mild), 2 (moderate), 3 (severe) |
| MMSE |
Mini-Mental State Examination |
0-30 (higher = better) |
| Age |
Age at scan |
18-96 years |
| Sex |
Biological sex |
M/F |
| SES |
Socioeconomic status |
1-5 |
BIDS Preparation
Script: scripts/validate_oasis.py
Validates OASIS BIDS structure and generates a compliance report.
python skills/oasis-skill/scripts/validate_oasis.py \
--input /path/to/OASIS/bids \
--output /path/to/oasis_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Version detection (OASIS-1 vs OASIS-2 vs OASIS-3)
- Modality completeness check
- CDR/MMSE availability verification
Core Workflow (Never Bypassed)
- Identify user target: full OASIS processing, sMRI only, phenotype extraction, or BIDS validation only.
- Generate a numbered plan with tools, outputs, runtime, storage, and risks.
- Wait for explicit confirmation (
YES / execute / proceed).
- On confirmation, run BIDS validation using
scripts/validate_oasis.py.
- Delegate to
smri-skill for structural MRI processing.
- If PET data available (OASIS-3), delegate to
pet-skill.
- If ASL data available (OASIS-3), delegate to
asl-skill.
- If phenotype extraction is requested, run
scripts/extract_oasis_phenotype.py.
- If QC summary is requested, run
scripts/oasis_qc_summary.py.
- Save outputs into
oasis_output/.
Modality Processing Delegation
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w) |
smri-skill |
brain extraction, tissue segmentation, cortical thickness |
smri_output/ derivatives |
| PET |
pet-skill |
SUVR computation, reference region selection |
pet_output/ SUVR maps |
| ASL |
asl-skill |
CBF quantification |
asl_output/ CBF maps |
Standard Output Layout
oasis_output/
├── bids/ # BIDS-staged data (or validation report)
├── smri/ # Structural MRI derivatives
├── pet/ # PET derivatives (SUVR maps)
├── asl/ # ASL derivatives (CBF maps)
├── phenotype/ # Merged phenotype tables (CDR, MMSE, demographics)
├── 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 OASIS data validation.
- If the task starts from OASIS data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local OASIS 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
- OASIS-1 is the most commonly used version; OASIS-3 adds PET and longitudinal data.
- Age range is very wide (18-96); analyses should account for age effects.
- CDR is the primary dementia staging tool; MMSE provides additional cognitive screening.
- OASIS-1 uses 1.5T scanner; resolution is lower than modern 3T/7T datasets.
oasis-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end OASIS workflow.
- User asks to process OASIS structural MRI data.
- User needs BIDS validation for OASIS data.
- User asks to extract OASIS phenotype data (CDR, MMSE, demographics).
- User asks for Alzheimer's disease neuroimaging analysis.
Complementary / Related Skills
smri-skill → structural MRI preprocessing
pet-skill → PET imaging (amyloid, tau)
asl-skill → arterial spin labeling perfusion
fmri-skill → functional MRI (if available)
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
- OASIS: https://www.oasis-brains.org/
- Marcus et al. (2007): Open Access Series of Imaging Studies (OASIS). Journal of Cognitive Neuroscience.
- OpenNeuro ds000014
Created At: 2026-05-06 13:55 HKT
Last Updated At: 2026-05-06 13:55 HKT
Author: chengwang96
1---2name: oasis-skill3description: Use this skill whenever the user wants an end-to-end workflow for the OASIS (Open Access Series of Imaging Studies) dataset, including BIDS validation, multimodal processing of sMRI, and phenotype extraction for aging and Alzheimer's disease research. Triggers include: 'OASIS', 'OASIS-1', 'OASIS-2', 'OASIS-3', 'process OASIS data', 'Alzheimer', or any request to run the OASIS pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# OASIS Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`oasis-skill` is the NeuroClaw orchestration skill for the **OASIS (Open Access Series of Imaging Studies)** dataset, founded by the Knight Alzheimer Disease Research Center at Washington University.
11
12It strictly follows the NeuroClaw hierarchical design principles:
13- This skill **only describes WHAT needs to be done** and **which tool skill to delegate to**.
14- It contains **no implementation code or concrete commands**.
15- All concrete execution is delegated to existing base/tool skills via `claw-shell`.
16- Companion scripts in `scripts/` provide reference implementations for BIDS validation, phenotype extraction, and QC.
17
18**Core workflow (never bypassed):**
191. Identify input OASIS data and target modalities.
202. Generate a **numbered execution plan** clearly stating WHAT needs to be done and which tool skill will handle each step.
213. Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
224. On confirmation, delegate every step to the appropriate skill via `claw-shell`.
235. After execution, save all outputs in a clean directory structure (`oasis_output/`).
24
25**Research use only.**
26
27---
28
29## Quick Reference
30
31| Task | What needs to be done | Delegate to | Expected output |
32|---|---|---|---|
33| BIDS validation | Validate OASIS BIDS structure | `scripts/validate_oasis.py` | Validation report |
34| sMRI processing | Brain extraction, tissue segmentation, cortical thickness | `smri-skill` | `smri_output/` derivatives |
35| Phenotype extraction | CDR, MMSE, demographic data | `scripts/extract_oasis_phenotype.py` | Merged phenotype CSV |
36| QC summary | Per-subject quality control | `scripts/oasis_qc_summary.py` | QC summary + exclusion list |
37
38---
39
40## Dataset Characteristics
41
42- **OASIS-1 (Cross-sectional)**: ~416 subjects aged 18-96
43 - T1w MRI, some with very mild to mild AD
44- **OASIS-2 (Longitudinal)**: ~150 subjects aged 60-96
45 - Multiple sessions, non-demented and demented
46- **OASIS-3**: ~1,000+ subjects, longitudinal spanning ~20 years
47 - T1w, PET (amyloid, tau), ASL
48- **Scanner**: 1.5T Siemens Vision
49- **Clinical**: CDR (Clinical Dementia Rating), MMSE, demographics
50- **Access**: OpenNeuro ds000014 (OASIS-1), www.oasis-brains.org (OASIS-3)
51- **Format**: BIDS-compliant (OASIS-1), raw + derivatives (OASIS-3)
52
53---
54
55## Supported Modalities
56
57| Modality | Description | Versions |
58|---|---|---|
59| T1w | High-resolution structural MRI | OASIS-1, 2, 3 |
60| PET | Amyloid (PIB/AV45), Tau (AV1451) | OASIS-3 |
61| ASL | Arterial spin labeling perfusion | OASIS-3 |
62| fMRI | Functional MRI | OASIS-3 (limited) |
63
64---
65
66## OASIS Clinical Measures
67
68| Measure | Description | Range |
69|---|---|---|
70| CDR | Clinical Dementia Rating | 0 (normal), 0.5 (very mild), 1 (mild), 2 (moderate), 3 (severe) |
71| MMSE | Mini-Mental State Examination | 0-30 (higher = better) |
72| Age | Age at scan | 18-96 years |
73| Sex | Biological sex | M/F |
74| SES | Socioeconomic status | 1-5 |
75
76---
77
78## BIDS Preparation
79
80### Script: `scripts/validate_oasis.py`
81
82Validates OASIS BIDS structure and generates a compliance report.
83
84```bash
85python skills/oasis-skill/scripts/validate_oasis.py \
86 --input /path/to/OASIS/bids \
87 --output /path/to/oasis_output/qc/bids_validation.csv
88```
89
90Features:
91- BIDS directory structure validation
92- Version detection (OASIS-1 vs OASIS-2 vs OASIS-3)
93- Modality completeness check
94- CDR/MMSE availability verification
95
96---
97
98## Core Workflow (Never Bypassed)
99
1001. Identify user target: full OASIS processing, sMRI only, phenotype extraction, or BIDS validation only.
1012. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
1023. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
1034. On confirmation, run BIDS validation using `scripts/validate_oasis.py`.
1045. Delegate to `smri-skill` for structural MRI processing.
1056. If PET data available (OASIS-3), delegate to `pet-skill`.
1067. If ASL data available (OASIS-3), delegate to `asl-skill`.
1078. If phenotype extraction is requested, run `scripts/extract_oasis_phenotype.py`.
1089. If QC summary is requested, run `scripts/oasis_qc_summary.py`.
10910. Save outputs into `oasis_output/`.
110
111---
112
113## Modality Processing Delegation
114
115| Modality | Delegated skill | Typical tasks | Main outputs |
116|---|---|---|---|
117| sMRI (T1w) | `smri-skill` | brain extraction, tissue segmentation, cortical thickness | `smri_output/` derivatives |
118| PET | `pet-skill` | SUVR computation, reference region selection | `pet_output/` SUVR maps |
119| ASL | `asl-skill` | CBF quantification | `asl_output/` CBF maps |
120
121---
122
123## Standard Output Layout
124
125```
126oasis_output/
127├── bids/ # BIDS-staged data (or validation report)
128├── smri/ # Structural MRI derivatives
129├── pet/ # PET derivatives (SUVR maps)
130├── asl/ # ASL derivatives (CBF maps)
131├── phenotype/ # Merged phenotype tables (CDR, MMSE, demographics)
132├── qc/ # QC summaries and exclusion lists
133└── logs/ # Processing logs
134```
135
136---
137
138## Benchmark Adapter Guidance
139
140For benchmark-style prompts, do not force the full orchestration when the task only asks for local OASIS data validation.
141
142- If the task starts from OASIS data already present on disk and only asks for BIDS validation:
143 - Skip the download stage
144 - Default to the narrow path `local OASIS discovery -> BIDS validation -> report`
145- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
146
147---
148
149## Safety and Execution Policy
150- No execution before explicit plan confirmation.
151- All execution must be routed via `claw-shell`.
152- Missing dependencies must be resolved by `dependency-planner` before running.
153
154---
155
156## Important Notes and Limitations
157- OASIS-1 is the most commonly used version; OASIS-3 adds PET and longitudinal data.
158- Age range is very wide (18-96); analyses should account for age effects.
159- CDR is the primary dementia staging tool; MMSE provides additional cognitive screening.
160- OASIS-1 uses 1.5T scanner; resolution is lower than modern 3T/7T datasets.
161- `oasis-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
162
163---
164
165## When to Call This Skill
166- User asks for end-to-end OASIS workflow.
167- User asks to process OASIS structural MRI data.
168- User needs BIDS validation for OASIS data.
169- User asks to extract OASIS phenotype data (CDR, MMSE, demographics).
170- User asks for Alzheimer's disease neuroimaging analysis.
171
172---
173
174## Complementary / Related Skills
175- `smri-skill` → structural MRI preprocessing
176- `pet-skill` → PET imaging (amyloid, tau)
177- `asl-skill` → arterial spin labeling perfusion
178- `fmri-skill` → functional MRI (if available)
179- `bids-organizer` → BIDS validation and organization
180- `brain-visualization` → visualization of derivatives
181- `dependency-planner` → dependency resolution
182- `conda-env-manager` → environment management
183- `claw-shell` → command execution
184
185---
186
187## Reference
188- OASIS: https://www.oasis-brains.org/
189- Marcus et al. (2007): Open Access Series of Imaging Studies (OASIS). Journal of Cognitive Neuroscience.
190- OpenNeuro ds000014
191
192Created At: 2026-05-06 13:55 HKT
193Last Updated At: 2026-05-06 13:55 HKT
194Author: chengwang96