TCP Skill (Dataset-Orchestration Layer)
Overview
tcp-skill is the NeuroClaw orchestration skill for the Transdiagnostic Connectome Project (TCP) dataset, collected at Washington University in St. Louis.
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 TCP 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 (
tcp_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| BIDS validation |
Validate TCP BIDS structure |
scripts/validate_tcp.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 |
| dMRI processing |
Diffusion preprocessing, tractography |
dwi-skill |
dwi_output/ metrics |
| Phenotype extraction |
Psychiatric diagnosis, dimensional measures |
scripts/extract_tcp_phenotype.py |
Merged phenotype CSV |
| QC summary |
Per-subject quality control |
scripts/tcp_qc_summary.py |
QC summary + exclusion list |
Dataset Characteristics
- Cohort: ~600+ participants
- Transdiagnostic approach: participants span multiple diagnostic categories
- Healthy controls: Age-matched
- Psychiatric groups: Depression, anxiety, psychosis spectrum, etc.
- Scanner: 3T Siemens (WashU)
- Modalities: T1w sMRI, rs-fMRI, dMRI/DTI
- Clinical: RDoC-informed dimensional measures, diagnostic assessments
- Access: NIMH Data Archive (NDA), OpenNeuro
- Format: BIDS-compliant
- Reference: Barch, Gordon et al., WashU
Supported Modalities
| Modality |
Description |
Details |
| T1w |
High-resolution structural MRI |
1mm isotropic, cortical thickness |
| rs-fMRI |
Resting-state functional MRI |
Eyes open, functional connectivity |
| dMRI |
Diffusion-weighted imaging |
DTI, white matter tractography |
TCP Clinical Dimensions
| Domain |
Measures |
RDoC Construct |
| Negative valence |
Anhedonia, anxiety |
Negative valence systems |
| Positive valence |
Reward processing |
Positive valence systems |
| Cognitive |
Working memory, executive function |
Cognitive systems |
| Social |
Social cognition |
Social processes |
| Arousal |
Arousal/regulatory systems |
Arousal/regulatory systems |
BIDS Preparation
Script: scripts/validate_tcp.py
Validates TCP BIDS structure and generates a compliance report.
python skills/tcp-skill/scripts/validate_tcp.py \
--input /path/to/TCP/bids \
--output /path/to/tcp_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Modality completeness check (T1w, rs-fMRI, dMRI)
- Diagnostic group labeling
- Missing data identification
Core Workflow (Never Bypassed)
- Identify user target: full TCP 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_tcp.py.
- Delegate to
smri-skill for structural MRI processing.
- Delegate to
fmri-skill for rs-fMRI processing.
- Delegate to
dwi-skill for dMRI processing.
- If phenotype extraction is requested, run
scripts/extract_tcp_phenotype.py.
- If QC summary is requested, run
scripts/tcp_qc_summary.py.
- Save outputs into
tcp_output/.
Modality Processing Delegation
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w) |
smri-skill |
brain extraction, tissue segmentation, cortical thickness |
smri_output/ derivatives |
| rs-fMRI |
fmri-skill |
preprocessing, denoising, connectivity |
fmri_output/ connectivity |
| dMRI |
dwi-skill |
diffusion preprocessing, tensor metrics |
dwi_output/ metrics |
Standard Output Layout
tcp_output/
├── bids/ # BIDS-staged data (or validation report)
├── smri/ # Structural MRI derivatives
├── fmri/ # Functional MRI derivatives (rs-fMRI connectivity)
├── dwi/ # Diffusion MRI derivatives
├── phenotype/ # Merged phenotype tables (diagnosis, dimensional)
├── 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 TCP data validation.
- If the task starts from TCP data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local TCP 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
- TCP uses a transdiagnostic approach; analyses should consider dimensional rather than categorical models.
- RDoC-informed phenotyping enables cross-diagnostic connectivity analyses.
- Connectome-based predictive modeling (CPM) is a commonly used analysis approach.
- Multi-diagnostic design requires careful handling of group comparisons.
tcp-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end TCP workflow.
- User asks to process TCP neuroimaging data.
- User needs BIDS validation for TCP data.
- User asks to extract TCP phenotype data (diagnostic, dimensional).
- User asks for transdiagnostic connectivity 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
- TCP: Washington University in St. Louis
- Barch, Gordon et al.: Transdiagnostic Connectome Project
- NIMH Data Archive: https://nda.nih.gov/
Created At: 2026-05-06 14:21 HKT
Last Updated At: 2026-05-06 14:21 HKT
Author: chengwang96
1---2name: tcp-skill3description: Use this skill whenever the user wants an end-to-end workflow for the Transdiagnostic Connectome Project (TCP) dataset, including BIDS validation, multimodal processing of sMRI, rs-fMRI, and dMRI, phenotype extraction, and QC integration. Triggers include: 'TCP', 'Transdiagnostic Connectome', 'process TCP data', 'TCP fMRI', or any request to run the TCP multimodal pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# TCP Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`tcp-skill` is the NeuroClaw orchestration skill for the **Transdiagnostic Connectome Project (TCP)** dataset, collected at Washington University in St. Louis.
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 TCP 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 (`tcp_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 TCP BIDS structure | `scripts/validate_tcp.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| dMRI processing | Diffusion preprocessing, tractography | `dwi-skill` | `dwi_output/` metrics |
37| Phenotype extraction | Psychiatric diagnosis, dimensional measures | `scripts/extract_tcp_phenotype.py` | Merged phenotype CSV |
38| QC summary | Per-subject quality control | `scripts/tcp_qc_summary.py` | QC summary + exclusion list |
39
40---
41
42## Dataset Characteristics
43
44- **Cohort**: ~600+ participants
45 - Transdiagnostic approach: participants span multiple diagnostic categories
46 - **Healthy controls**: Age-matched
47 - **Psychiatric groups**: Depression, anxiety, psychosis spectrum, etc.
48- **Scanner**: 3T Siemens (WashU)
49- **Modalities**: T1w sMRI, rs-fMRI, dMRI/DTI
50- **Clinical**: RDoC-informed dimensional measures, diagnostic assessments
51- **Access**: NIMH Data Archive (NDA), OpenNeuro
52- **Format**: BIDS-compliant
53- **Reference**: Barch, Gordon et al., WashU
54
55---
56
57## Supported Modalities
58
59| Modality | Description | Details |
60|---|---|---|
61| T1w | High-resolution structural MRI | 1mm isotropic, cortical thickness |
62| rs-fMRI | Resting-state functional MRI | Eyes open, functional connectivity |
63| dMRI | Diffusion-weighted imaging | DTI, white matter tractography |
64
65---
66
67## TCP Clinical Dimensions
68
69| Domain | Measures | RDoC Construct |
70|---|---|---|
71| Negative valence | Anhedonia, anxiety | Negative valence systems |
72| Positive valence | Reward processing | Positive valence systems |
73| Cognitive | Working memory, executive function | Cognitive systems |
74| Social | Social cognition | Social processes |
75| Arousal | Arousal/regulatory systems | Arousal/regulatory systems |
76
77---
78
79## BIDS Preparation
80
81### Script: `scripts/validate_tcp.py`
82
83Validates TCP BIDS structure and generates a compliance report.
84
85```bash
86python skills/tcp-skill/scripts/validate_tcp.py \
87 --input /path/to/TCP/bids \
88 --output /path/to/tcp_output/qc/bids_validation.csv
89```
90
91Features:
92- BIDS directory structure validation
93- Modality completeness check (T1w, rs-fMRI, dMRI)
94- Diagnostic group labeling
95- Missing data identification
96
97---
98
99## Core Workflow (Never Bypassed)
100
1011. Identify user target: full TCP processing, imaging subset, phenotype extraction, or BIDS validation only.
1022. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
1033. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
1044. On confirmation, run BIDS validation using `scripts/validate_tcp.py`.
1055. Delegate to `smri-skill` for structural MRI processing.
1066. Delegate to `fmri-skill` for rs-fMRI processing.
1077. Delegate to `dwi-skill` for dMRI processing.
1088. If phenotype extraction is requested, run `scripts/extract_tcp_phenotype.py`.
1099. If QC summary is requested, run `scripts/tcp_qc_summary.py`.
11010. Save outputs into `tcp_output/`.
111
112---
113
114## Modality Processing Delegation
115
116| Modality | Delegated skill | Typical tasks | Main outputs |
117|---|---|---|---|
118| sMRI (T1w) | `smri-skill` | brain extraction, tissue segmentation, cortical thickness | `smri_output/` derivatives |
119| rs-fMRI | `fmri-skill` | preprocessing, denoising, connectivity | `fmri_output/` connectivity |
120| dMRI | `dwi-skill` | diffusion preprocessing, tensor metrics | `dwi_output/` metrics |
121
122---
123
124## Standard Output Layout
125
126```
127tcp_output/
128├── bids/ # BIDS-staged data (or validation report)
129├── smri/ # Structural MRI derivatives
130├── fmri/ # Functional MRI derivatives (rs-fMRI connectivity)
131├── dwi/ # Diffusion MRI derivatives
132├── phenotype/ # Merged phenotype tables (diagnosis, dimensional)
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 TCP data validation.
142
143- If the task starts from TCP data already present on disk and only asks for BIDS validation:
144 - Skip the download stage
145 - Default to the narrow path `local TCP 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- TCP uses a transdiagnostic approach; analyses should consider dimensional rather than categorical models.
159- RDoC-informed phenotyping enables cross-diagnostic connectivity analyses.
160- Connectome-based predictive modeling (CPM) is a commonly used analysis approach.
161- Multi-diagnostic design requires careful handling of group comparisons.
162- `tcp-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
163
164---
165
166## When to Call This Skill
167- User asks for end-to-end TCP workflow.
168- User asks to process TCP neuroimaging data.
169- User needs BIDS validation for TCP data.
170- User asks to extract TCP phenotype data (diagnostic, dimensional).
171- User asks for transdiagnostic connectivity analysis.
172
173---
174
175## Complementary / Related Skills
176- `smri-skill` → structural MRI preprocessing
177- `fmri-skill` → functional MRI preprocessing and analysis
178- `dwi-skill` → diffusion MRI preprocessing
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- TCP: Washington University in St. Louis
189- Barch, Gordon et al.: Transdiagnostic Connectome Project
190- NIMH Data Archive: https://nda.nih.gov/
191
192Created At: 2026-05-06 14:21 HKT
193Last Updated At: 2026-05-06 14:21 HKT
194Author: chengwang96