Biopsychology Preregistration Assistant
Description
This skill automatically analyzes a research project directory and generates a preregistration document based on the files and information it finds. It intelligently detects the research modality (EEG, fMRI, online behavioral, psychophysiology) and creates an appropriate preregistration template, filling in what it can discover and leaving blanks for user input.
Objective
Generate a comprehensive, modality-appropriate preregistration document by:
- Analyzing the project directory structure and files
- Detecting the research modality/modalities
- Extracting relevant information from existing files (scripts, data, documentation)
- Creating a preregistration draft with discovered information
- Identifying missing information and prompting the user interactively
Workflow
Step 1: Scan Directory
When invoked, immediately scan the current directory:
- List all files and subdirectories
- Identify file types and extensions
- Detect research modality indicators
- Find documentation and scripts
Step 2: Detect Modality
Based on file patterns, determine research type:
- EEG/ERP: .set, .fdt, .vhdr, EEGLAB/MNE scripts
- fMRI: .nii, .nii.gz, BIDS structure, SPM/FSL scripts
- Online: .html, .js, jsPsych/Qualtrics files
- Psychophys: .acq, ECG/EDA/HRV data files
Step 3: Extract Information
Read relevant files to extract:
- Study title and description
- Sample size and power analysis
- Experimental design
- Analysis parameters
- Software versions
- Hypotheses (from documentation)
Step 4: Generate Draft
Create preregistration with:
- Filled sections: Information found in files
- [TO BE COMPLETED]: Missing required information
- [VERIFY: value]: Uncertain detections needing confirmation
Step 5: Interactive Completion
Ask user to:
- Confirm detected information
- Fill in missing sections
- Clarify ambiguous findings
- Review and approve final document
Usage
Invoke with:
/preregister
- "Create a preregistration"
- "Generate prereg from my project"
Detection Patterns
EEG/ERP
- Extensions:
.set, .fdt, .vhdr, .eeg, .bdf
- Scripts: EEGLAB, MNE, FieldTrip
- Keywords: "electrode", "ERP", "ICA"
fMRI
- Extensions:
.nii, .nii.gz
- Structure: BIDS format
- Scripts: SPM, FSL, fMRIPrep
- Keywords: "BOLD", "TR", "GLM"
Online Behavioral
- Extensions:
.html, .js, .json
- Frameworks: jsPsych, Qualtrics, Pavlovia
- Keywords: "MTurk", "Prolific"
Psychophysiology
- Extensions:
.acq, .mat
- Software: AcqKnowledge, Kubios
- Keywords: "ECG", "HRV", "EDA"
Output Format
Generate Markdown document with structure:
# Preregistration: [Study Title]
## Metadata
- Title: [detected or TO BE COMPLETED]
- Authors: [TO BE COMPLETED]
- Date: [current date]
- Modality: [detected modality]
## Study Information
[Filled from README or TO BE COMPLETED]
## [Modality-Specific Sections]
[Based on detected modality template]
## Analysis Plan
[Extracted from scripts or TO BE COMPLETED]
Behavior Rules
- Always scan directory first before asking questions
- Mark confidence levels for detected information
- Never modify existing project files
- Ask one section at a time to avoid overwhelming user
- Provide examples when requesting user input
- Reference templates from templates/ directory
- Save draft as
PREREGISTRATION_DRAFT.md in current directory
Example Interaction
User: Create a preregistration
1---2name: biopsych-prereg-skill3description: Biopsychology Preregistration Assistant4---5# Biopsychology Preregistration Assistant67## Description89This skill automatically analyzes a research project directory and generates a preregistration document based on the files and information it finds. It intelligently detects the research modality (EEG, fMRI, online behavioral, psychophysiology) and creates an appropriate preregistration template, filling in what it can discover and leaving blanks for user input.1011## Objective1213Generate a comprehensive, modality-appropriate preregistration document by:141. Analyzing the project directory structure and files152. Detecting the research modality/modalities163. Extracting relevant information from existing files (scripts, data, documentation)174. Creating a preregistration draft with discovered information185. Identifying missing information and prompting the user interactively1920## Workflow2122### Step 1: Scan Directory23When invoked, immediately scan the current directory:24- List all files and subdirectories25- Identify file types and extensions26- Detect research modality indicators27- Find documentation and scripts2829### Step 2: Detect Modality30Based on file patterns, determine research type:31- **EEG/ERP**: .set, .fdt, .vhdr, EEGLAB/MNE scripts32- **fMRI**: .nii, .nii.gz, BIDS structure, SPM/FSL scripts33- **Online**: .html, .js, jsPsych/Qualtrics files34- **Psychophys**: .acq, ECG/EDA/HRV data files3536### Step 3: Extract Information37Read relevant files to extract:38- Study title and description39- Sample size and power analysis40- Experimental design41- Analysis parameters42- Software versions43- Hypotheses (from documentation)4445### Step 4: Generate Draft46Create preregistration with:47- **Filled sections**: Information found in files48- **[TO BE COMPLETED]**: Missing required information49- **[VERIFY: value]**: Uncertain detections needing confirmation5051### Step 5: Interactive Completion52Ask user to:53- Confirm detected information54- Fill in missing sections55- Clarify ambiguous findings56- Review and approve final document5758## Usage5960Invoke with:61- `/preregister`62- "Create a preregistration"63- "Generate prereg from my project"6465## Detection Patterns6667### EEG/ERP68- Extensions: `.set`, `.fdt`, `.vhdr`, `.eeg`, `.bdf`69- Scripts: EEGLAB, MNE, FieldTrip70- Keywords: "electrode", "ERP", "ICA"7172### fMRI73- Extensions: `.nii`, `.nii.gz`74- Structure: BIDS format75- Scripts: SPM, FSL, fMRIPrep76- Keywords: "BOLD", "TR", "GLM"7778### Online Behavioral79- Extensions: `.html`, `.js`, `.json`80- Frameworks: jsPsych, Qualtrics, Pavlovia81- Keywords: "MTurk", "Prolific"8283### Psychophysiology84- Extensions: `.acq`, `.mat`85- Software: AcqKnowledge, Kubios86- Keywords: "ECG", "HRV", "EDA"8788## Output Format8990Generate Markdown document with structure:91```markdown92# Preregistration: [Study Title]9394## Metadata95- Title: [detected or TO BE COMPLETED]96- Authors: [TO BE COMPLETED]97- Date: [current date]98- Modality: [detected modality]99100## Study Information101[Filled from README or TO BE COMPLETED]102103## [Modality-Specific Sections]104[Based on detected modality template]105106## Analysis Plan107[Extracted from scripts or TO BE COMPLETED]108```109110## Behavior Rules1111121. **Always scan directory first** before asking questions1132. **Mark confidence levels** for detected information1143. **Never modify** existing project files1154. **Ask one section at a time** to avoid overwhelming user1165. **Provide examples** when requesting user input1176. **Reference templates** from templates/ directory1187. **Save draft** as `PREREGISTRATION_DRAFT.md` in current directory119120## Example Interaction121122```123User: Create a preregistration