UCLA CNP Skill (Dataset-Orchestration Layer)
Overview
ucla-cnp-skill is the NeuroClaw orchestration skill for the UCLA CNP (Consortium for Neuropsychiatric Phenomics) dataset, led by Russell Poldrack and colleagues at UCLA.
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 UCLA CNP 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 (
ucla_cnp_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| BIDS validation |
Validate UCLA CNP BIDS structure |
scripts/validate_ucla_cnp.py |
Validation report |
| sMRI processing |
Brain extraction, tissue segmentation |
smri-skill |
smri_output/ derivatives |
| task-fMRI processing |
Task GLM, activation analysis |
fmri-skill |
fmri_output/ task results |
| dMRI processing |
Diffusion preprocessing, tractography |
dwi-skill |
dwi_output/ metrics |
| Phenotype extraction |
Diagnosis, cognitive, behavioral |
scripts/extract_ucla_cnp_phenotype.py |
Merged phenotype CSV |
| QC summary |
Per-subject quality control |
scripts/ucla_cnp_qc_summary.py |
QC summary + exclusion list |
Dataset Characteristics
- Cohort: ~270 participants
- Healthy controls: Age-matched
- ADHD: Attention deficit hyperactivity disorder
- Bipolar disorder: Bipolar I/II
- Schizophrenia: Schizophrenia spectrum
- Scanner: 3T Siemens TIM Trio (UCLA)
- Modalities: T1w sMRI, task-fMRI, dMRI/DTI
- Tasks: Multiple cognitive tasks (stop-signal, spatial working memory, etc.)
- Clinical: Extensive cognitive battery, diagnostic assessments
- Access: OpenNeuro ds000030
- Format: BIDS-compliant
- Reference: Poldrack et al. (2016), Scientific Data
Supported Modalities
| Modality |
Description |
Tasks/Conditions |
| T1w |
High-resolution structural MRI |
1mm isotropic |
| task-fMRI |
Task-based functional MRI |
Stop-signal, spatial WM, face memory, etc. |
| dMRI |
Diffusion-weighted imaging |
DTI, white matter tractography |
UCLA CNP Task Paradigms
| Task |
Description |
Cognitive Domain |
| Stop-signal |
Response inhibition |
Executive function |
| Spatial working memory |
Spatial WM maintenance |
Working memory |
| Face memory |
Face encoding/retrieval |
Episodic memory |
| Balloon analog risk |
Risk taking behavior |
Decision making |
| Monetary incentive |
Reward processing |
Motivation |
UCLA CNP Diagnostic Groups
| Group |
Description |
Typical N |
| Control |
Healthy age-matched |
~130 |
| ADHD |
Attention deficit |
~50 |
| Bipolar |
Bipolar disorder |
~45 |
| Schizophrenia |
Schizophrenia spectrum |
~45 |
BIDS Preparation
Script: scripts/validate_ucla_cnp.py
Validates UCLA CNP BIDS structure and generates a compliance report.
python skills/ucla-cnp-skill/scripts/validate_ucla_cnp.py \
--input /path/to/UCLA-CNP/bids \
--output /path/to/ucla_cnp_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Diagnostic group completeness check
- Modality completeness (T1w, task-fMRI, dMRI)
- Task paradigm presence verification
Core Workflow (Never Bypassed)
- Identify user target: full UCLA CNP processing, imaging subset, 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_ucla_cnp.py.
- Delegate to
smri-skill for structural MRI processing.
- Delegate to
fmri-skill for task-fMRI processing.
- Delegate to
dwi-skill for dMRI processing.
- If phenotype extraction is requested, run
scripts/extract_ucla_cnp_phenotype.py.
- If QC summary is requested, run
scripts/ucla_cnp_qc_summary.py.
- Save outputs into
ucla_cnp_output/.
Modality Processing Delegation
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w) |
smri-skill |
brain extraction, tissue segmentation |
smri_output/ derivatives |
| task-fMRI |
fmri-skill |
task GLM, activation analysis |
fmri_output/ task results |
| dMRI |
dwi-skill |
diffusion preprocessing, tensor metrics |
dwi_output/ metrics |
Standard Output Layout
ucla_cnp_output/
├── bids/ # BIDS-staged data (or validation report)
├── smri/ # Structural MRI derivatives
├── fmri/ # Functional MRI derivatives (task-fMRI)
├── dwi/ # Diffusion MRI derivatives
├── phenotype/ # Merged phenotype tables (diagnosis, cognitive)
├── 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 UCLA CNP data validation.
- If the task starts from UCLA CNP data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local UCLA CNP 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
- UCLA CNP has 4 diagnostic groups; group comparisons should account for sample size differences.
- Multiple cognitive tasks enable rich cognitive phenotyping.
- OpenNeuro ds000030 is a widely used benchmark dataset for BIDS tools.
- Extensive cognitive battery enables linking brain structure/function to behavior.
ucla-cnp-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end UCLA CNP workflow.
- User asks to process UCLA CNP neuroimaging data.
- User needs BIDS validation for UCLA CNP data.
- User asks to extract UCLA CNP phenotype data (diagnosis, cognitive).
- User asks for multi-disorder neuroimaging analysis.
Complementary / Related Skills
smri-skill → structural MRI preprocessing
fmri-skill → functional MRI preprocessing and analysis
dwi-skill → diffusion MRI preprocessing
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
- UCLA CNP: https://www.humanconnectome.org/
- Poldrack et al. (2016): A phenomic analysis of the UCLA Consortium for Neuropsychiatric Phenomics LA5c Study. Scientific Data.
- OpenNeuro ds000030
Created At: 2026-05-06 14:21 HKT
Last Updated At: 2026-05-06 14:21 HKT
Author: chengwang96
1---2name: ucla-cnp-skill3description: Use this skill whenever the user wants an end-to-end workflow for the UCLA CNP (Consortium for Neuropsychiatric Phenomics) dataset, including BIDS validation, multimodal processing of sMRI, task-fMRI, and dMRI, phenotype extraction, and QC integration. Triggers include: 'UCLA CNP', 'Consortium Neuropsychiatric Phenomics', 'process UCLA CNP', or any request to run the UCLA CNP multimodal pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# UCLA CNP Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`ucla-cnp-skill` is the NeuroClaw orchestration skill for the **UCLA CNP (Consortium for Neuropsychiatric Phenomics)** dataset, led by Russell Poldrack and colleagues at UCLA.
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 UCLA CNP 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 (`ucla_cnp_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 UCLA CNP BIDS structure | `scripts/validate_ucla_cnp.py` | Validation report |
34| sMRI processing | Brain extraction, tissue segmentation | `smri-skill` | `smri_output/` derivatives |
35| task-fMRI processing | Task GLM, activation analysis | `fmri-skill` | `fmri_output/` task results |
36| dMRI processing | Diffusion preprocessing, tractography | `dwi-skill` | `dwi_output/` metrics |
37| Phenotype extraction | Diagnosis, cognitive, behavioral | `scripts/extract_ucla_cnp_phenotype.py` | Merged phenotype CSV |
38| QC summary | Per-subject quality control | `scripts/ucla_cnp_qc_summary.py` | QC summary + exclusion list |
39
40---
41
42## Dataset Characteristics
43
44- **Cohort**: ~270 participants
45 - **Healthy controls**: Age-matched
46 - **ADHD**: Attention deficit hyperactivity disorder
47 - **Bipolar disorder**: Bipolar I/II
48 - **Schizophrenia**: Schizophrenia spectrum
49- **Scanner**: 3T Siemens TIM Trio (UCLA)
50- **Modalities**: T1w sMRI, task-fMRI, dMRI/DTI
51- **Tasks**: Multiple cognitive tasks (stop-signal, spatial working memory, etc.)
52- **Clinical**: Extensive cognitive battery, diagnostic assessments
53- **Access**: OpenNeuro ds000030
54- **Format**: BIDS-compliant
55- **Reference**: Poldrack et al. (2016), Scientific Data
56
57---
58
59## Supported Modalities
60
61| Modality | Description | Tasks/Conditions |
62|---|---|---|
63| T1w | High-resolution structural MRI | 1mm isotropic |
64| task-fMRI | Task-based functional MRI | Stop-signal, spatial WM, face memory, etc. |
65| dMRI | Diffusion-weighted imaging | DTI, white matter tractography |
66
67---
68
69## UCLA CNP Task Paradigms
70
71| Task | Description | Cognitive Domain |
72|---|---|---|
73| Stop-signal | Response inhibition | Executive function |
74| Spatial working memory | Spatial WM maintenance | Working memory |
75| Face memory | Face encoding/retrieval | Episodic memory |
76| Balloon analog risk | Risk taking behavior | Decision making |
77| Monetary incentive | Reward processing | Motivation |
78
79---
80
81## UCLA CNP Diagnostic Groups
82
83| Group | Description | Typical N |
84|---|---|---|
85| Control | Healthy age-matched | ~130 |
86| ADHD | Attention deficit | ~50 |
87| Bipolar | Bipolar disorder | ~45 |
88| Schizophrenia | Schizophrenia spectrum | ~45 |
89
90---
91
92## BIDS Preparation
93
94### Script: `scripts/validate_ucla_cnp.py`
95
96Validates UCLA CNP BIDS structure and generates a compliance report.
97
98```bash
99python skills/ucla-cnp-skill/scripts/validate_ucla_cnp.py \
100 --input /path/to/UCLA-CNP/bids \
101 --output /path/to/ucla_cnp_output/qc/bids_validation.csv
102```
103
104Features:
105- BIDS directory structure validation
106- Diagnostic group completeness check
107- Modality completeness (T1w, task-fMRI, dMRI)
108- Task paradigm presence verification
109
110---
111
112## Core Workflow (Never Bypassed)
113
1141. Identify user target: full UCLA CNP processing, imaging subset, phenotype extraction, or BIDS validation only.
1152. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
1163. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
1174. On confirmation, run BIDS validation using `scripts/validate_ucla_cnp.py`.
1185. Delegate to `smri-skill` for structural MRI processing.
1196. Delegate to `fmri-skill` for task-fMRI processing.
1207. Delegate to `dwi-skill` for dMRI processing.
1218. If phenotype extraction is requested, run `scripts/extract_ucla_cnp_phenotype.py`.
1229. If QC summary is requested, run `scripts/ucla_cnp_qc_summary.py`.
12310. Save outputs into `ucla_cnp_output/`.
124
125---
126
127## Modality Processing Delegation
128
129| Modality | Delegated skill | Typical tasks | Main outputs |
130|---|---|---|---|
131| sMRI (T1w) | `smri-skill` | brain extraction, tissue segmentation | `smri_output/` derivatives |
132| task-fMRI | `fmri-skill` | task GLM, activation analysis | `fmri_output/` task results |
133| dMRI | `dwi-skill` | diffusion preprocessing, tensor metrics | `dwi_output/` metrics |
134
135---
136
137## Standard Output Layout
138
139```
140ucla_cnp_output/
141├── bids/ # BIDS-staged data (or validation report)
142├── smri/ # Structural MRI derivatives
143├── fmri/ # Functional MRI derivatives (task-fMRI)
144├── dwi/ # Diffusion MRI derivatives
145├── phenotype/ # Merged phenotype tables (diagnosis, cognitive)
146├── qc/ # QC summaries and exclusion lists
147└── logs/ # Processing logs
148```
149
150---
151
152## Benchmark Adapter Guidance
153
154For benchmark-style prompts, do not force the full orchestration when the task only asks for local UCLA CNP data validation.
155
156- If the task starts from UCLA CNP data already present on disk and only asks for BIDS validation:
157 - Skip the download stage
158 - Default to the narrow path `local UCLA CNP discovery -> BIDS validation -> report`
159- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
160
161---
162
163## Safety and Execution Policy
164- No execution before explicit plan confirmation.
165- All execution must be routed via `claw-shell`.
166- Missing dependencies must be resolved by `dependency-planner` before running.
167
168---
169
170## Important Notes and Limitations
171- UCLA CNP has 4 diagnostic groups; group comparisons should account for sample size differences.
172- Multiple cognitive tasks enable rich cognitive phenotyping.
173- OpenNeuro ds000030 is a widely used benchmark dataset for BIDS tools.
174- Extensive cognitive battery enables linking brain structure/function to behavior.
175- `ucla-cnp-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
176
177---
178
179## When to Call This Skill
180- User asks for end-to-end UCLA CNP workflow.
181- User asks to process UCLA CNP neuroimaging data.
182- User needs BIDS validation for UCLA CNP data.
183- User asks to extract UCLA CNP phenotype data (diagnosis, cognitive).
184- User asks for multi-disorder neuroimaging analysis.
185
186---
187
188## Complementary / Related Skills
189- `smri-skill` → structural MRI preprocessing
190- `fmri-skill` → functional MRI preprocessing and analysis
191- `dwi-skill` → diffusion MRI preprocessing
192- `bids-organizer` → BIDS validation and organization
193- `brain-visualization` → visualization of derivatives
194- `dependency-planner` → dependency resolution
195- `conda-env-manager` → environment management
196- `claw-shell` → command execution
197
198---
199
200## Reference
201- UCLA CNP: https://www.humanconnectome.org/
202- Poldrack et al. (2016): A phenomic analysis of the UCLA Consortium for Neuropsychiatric Phenomics LA5c Study. Scientific Data.
203- OpenNeuro ds000030
204
205Created At: 2026-05-06 14:21 HKT
206Last Updated At: 2026-05-06 14:21 HKT
207Author: chengwang96