name: hcp-skill
description: "Use this skill whenever the user wants an end-to-end workflow for the HCP Young Adult dataset, including dataset download, organization, and multimodal processing of sMRI, fMRI, and DTI. Triggers include: 'HCP Young Adult', 'HCP1200', 'process HCP data', 'HCP sMRI fMRI DTI', or any request to run the full HCP multimodal pipeline. This is the NeuroClaw modality-orchestration layer: it plans WHAT to do and delegates execution to other skills."
license: MIT License (NeuroClaw custom skill - freely modifiable within the project)
HCP Skill (Dataset-Orchestration Layer)
Overview
hcp-skill is the NeuroClaw orchestration skill for the HCP Young Adult (HCP1200) dataset.
It coordinates a fixed three-phase workflow:
- Download HCP data using NeuroSTORM download scripts.
- Prepare/validate data organization for downstream processing.
- Delegate modality pipelines to
smri-skill, fmri-skill, and dwi-skill.
This skill follows NeuroClaw hierarchy:
- Defines WHAT to do, not low-level implementation details.
- Does not execute direct shell commands itself.
- Delegates all execution via
claw-shell to base/tool skills.
Research use only.
Core Workflow (Never Bypassed)
- Identify user target: full HCP1200 download, or subset (
rfMRI, tfMRI, t1t2, all).
- Generate a numbered plan with tools, outputs, runtime, storage, and risks.
- Wait for explicit confirmation (
YES / execute / proceed).
- On confirmation, run download stage first.
- After download success, delegate sequentially or in parallel to:
smri-skill for structural MRI
fmri-skill for functional MRI
dwi-skill for diffusion MRI
- Save outputs into an HCP-centered structure under
hcp_output/.
Download Stage (Mandatory First Step)
Source Repository
Use scripts from:
https://github.com/CUHK-AIM-Group/NeuroSTORM/tree/main/scripts/dataset_download
Supported Download Entry Scripts
download_HCP_1200_all.py (all modalities)
download_HCP_1200_rfMRI.py (resting-state fMRI focused)
download_HCP_1200_tfMRI.py (task fMRI focused)
download_HCP_1200_t1t2.py (structural T1w/T2w focused)
all_pid.pkl (subject list / metadata used by downloader)
Delegation Rules for Download
- Environment/setup checks:
dependency-planner + conda-env-manager
- Repository/script fetch and execution:
claw-shell
- Optional raw-data organization to BIDS-style staging:
bids-organizer
Download Inputs to Confirm in Plan
- HCP credentials/token availability
- Target subset (
all, rfMRI, tfMRI, t1t2)
- Subject list scope (full or custom IDs)
- Destination directory with sufficient disk space
Multimodal Processing Delegation
After download completes, hcp-skill delegates by modality:
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w/T2w) |
smri-skill |
brain extraction, tissue segmentation, cortical reconstruction, ROI morphometry |
smri_output/ derivatives and stats |
| fMRI (rfMRI/tfMRI) |
fmri-skill |
preprocessing, denoising, ROI time series, connectivity |
fmri_output/ derivatives, timeseries, connectivity |
| DTI/DWI |
dwi-skill |
diffusion preprocessing, tensor metrics, tractography/connectome |
dwi_output/ or dti_output/ metrics and tract files |
Delegation Strategy
- If user asks for full multimodal HCP analysis: run sMRI -> fMRI -> DTI in ordered phases.
- If user asks for one modality only: call only the corresponding modality skill.
- If compute resources are adequate and the user approves parallel runs: run modality pipelines in parallel after shared prerequisites are ready.
Recommended Output Layout
All assets should be organized under ./hcp_output/:
hcp_output/raw/ (downloaded original HCP files)
hcp_output/staging/ (optional normalized/BIDS-like staging)
hcp_output/smri/ (links or copies from smri_output/)
hcp_output/fmri/ (links or copies from fmri_output/)
hcp_output/dti/ (links or copies from dti_output/ or dwi_output/)
hcp_output/logs/ (download + orchestration logs)
Benchmark Adapter Guidance
For benchmark-style prompts, do not force the full download -> staging -> multimodal processing orchestration when the task is only asking for local HCP data staging or organization.
- If the task starts from raw HCP data already present on disk and only asks for BIDS-style staging / organization:
- skip the mandatory download stage
- do not automatically delegate to
smri-skill, fmri-skill, or dwi-skill
- default to the narrow path
local raw HCP discovery -> BIDS-style staging -> minimal metadata -> validation/report
- In benchmark mode, do not require explicit confirmation before presenting the direct staging solution.
- Preserve the HCP-centered output contract under
hcp_output/staging/ when the task is specifically a staging benchmark.
- Only use the full multimodal orchestration and confirmation-heavy workflow when the prompt explicitly asks for download, end-to-end multimodal HCP processing, or post-staging structural / functional / diffusion analysis.
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.
- If download fails for partial subjects, continue batch with clear failure report and retry list.
Important Notes and Limitations
- HCP multimodal processing is resource intensive (CPU, RAM, and storage).
- Download stage may require stable network and credential renewal.
- HCP directory conventions can vary by subset; always validate expected files before starting modality pipelines.
hcp-skill is orchestration-only; detailed preprocessing logic remains in smri-skill, fmri-skill, and dwi-skill.
- For highest-fidelity HCP-native preprocessing, optionally delegate to
hcppipeline-tool as an alternative route.
When to Call This Skill
- User asks for end-to-end HCP Young Adult workflow.
- User asks to download HCP1200 and then run sMRI/fMRI/DTI processing.
- User needs a single entry point for HCP multimodal orchestration.
Complementary / Related Skills
smri-skill
fmri-skill
dwi-skill
hcppipeline-tool
bids-organizer
dependency-planner
conda-env-manager
claw-shell
Reference
- NeuroSTORM HCP download scripts:
https://github.com/CUHK-AIM-Group/NeuroSTORM/tree/main/scripts/dataset_download
Created At: 2026-03-28 19:27 HKT
Last Updated At: 2026-03-28 19:27 HKT
Author: chengwang96
1---2name: hcp-skill3description: Use this skill whenever the user wants an end-to-end workflow for the HCP Young Adult dataset, including dataset download, organization, and multimodal processi4---5---6name: hcp-skill7description: "Use this skill whenever the user wants an end-to-end workflow for the HCP Young Adult dataset, including dataset download, organization, and multimodal processing of sMRI, fMRI, and DTI. Triggers include: 'HCP Young Adult', 'HCP1200', 'process HCP data', 'HCP sMRI fMRI DTI', or any request to run the full HCP multimodal pipeline. This is the NeuroClaw modality-orchestration layer: it plans WHAT to do and delegates execution to other skills."8license: MIT License (NeuroClaw custom skill - freely modifiable within the project)9---1011# HCP Skill (Dataset-Orchestration Layer)1213## Overview14`hcp-skill` is the NeuroClaw orchestration skill for the **HCP Young Adult (HCP1200)** dataset.1516It coordinates a fixed three-phase workflow:171. Download HCP data using NeuroSTORM download scripts.182. Prepare/validate data organization for downstream processing.193. Delegate modality pipelines to `smri-skill`, `fmri-skill`, and `dwi-skill`.2021This skill follows NeuroClaw hierarchy:22- Defines **WHAT to do**, not low-level implementation details.23- Does **not** execute direct shell commands itself.24- Delegates all execution via `claw-shell` to base/tool skills.2526**Research use only.**2728---2930## Core Workflow (Never Bypassed)311. Identify user target: full HCP1200 download, or subset (`rfMRI`, `tfMRI`, `t1t2`, `all`).322. Generate a numbered plan with tools, outputs, runtime, storage, and risks.333. Wait for explicit confirmation (`YES` / `execute` / `proceed`).344. On confirmation, run download stage first.355. After download success, delegate sequentially or in parallel to:36 - `smri-skill` for structural MRI37 - `fmri-skill` for functional MRI38 - `dwi-skill` for diffusion MRI396. Save outputs into an HCP-centered structure under `hcp_output/`.4041---4243## Download Stage (Mandatory First Step)4445### Source Repository46Use scripts from:47- `https://github.com/CUHK-AIM-Group/NeuroSTORM/tree/main/scripts/dataset_download`4849### Supported Download Entry Scripts50- `download_HCP_1200_all.py` (all modalities)51- `download_HCP_1200_rfMRI.py` (resting-state fMRI focused)52- `download_HCP_1200_tfMRI.py` (task fMRI focused)53- `download_HCP_1200_t1t2.py` (structural T1w/T2w focused)54- `all_pid.pkl` (subject list / metadata used by downloader)5556### Delegation Rules for Download57- Environment/setup checks: `dependency-planner` + `conda-env-manager`58- Repository/script fetch and execution: `claw-shell`59- Optional raw-data organization to BIDS-style staging: `bids-organizer`6061### Download Inputs to Confirm in Plan62- HCP credentials/token availability63- Target subset (`all`, `rfMRI`, `tfMRI`, `t1t2`)64- Subject list scope (full or custom IDs)65- Destination directory with sufficient disk space6667---6869## Multimodal Processing Delegation7071After download completes, `hcp-skill` delegates by modality:7273| Modality | Delegated skill | Typical tasks | Main outputs |74|---|---|---|---|75| sMRI (T1w/T2w) | `smri-skill` | brain extraction, tissue segmentation, cortical reconstruction, ROI morphometry | `smri_output/` derivatives and stats |76| fMRI (rfMRI/tfMRI) | `fmri-skill` | preprocessing, denoising, ROI time series, connectivity | `fmri_output/` derivatives, timeseries, connectivity |77| DTI/DWI | `dwi-skill` | diffusion preprocessing, tensor metrics, tractography/connectome | `dwi_output/` or `dti_output/` metrics and tract files |7879### Delegation Strategy80- If user asks for full multimodal HCP analysis: run sMRI -> fMRI -> DTI in ordered phases.81- If user asks for one modality only: call only the corresponding modality skill.82- If compute resources are adequate and the user approves parallel runs: run modality pipelines in parallel after shared prerequisites are ready.8384---8586## Recommended Output Layout87All assets should be organized under `./hcp_output/`:88- `hcp_output/raw/` (downloaded original HCP files)89- `hcp_output/staging/` (optional normalized/BIDS-like staging)90- `hcp_output/smri/` (links or copies from `smri_output/`)91- `hcp_output/fmri/` (links or copies from `fmri_output/`)92- `hcp_output/dti/` (links or copies from `dti_output/` or `dwi_output/`)93- `hcp_output/logs/` (download + orchestration logs)9495---9697## Benchmark Adapter Guidance9899For benchmark-style prompts, do not force the full `download -> staging -> multimodal processing` orchestration when the task is only asking for local HCP data staging or organization.100101- If the task starts from raw HCP data already present on disk and only asks for BIDS-style staging / organization:102 - skip the mandatory download stage103 - do not automatically delegate to `smri-skill`, `fmri-skill`, or `dwi-skill`104 - default to the narrow path `local raw HCP discovery -> BIDS-style staging -> minimal metadata -> validation/report`105- In benchmark mode, do not require explicit confirmation before presenting the direct staging solution.106- Preserve the HCP-centered output contract under `hcp_output/staging/` when the task is specifically a staging benchmark.107- Only use the full multimodal orchestration and confirmation-heavy workflow when the prompt explicitly asks for download, end-to-end multimodal HCP processing, or post-staging structural / functional / diffusion analysis.108109---110111## Safety and Execution Policy112- No execution before explicit plan confirmation.113- All execution must be routed via `claw-shell`.114- Missing dependencies must be resolved by `dependency-planner` before running.115- If download fails for partial subjects, continue batch with clear failure report and retry list.116117---118119## Important Notes and Limitations120- HCP multimodal processing is resource intensive (CPU, RAM, and storage).121- Download stage may require stable network and credential renewal.122- HCP directory conventions can vary by subset; always validate expected files before starting modality pipelines.123- `hcp-skill` is orchestration-only; detailed preprocessing logic remains in `smri-skill`, `fmri-skill`, and `dwi-skill`.124- For highest-fidelity HCP-native preprocessing, optionally delegate to `hcppipeline-tool` as an alternative route.125126---127128## When to Call This Skill129- User asks for end-to-end HCP Young Adult workflow.130- User asks to download HCP1200 and then run sMRI/fMRI/DTI processing.131- User needs a single entry point for HCP multimodal orchestration.132133---134135## Complementary / Related Skills136- `smri-skill`137- `fmri-skill`138- `dwi-skill`139- `hcppipeline-tool`140- `bids-organizer`141- `dependency-planner`142- `conda-env-manager`143- `claw-shell`144145---146147## Reference148- NeuroSTORM HCP download scripts:149 - `https://github.com/CUHK-AIM-Group/NeuroSTORM/tree/main/scripts/dataset_download`150151Created At: 2026-03-28 19:27 HKT152Last Updated At: 2026-03-28 19:27 HKT153Author: chengwang96