PNC Skill (Dataset-Orchestration Layer)
Overview
pnc-skill is the NeuroClaw orchestration skill for the Philadelphia Neurodevelopmental Cohort (PNC) dataset, a large-scale collaborative study between the University of Pennsylvania and the Children's Hospital of Philadelphia.
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 PNC 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 (
pnc_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| BIDS validation |
Validate PNC BIDS structure |
scripts/validate_pnc.py |
Validation report |
| sMRI processing |
Brain extraction, tissue segmentation |
smri-skill |
smri_output/ derivatives |
| rs-fMRI processing |
Preprocessing, denoising, connectivity |
fmri-skill |
fmri_output/ connectivity |
| task-fMRI processing |
Go/No-Go, emotion, memory task GLM |
fmri-skill |
fmri_output/ task results |
| dMRI processing |
Diffusion preprocessing, tensor metrics |
dwi-skill |
dwi_output/ metrics |
| Phenotype extraction |
Cognitive, psychiatric, demographic |
scripts/extract_pnc_phenotype.py |
Merged phenotype CSV |
| QC summary |
Per-subject quality control |
scripts/pnc_qc_summary.py |
QC summary + exclusion list |
Dataset Characteristics
- Cohort: ~9,000+ youth aged 8-21 years
- Scanner: 3T Siemens TIM Trio
- Modalities: T1w sMRI, rs-fMRI, task-fMRI, dMRI/DTI
- Task paradigms: Go/No-Go, Fraternal Twins, Penn Line Orientation, Penn Word Memory
- Clinical: Psychiatric assessment, cognitive battery (Penn CNB)
- Access: NIMH Data Archive (NDA), OpenNeuro ds000030 (BIDS subset)
- Format: BIDS-compliant (community conversion)
- Reference: Satterthwaite et al. (2014), NeuroImage
Supported Modalities
| Modality |
Description |
Tasks/Conditions |
| T1w |
High-resolution structural MRI |
1mm isotropic |
| rs-fMRI |
Resting-state functional MRI |
Eyes open |
| task-fMRI |
Task-based functional MRI |
Go/No-Go, Emotion, Line Orientation, Word Memory |
| dMRI |
Diffusion-weighted imaging |
DTI, white matter tractography |
PNC Task Paradigms
| Task |
Description |
Cognitive Domain |
| Go/No-Go |
Response inhibition / impulse control |
Executive function |
| Fraternal Twins |
Emotion recognition |
Social cognition |
| Penn Line Orientation |
Spatial processing |
Visuospatial |
| Penn Word Memory |
Memory encoding/retrieval |
Episodic memory |
BIDS Preparation
Script: scripts/validate_pnc.py
Validates PNC BIDS structure and generates a compliance report.
python skills/pnc-skill/scripts/validate_pnc.py \
--input /path/to/PNC/bids \
--output /path/to/pnc_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Modality completeness check (T1w, rs-fMRI, task-fMRI, dMRI)
- Age range verification (8-21 years)
- Task paradigm presence check
Core Workflow (Never Bypassed)
- Identify user target: full PNC 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_pnc.py.
- Delegate to
smri-skill for structural MRI processing.
- Delegate to
fmri-skill for rs-fMRI and task-fMRI processing.
- Delegate to
dwi-skill for dMRI processing.
- If phenotype extraction is requested, run
scripts/extract_pnc_phenotype.py.
- If QC summary is requested, run
scripts/pnc_qc_summary.py.
- Save outputs into
pnc_output/.
Modality Processing Delegation
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w) |
smri-skill |
brain extraction, tissue segmentation |
smri_output/ derivatives |
| rs-fMRI |
fmri-skill |
preprocessing, denoising, connectivity |
fmri_output/ connectivity |
| 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
pnc_output/
├── bids/ # BIDS-staged data (or validation report)
├── smri/ # Structural MRI derivatives
├── fmri/ # Functional MRI derivatives (rs + task)
├── dwi/ # Diffusion MRI derivatives
├── phenotype/ # Merged phenotype tables (cognitive, psychiatric)
├── 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 PNC data validation.
- If the task starts from PNC data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local PNC 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
- PNC is a developmental cohort; analyses should account for age effects (8-21 years).
- Pediatric data may require adjusted preprocessing parameters (e.g., higher motion thresholds).
- Penn CNB (Computerized Neurocognitive Battery) provides rich cognitive phenotyping.
- Psychiatric assessment includes DSM-based diagnoses.
- Large sample size enables well-powered developmental analyses.
pnc-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end PNC workflow.
- User asks to process PNC neuroimaging data.
- User needs BIDS validation for PNC data.
- User asks to extract PNC phenotype data (cognitive, psychiatric, demographic).
- User asks for developmental 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
Created At: 2026-05-06 13:55 HKT
Last Updated At: 2026-05-06 13:55 HKT
Author: chengwang96
1---2name: pnc-skill3description: Use this skill whenever the user wants an end-to-end workflow for the Philadelphia Neurodevelopmental Cohort (PNC) dataset, including BIDS validation, multimodal processing of sMRI, rs-fMRI, task-fMRI, and dMRI, phenotype extraction, and QC integration. Triggers include: 'PNC', 'Philadelphia Neurodevelopmental Cohort', 'process PNC data', 'PNC fMRI', or any request to run the PNC multimodal pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# PNC Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`pnc-skill` is the NeuroClaw orchestration skill for the **Philadelphia Neurodevelopmental Cohort (PNC)** dataset, a large-scale collaborative study between the University of Pennsylvania and the Children's Hospital of Philadelphia.
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 PNC 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 (`pnc_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 PNC BIDS structure | `scripts/validate_pnc.py` | Validation report |
34| sMRI processing | Brain extraction, tissue segmentation | `smri-skill` | `smri_output/` derivatives |
35| rs-fMRI processing | Preprocessing, denoising, connectivity | `fmri-skill` | `fmri_output/` connectivity |
36| task-fMRI processing | Go/No-Go, emotion, memory task GLM | `fmri-skill` | `fmri_output/` task results |
37| dMRI processing | Diffusion preprocessing, tensor metrics | `dwi-skill` | `dwi_output/` metrics |
38| Phenotype extraction | Cognitive, psychiatric, demographic | `scripts/extract_pnc_phenotype.py` | Merged phenotype CSV |
39| QC summary | Per-subject quality control | `scripts/pnc_qc_summary.py` | QC summary + exclusion list |
40
41---
42
43## Dataset Characteristics
44
45- **Cohort**: ~9,000+ youth aged 8-21 years
46- **Scanner**: 3T Siemens TIM Trio
47- **Modalities**: T1w sMRI, rs-fMRI, task-fMRI, dMRI/DTI
48- **Task paradigms**: Go/No-Go, Fraternal Twins, Penn Line Orientation, Penn Word Memory
49- **Clinical**: Psychiatric assessment, cognitive battery (Penn CNB)
50- **Access**: NIMH Data Archive (NDA), OpenNeuro ds000030 (BIDS subset)
51- **Format**: BIDS-compliant (community conversion)
52- **Reference**: Satterthwaite et al. (2014), NeuroImage
53
54---
55
56## Supported Modalities
57
58| Modality | Description | Tasks/Conditions |
59|---|---|---|
60| T1w | High-resolution structural MRI | 1mm isotropic |
61| rs-fMRI | Resting-state functional MRI | Eyes open |
62| task-fMRI | Task-based functional MRI | Go/No-Go, Emotion, Line Orientation, Word Memory |
63| dMRI | Diffusion-weighted imaging | DTI, white matter tractography |
64
65---
66
67## PNC Task Paradigms
68
69| Task | Description | Cognitive Domain |
70|---|---|---|
71| Go/No-Go | Response inhibition / impulse control | Executive function |
72| Fraternal Twins | Emotion recognition | Social cognition |
73| Penn Line Orientation | Spatial processing | Visuospatial |
74| Penn Word Memory | Memory encoding/retrieval | Episodic memory |
75
76---
77
78## BIDS Preparation
79
80### Script: `scripts/validate_pnc.py`
81
82Validates PNC BIDS structure and generates a compliance report.
83
84```bash
85python skills/pnc-skill/scripts/validate_pnc.py \
86 --input /path/to/PNC/bids \
87 --output /path/to/pnc_output/qc/bids_validation.csv
88```
89
90Features:
91- BIDS directory structure validation
92- Modality completeness check (T1w, rs-fMRI, task-fMRI, dMRI)
93- Age range verification (8-21 years)
94- Task paradigm presence check
95
96---
97
98## Core Workflow (Never Bypassed)
99
1001. Identify user target: full PNC processing, imaging subset, 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_pnc.py`.
1045. Delegate to `smri-skill` for structural MRI processing.
1056. Delegate to `fmri-skill` for rs-fMRI and task-fMRI processing.
1067. Delegate to `dwi-skill` for dMRI processing.
1078. If phenotype extraction is requested, run `scripts/extract_pnc_phenotype.py`.
1089. If QC summary is requested, run `scripts/pnc_qc_summary.py`.
10910. Save outputs into `pnc_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 | `smri_output/` derivatives |
118| rs-fMRI | `fmri-skill` | preprocessing, denoising, connectivity | `fmri_output/` connectivity |
119| task-fMRI | `fmri-skill` | task GLM, activation analysis | `fmri_output/` task results |
120| dMRI | `dwi-skill` | diffusion preprocessing, tensor metrics | `dwi_output/` metrics |
121
122---
123
124## Standard Output Layout
125
126```
127pnc_output/
128├── bids/ # BIDS-staged data (or validation report)
129├── smri/ # Structural MRI derivatives
130├── fmri/ # Functional MRI derivatives (rs + task)
131├── dwi/ # Diffusion MRI derivatives
132├── phenotype/ # Merged phenotype tables (cognitive, psychiatric)
133├── qc/ # QC summaries and exclusion lists
134└── logs/ # Processing logs
135```
136
137---
138
139## Benchmark Adapter Guidance
140
141For benchmark-style prompts, do not force the full orchestration when the task only asks for local PNC data validation.
142
143- If the task starts from PNC data already present on disk and only asks for BIDS validation:
144 - Skip the download stage
145 - Default to the narrow path `local PNC discovery -> BIDS validation -> report`
146- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
147
148---
149
150## Safety and Execution Policy
151- No execution before explicit plan confirmation.
152- All execution must be routed via `claw-shell`.
153- Missing dependencies must be resolved by `dependency-planner` before running.
154
155---
156
157## Important Notes and Limitations
158- PNC is a developmental cohort; analyses should account for age effects (8-21 years).
159- Pediatric data may require adjusted preprocessing parameters (e.g., higher motion thresholds).
160- Penn CNB (Computerized Neurocognitive Battery) provides rich cognitive phenotyping.
161- Psychiatric assessment includes DSM-based diagnoses.
162- Large sample size enables well-powered developmental analyses.
163- `pnc-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
164
165---
166
167## When to Call This Skill
168- User asks for end-to-end PNC workflow.
169- User asks to process PNC neuroimaging data.
170- User needs BIDS validation for PNC data.
171- User asks to extract PNC phenotype data (cognitive, psychiatric, demographic).
172- User asks for developmental neuroimaging analysis.
173
174---
175
176## Complementary / Related Skills
177- `smri-skill` → structural MRI preprocessing
178- `fmri-skill` → functional MRI preprocessing and analysis
179- `dwi-skill` → diffusion MRI preprocessing
180- `bids-organizer` → BIDS validation and organization
181- `brain-visualization` → visualization of derivatives
182- `dependency-planner` → dependency resolution
183- `conda-env-manager` → environment management
184- `claw-shell` → command execution
185
186---
187
188## Reference
189- PNC: https://www.med.upenn.edu/bbl/
190- Satterthwaite et al. (2014): Neuroimaging of the Philadelphia Neurodevelopmental Cohort. NeuroImage.
191- OpenNeuro ds000030
192- NIMH Data Archive: https://nda.nih.gov/
193
194Created At: 2026-05-06 13:55 HKT
195Last Updated At: 2026-05-06 13:55 HKT
196Author: chengwang96