neuromechanist/research-skills/experiment-design
Claude Code and agent skill by neuromechanist/research-skills
- community
Checking that the SKILL.md file is still in the repository.
Use this skill for \"design experiment\", \"create PsychoPy experiment\", \"stimulus presentation\", \"experiment protocol\", \"timing validation\", \"trial structure\", \"block design\", \"event-related design\", \"PsychoPy builder\", \"create stimuli\", \"LSL markers\", \"Lab Streaming Layer\", \"event markers\", \"trigger codes\", or when the user wants to design or implement a neuroscience experiment.
Install
npx vskill@latest install neuromechanist/research-skills/experiment-designSKILL.md
Experiment Design
Design and implement neuroscience experiments with PsychoPy, including stimulus presentation, timing validation, event markers, and Lab Streaming Layer (LSL) integration.
When to Use
- Designing a new behavioral or neuroimaging experiment
- Creating PsychoPy scripts for stimulus presentation
- Setting up event markers via LSL or parallel port
- Validating timing accuracy
- Converting an experiment protocol to code
Experiment Design Principles
Trial Structure
Every trial consists of:
Design Types
| Design | Best For | Example | |
|---|---|---|---|
| Block | fMRI, sustained attention | 30s blocks of condition A, B | |
| Event-related | ERP/EEG, rapid events | Randomized single trials | |
| Mixed | Both sustained and transient | Blocks with jittered events | |
| Resting state | Baseline/connectivity | Eyes open/closed periods |
Timing Considerations
- Frame-based timing (preferred): Specify durations in frames, not seconds
- Monitor refresh rate: 60 Hz = 16.67 ms/frame; 120 Hz = 8.33 ms/frame
- Stimulus onset: Sync to vertical blank for precise timing
- Jitter: Add random ITI variation for event-related designs (avoid expectation effects)
- Minimum stimulus duration: 1 frame (16.67 ms at 60 Hz)
PsychoPy Experiment Template
Basic Structure
Conditions File Format
Lab Streaming Layer (LSL) Integration
Sending Markers
Common Marker Scheme
| Marker | Code | Description | |
|---|---|---|---|
| stimulus_onset | S1-S99 | Stimulus presentation | |
| response | R1-R4 | Participant response | |
| feedback | F1-F2 | Correct/incorrect feedback | |
| block_start | B1-B10 | Block onset | |
| block_end | BE | Block offset | |
| trial_start | T | Trial onset | |
| experiment_start | EXP_START | First trial | |
| experiment_end | EXP_END | Last trial |
HED Annotation for Markers
Annotate events with Hierarchical Event Descriptors (HED) for standardized event description:
Timing Validation
Photodiode Check
Frame Timing Check
Output for BIDS
Structure experiment output to be BIDS-compatible:
Additional Resources
- Reference: references/psychopy-components.md - Visual, audio, and response components
- Reference: references/lsl-integration.md - LSL setup, synchronization, and troubleshooting
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/neuroinformatics/skills/experiment-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neuromechanist/research-skills/experiment-design)