experiment-design

experiment-design is a skill for Claude Code from neuromechanist/research-skills. It costs 86 tokens per session (1,603 once invoked), scanned A, original, BSD-3-Clause.

A guide for designing neuroscience experiments in PsychoPy, a tool for presenting stimuli and recording responses. It covers trial timing, experiment layouts, and event markers sent to recording systems.

In plain words
What is it for?
It is for building behavioral or brain-imaging experiments, creating stimulus presentations, setting up block or event-based trials, adding event markers, and checking timing accuracy.
Why use it?
It helps translate an experiment protocol into code while checking timing and coordinating experiment events with tools such as Lab Streaming Layer, which sends time-stamped markers between research applications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the neuroinformatics plugin — 2 skills, 1 agent shipped together

Good fit It is for building behavioral or brain-imaging experiments, creating stimulus presentations, setting up block or event-based trials, adding event markers, and checking timing accuracy.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neuromechanist/research-skills/experiment-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neuromechanist/research-skills --skill experiment-design
Clone the repo
git clone --depth 1 https://github.com/neuromechanist/research-skills

Made for: Claude Code.

Or install neuroinformatics, the plugin that ships this one along with the rest of its 2 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for experiment-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/neuromechanist/research-skills/experiment-design/github.svg)](https://agentmods.dev/skills/neuromechanist/research-skills/experiment-design)
Your own site
<a href="https://agentmods.dev/skills/neuromechanist/research-skills/experiment-design"><img src="https://agentmods.dev/badge/skills/neuromechanist/research-skills/experiment-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for experiment-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/neuromechanist/research-skills/experiment-design"><img src="https://agentmods.dev/badge/skills/neuromechanist/research-skills/experiment-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,603 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01603
Opus 5 $0.00043 $0.00801
Sonnet 5 $0.00017 $0.00321
Haiku 4.5 $0.00009 $0.00160

Measured 13d ago against content hash 33349979bcd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

experiment-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/neuroinformatics/skills/experiment-design/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

[Fixation] -> [Stimulus] -> [Response Window] -> [Inter-trial Interval]
   |              |               |                    |
  marker       marker          marker              marker

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

from psychopy import visual, core, event, data, gui
import numpy as np

# Experiment parameters
exp_info = {
    "participant": "",
    "session": "01",
    "task": "experiment_name",
}

# GUI dialog
dlg = gui.DlgFromDict(exp_info, title="Experiment")
if not dlg.OK:
    core.quit()

# Window setup
win = visual.Window(
    size=[1920, 1080],
    fullscr=True,
    monitor="testMonitor",
    units="deg",
    color=[0, 0, 0],
)

# Stimuli
fixation = visual.TextStim(win, text="+", height=2)
stimulus = visual.ImageStim(win, image=None, size=[10, 10])
feedback = visual.TextStim(win, text="", height=1.5)

# Trial handler
conditions = data.importConditions("conditions.xlsx")
trials = data.TrialHandler(
    conditions,
    nReps=1,
    method="random",
)

# Clock
clock = core.Clock()

# Main experiment loop
for trial in trials:
    # Fixation
    fixation.draw()
    win.flip()
    core.wait(0.5)  # 500 ms fixation

    # Stimulus
    stimulus.image = trial["stimulus_file"]
    stimulus.draw()
    win.flip()
    # Send marker here

    # Response
    clock.reset()
    keys = event.waitKeys(
        maxWait=2.0,
        keyList=["left", "right", "escape"],
        timeStamped=clock,
    )

    if keys:
        if keys[0][0] == "escape":
            core.quit()
        trials.addData("response", keys[0][0])
        trials.addData("rt", keys[0][1])

    # ITI (jittered)
    iti = np.random.uniform(0.8, 1.2)
    core.wait(iti)

# Save data
import os
os.makedirs("data", exist_ok=True)
trials.saveAsWideText(f"data/sub-{exp_info['participant']}_task-{exp_info['task']}.csv")
win.close()
core.quit()

Read the full file on GitHub · 232 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 232 lines · 86 tokens per session scan A 33349979bcd7

Subscribe to this mod's changes

experiment-design is a skill published in the GitHub repository neuromechanist/research-skills (45 stars, last pushed 10d ago), licensed BSD-3-Clause. It adds 86 tokens to every session and 1,603 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

godot-optimization

Use when optimizing Godot games — profiler, draw calls, physics tuning, memory management, and common bottlenecks.

jame581/GodotPrompter · 28 tokens

food-analyzer

Analyze food photos, nutrition labels, and ingredient lists. Trigger on food images, nutrition label scans, macro questions, glycemic questions, medication interaction checks, and similar food-analysis requests.

mickpletcher/AI-Skills · 41 tokens

astrophotography-processing

Router for astrophotography processing, troubleshooting, and safe workflow guidance across deep-sky, narrowband, planetary/lunar/solar, Milky Way landscape, comet, and mosaic data.

mickpletcher/AI-Skills · 44 tokens

scientific-slides

Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and…

foryourhealth111-pixel/Vibe-Skills · 65 tokens

LQF_Machine_Learning_Expert_Guide

LQF Machine Learning Expert Guide - Routed skill for ML/Statistical Modeling with Critical Discussion Mode. Triggers on: machine learning, modeling, prediction, training, classification, regression, clustering, deep learning, neural network, model evaluation, feature engineering, hyperparameter tuning, overfitting…

foryourhealth111-pixel/Vibe-Skills · 152 tokens

imaging-data-commons

Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index. Use for accessing large-scale radiology (CT, MR, PET) and pathology datasets for AI training or research. No authentication required. Query by metadata, visualize in browser, check licenses.

foryourhealth111-pixel/Vibe-Skills · 62 tokens