name: dmt-har-med-skill description: "Use this skill whenever the user wants an end-to-end workflow for the DMT-HAR-MED dataset (ds006644), including download, BIDS organization, and processing of rs-fMRI data from a psychedelic intervention study. Triggers include: 'DMT-HAR-MED', 'DMT HAR MED', 'ds006644', 'process DMT data', 'psychedelic fMRI', or any request to run the DMT-HAR-MED pipeline. This is the NeuroClaw dataset-orchestration layer for DMT-HAR-MED." license: MIT License (NeuroClaw custom skill - freely modifiable within the project) layer: subagent skill_type: dataset dependencies: - fmri-skill - bids-organizer - claw-shell
DMT-HAR-MED Skill (Dataset-Orchestration Layer)
Overview
dmt-har-med-skill is the NeuroClaw orchestration skill for the DMT-HAR-MED dataset (OpenNeuro ds006644).
DMT-HAR-MED contains rs-fMRI data from 40 participants in a psychedelic intervention study investigating the effects of N,N-Dimethyltryptamine (DMT) on brain function. The dataset includes multiple experimental conditions (DMT, placebo) and behavioral/physiological measurements.
It coordinates a fixed three-phase workflow:
- Download DMT-HAR-MED data from OpenNeuro.
- Prepare and validate BIDS-style data organization.
- Delegate fMRI processing to
fmri-skill.
It also provides phenotype extraction and QC integration paths:
- Extract DMT-HAR-MED phenotype data (intervention conditions, behavioral measures).
- Generate per-subject QC summaries with exclusion lists.
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-shellto base/tool skills.
Research use only.
Download Stage (Mandatory First Step)
Source
DMT-HAR-MED data is available on OpenNeuro:
Supported DMT-HAR-MED Data Packages
- Imaging data: rs-fMRI (NIfTI format)
- Phenotype data: intervention conditions, behavioral and physiological measurements
- Participants: 40 participants with psychedelic intervention
Delegation Rules for Download
- Environment/setup checks:
dependency-planner+conda-env-manager - OpenNeuro dataset download:
claw-shell(viaopenneuroCLI ordatalad) - Optional raw-data organization to BIDS-style staging:
bids-organizer
Download Inputs to Confirm in Plan
- Subject list scope (full or custom subset)
- Destination directory with sufficient disk space
Core Workflow (Never Bypassed)
- Identify user target: download, BIDS staging, or full preprocessing.
- Generate a numbered plan with tools, outputs, runtime, storage, and risks.
- Wait for explicit confirmation (
YES/execute/proceed). - On confirmation, run download stage first (if needed).
- After download success, verify/prepare BIDS staging using
scripts/reorganize_dmt_har_med.py. - Delegate to
fmri-skillfor rs-fMRI processing. - If phenotype extraction is requested, run
scripts/extract_dmt_har_med_phenotype.py. - If QC summary is requested, run
scripts/dmt_har_med_qc_summary.py. - Save outputs into a DMT-HAR-MED-centered structure under
dmt_har_med_output/.
BIDS Preparation
Script: scripts/reorganize_dmt_har_med.py
Verifies and optionally reorganizes DMT-HAR-MED data to BIDS-compliant layout.
python skills/dmt-har-med-skill/scripts/reorganize_dmt_har_med.py \
--input /path/to/dmt_har_med_raw \
--output /path/to/dmt_har_med_bids
Features:
- BIDS validation and verification
- Subject ID normalization
- Modality routing: rs-fMRI
dataset_description.jsonandparticipants.tsvgeneration- Dry-run mode:
--dry-runto preview
Phenotype Extraction
Script: scripts/extract_dmt_har_med_phenotype.py
python skills/dmt-har-med-skill/scripts/extract_dmt_har_med_phenotype.py \
--phenotype-dir /path/to/dmt_har_med_raw/phenotype \
--output /path/to/dmt_har_med_output/phenotype/merged_phenotype.csv \
--imaging-ids /path/to/dmt_har_med_output/bids/participants.tsv
QC Integration
Script: scripts/dmt_har_med_qc_summary.py
python skills/dmt-har-med-skill/scripts/dmt_har_med_qc_summary.py \
--fmriprep-dir /path/to/dmt_har_med_output/fmriprep \
--output /path/to/dmt_har_med_output/qc/qc_summary.csv \
--exclude-output /path/to/dmt_har_med_output/qc/exclude_list.csv \
--fd-threshold 0.3
Recommended Output Layout
All assets should be organized under ./dmt_har_med_output/:
dmt_har_med_output/raw/(downloaded original files)dmt_har_med_output/bids/(BIDS data)dmt_har_med_output/fmri/(links or copies fromfmri_output/)dmt_har_med_output/phenotype/(merged phenotype tables)dmt_har_med_output/qc/(QC summaries and exclusion lists)dmt_har_med_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 DMT-HAR-MED data staging or organization.
- If the task starts from raw DMT-HAR-MED data already present on disk and only asks for BIDS-style staging / validation:
- skip the mandatory download stage
- default to the narrow path
local raw DMT-HAR-MED discovery -> BIDS validation -> minimal metadata -> report
- In benchmark mode, do not require explicit confirmation before presenting the direct staging 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-plannerbefore running.
Important Notes and Limitations
- DMT-HAR-MED is a specialized psychedelic intervention dataset; analysis requires domain expertise.
- DMT-HAR-MED data from OpenNeuro is already in BIDS format; re-staging may not be needed.
- The dataset includes multiple experimental conditions; event files define condition timing.
- DMT-HAR-MED includes only rs-fMRI; no structural (T1w) or diffusion data is available.
dmt-har-med-skillis orchestration-only; detailed preprocessing logic remains infmri-skill.
When to Call This Skill
- User asks for end-to-end DMT-HAR-MED workflow.
- User asks to download DMT-HAR-MED data and then run rs-fMRI processing.
- User needs BIDS validation for DMT-HAR-MED data.
- User asks to extract DMT-HAR-MED phenotype data.
- User needs DMT-HAR-MED-specific QC summaries.
Complementary / Related Skills
fmri-skillbids-organizerfmriprep-tooldependency-plannerconda-env-managerclaw-shell
Reference
- DMT-HAR-MED: https://openneuro.org/datasets/ds006644/versions/1.0.1
- BIDS spec: https://bids.neuroimaging.io/
Created At: 2026-05-06 01:56 HKT Last Updated At: 2026-05-06 01:56 HKT Author: chengwang96