Biopsych prereg skill
An (agentic) Claude/Codex/Copilot skill to aid ECRs write up preregistrations!From the repository description
npx -y skills add caggursoy/biopsych-prereg-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.5 KB, 886 tokens by cl100k_base, as published. Nobody here has run it
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.mdin current directory
Example Interaction
User: Create a preregistration
What ships with it: 31 files
1138.7 KB alongside SKILL.md
configs/
- biopsych-config.json1.5 KB
- eeg-config.json2.8 KB
- fmri-config.json3.5 KB
- online-config.json4.7 KB
- psychophys-config.json6.3 KB
examples/
templates/
- biopsych/common/ETHICS_PRIVACY_TEMPLATE.md6.8 KB
- biopsych/common/METADATA_SCHEMA.md3.5 KB
- eeg/EEG and ERP Methods.pdf295.2 KB
- eeg/EEG_ERP_PREREGISTRATION_GUIDE.md3.7 KB
- eeg/Preprint_ERP Prereg Template.pdf398.3 KB
- fmri/FMRI_PREREGISTRATION_GUIDE.md5.0 KB
- fmri/fMRI_prereg.Rmd36.1 KB
- online/ONLINE_BEHAVIORAL_PREREGISTRATION_GUIDE.md5.9 KB
- online/PRP_QUANT_V2.pdf231.8 KB
- psychophys/PSYCHOPHYSIOLOGY_PREREGISTRATION_GUIDE.md9.1 KB
- AGENTS.md7.2 KB
- ARCHITECTURE.md6.3 KB
- CONTRIBUTING.md9.0 KB
- CONTRIBUTORS.md1.1 KB
- .gitignore486 B
- INSTALL.md9.5 KB
- LICENSE5.2 KB
- QUICK_REFERENCE.md6.4 KB
- QUICKSTART.md4.1 KB
- README.md5.4 KB
- REFERENCES.md10.8 KB
- USAGE_GUIDE.md3.4 KB