Explore PsyNet repository
*************************

Note:

  This is an Agent Skill: a workflow written mainly for coding agents,
  and also useful as a checklist for people. PsyNet installs it into
  experiments at ".cursor/skills/psynet/explore-psynet-
  repository/SKILL.md"; in Cursor, run "/explore-psynet-repository".
  Edit it in the PsyNet repository at ".cursor/skills/experiment
  /explore-psynet-repository/".


Read first
==========

Read these pages before acting. The "Documentation" section of the
experiment's "AGENTS.md" explains how to find and search them.

* Working with a coding agent — implementing an experiment with a
  coding agent

* Starting from a demo or an existing experiment — creating an
  experiment directory from a demo

* Demos — what every demo shows, with links to its code


Finding demo code
=================

The demos live in the "demos/" directory of the PsyNet repository:

* "demos/experiments/" for complete experiments;

* "demos/features/" for focused feature examples;

* "demos/pipelines/" for end-to-end pipelines for common paradigms.

Pick a demo from "demos/index", then read its code in one of these
ways:

* Run "psynet docs demos" once and read the demo under the printed
  folder, for example
  "<folder>/features/headphone_test/experiment.py". Search all demos
  with "rg -n --no-ignore "<term>" <folder>". Release installs bundle
  the demos' code and text files for the installed version, but not
  their media or vendored libraries; in a source checkout the folder
  is the repository's "demos/".

* If "psynet docs demos" reports no local copy (for example in a Git
  install), open the demo's GitLab tree link from "demos/index", for
  example "https://gitlab.com/PsyNetDev/PsyNet/-/tree/master/demos/fea
  tures/headphone_test". Fetch single files from the raw URL, for
  example "https://gitlab.com/PsyNetDev/PsyNet/-/raw/master/demos/feat
  ures/headphone_test/experiment.py". Replace "master" with
  "v<version>" to match "psynet --version".

* Use a local clone of "https://gitlab.com/PsyNetDev/PsyNet" if one
  exists (often "~/PsyNet"), or clone one when the user agrees. A
  clone is optional, but it makes it easy to search all demos and the
  PsyNet source at once.

When starting a new experiment, copy the closest demo's authored files
into a new directory, then prefer "psynet setup" over hand-written
boilerplate. Details live in "implement-experiment/SKILL.md" (Setup).


Useful demos
============

* "demos/experiments/hello_world" for a minimal experiment.

* "demos/experiments/simple_audio_rating" for static trials, audio
  prompts, and rating controls.

* "demos/experiments/timeline" for timeline control flow, modules,
  variables, conditional logic, and custom routes.

* "demos/features/color_vocabulary" for prescreening and bot checks.

* "demos/features/headphone_test" for headphone prescreeners with a
  bot that fails them.
