psychopy-experiment

Design PsychoPy behavioral experiments with frame-timed stimulus presentation and BIDS events.tsv export.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill psychopy-experiment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: psychopy-experiment
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/11-psychology/psychopy-experiment
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill psychopy-experiment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires psychopy, pandas, numpy, pyserial.

What problem does it solve?

This Skill helps researchers design and run timing-critical behavioral experiments while producing analysis-ready logs and BIDS events without manual formatting mistakes.

Core Features & Use Cases

  • Window/monitor-calibrated stimulus presentation: Configure monitor geometry and render stimuli with frame-synchronous timing using PsychoPy window flips.
  • Reaction-time task scaffolding: Build a trial loop that randomizes trial order, jitters inter-stimulus intervals, collects keyboard responses, and computes accuracy.
  • EEG/eye-tracker synchronization and BIDS export: Optionally send TTL trigger codes for external hardware and generate BIDS-compatible events.tsv from logged timing.
  • Online deployment readiness: Provides a Pavlovia compatibility checklist for exporting to PsychoJS via PsychoPy Builder.

Quick Start

Use the psychopy-experiment Skill to generate a PsychoPy RT task that logs per-trial onsets and reaction times, optionally emits TTL triggers, and outputs BIDS events.tsv.

Frequently Asked Questions about psychopy-experiment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate BIDS events.tsv files from PsychoPy reaction time experiments?

You can generate BIDS events.tsv files by using PsychoPy to log per-trial stimulus onsets, durations, and reaction times, then formatting those logged timings into the BIDS-compatible structure for fMRI or EEG pipelines.

How do I send TTL triggers for EEG synchronization using PsychoPy?

You can send TTL triggers for EEG synchronization by configuring your PsychoPy experiment to emit trigger codes via a serial port connection, aligning stimulus presentation with external hardware recording onset times.

Can I deploy PsychoPy behavioral experiments online to Pavlovia?

Yes, you can deploy PsychoPy behavioral experiments online by following a Pavlovia compatibility checklist to export your Builder workflow to PsychoJS, ensuring your reaction time task runs in a browser environment.

What is the best way to jitter inter-stimulus intervals in a PsychoPy trial loop?

The best way to jitter inter-stimulus intervals is to use a TrialHandler-driven trial loop that randomizes trial order and varies the timing between stimuli, ensuring frame-synchronous presentation for accurate reaction time collection.

Does PsychoPy support frame-synchronous stimulus timing for neuroimaging paradigms?

Yes, PsychoPy supports frame-synchronous stimulus timing by calibrating monitor geometry and rendering stimuli using window flips, which guarantees accurate onset and duration timing required for fMRI and EEG experiments.

How do I record reaction time and accuracy in a PsychoPy behavioral study?

You record reaction time and accuracy by building a trial loop in PsychoPy that collects keyboard responses, computes correctness against expected answers, and logs the precise timing of each stimulus presentation.