psy-exp-coder

psy-exp-coder is a skill for Codex from soupandpsy/amazing-psycoder-skills. It costs 102 tokens per session (5,677 once invoked), scanned A, original, MIT.

A coding assistant for psychological experiments, which are studies that measure how people respond to tasks or stimuli. It works with PsychoPy or Python, jsPsych or JavaScript, and Psychtoolbox or MATLAB when the required experiment setup or existing code is available.

In plain words
What is it for?
Use it to generate, modify, or debug runnable experiment code, including trial logic, stimuli, saved data, hardware connections, and displayed text.
Why use it?
It prevents experiment code from being generated or changed without the configuration and evidence needed to preserve the intended design and timing.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to generate, modify, or debug runnable experiment code, including trial…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soupandpsy/amazing-psycoder-skills/psy-exp-coder
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 soupandpsy/amazing-psycoder-skills --skill psy-exp-coder
Clone the repo
git clone --depth 1 https://github.com/soupandpsy/amazing-psycoder-skills

Made for: Codex.

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 psy-exp-coder

README.md
[![agentmods](https://agentmods.dev/badge/skills/soupandpsy/amazing-psycoder-skills/psy-exp-coder.svg)](https://agentmods.dev/skills/soupandpsy/amazing-psycoder-skills/psy-exp-coder)
Your own site
<a href="https://agentmods.dev/skills/soupandpsy/amazing-psycoder-skills/psy-exp-coder"><img src="https://agentmods.dev/badge/skills/soupandpsy/amazing-psycoder-skills/psy-exp-coder.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,677 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.
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.00102 $0.05677
Opus 5 $0.00051 $0.02839
Sonnet 5 $0.00020 $0.01135
Haiku 4.5 $0.00010 $0.00568

Measured 7d ago against content hash 098482ed14c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

psy-exp-coder 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 7d ago.

The scan reads SKILL.md. This mod also ships 26 executable files (jspsych/demo/_raw/antisaccade__antisaccade.js, jspsych/demo/_raw/attention_network_task__attention_network_task.js, jspsych/demo/_raw/bart__bart.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

amazing-psycoder/psy-exp-coder/SKILL.md · 331 lines

How it starts

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

Experiment Coder

Version

v1.4.0 — unified evidence-gated contract, 2026-07-23; Studio direct ExperimentModel@4 and compiler-bound repair amendment, 2026-08-15. Sub-skill of amazing-psycoder.

Purpose

Generate a runnable delivery candidate from a confirmed config, or modify/debug concrete existing code without silently redesigning the experiment. See Platform Support Status for the evidence boundary of each target.

Intake Modes

Mode Minimum input Design gate
generate Saved validated config + conditions + confirmed Decision Registry Designer Gate 5 required
modify Existing code + requested behavioral change Gate 5 not replayed; require config/clarification only when the change alters design semantics
debug Existing code + observed error/log/reproduction context Gate 5 not replayed; preserve behavior unless the root cause is a design defect

State the selected mode. Never reject a targeted bug fix merely because the original project lacks a PsyCoder config, and never use modify/debug to bypass unresolved design choices for a new experiment.

Design Philosophy

输出即交付候选。 Generated code must be runnable as-is — not pseudocode — but it is not collection-ready until Reviewer audit and target-machine smoke tests pass. In standalone mode, keep confirmed user-editable values in one named config/parameter section and require revalidation after edits. In Studio mode, the frozen ExperimentModel@4, modelHash, and assetSetHash are the only experiment-parameter inputs; all three adapters compile the Model directly and generated runtime code must not create a second editable copy of its semantics.

Core principles:

  • 用户的实验,系统的规范 — the user owns the design; the system enforces explicit code-quality checks and reports remaining uncertainty
  • 骨架先行 — new generated scripts use the platform Canonical Code Skeleton as the validated API baseline. A structural deviation is allowed only when the config requires it, the reason is documented, equivalent safety/timing/data contracts are preserved, and the deviation is specifically tested; modify/debug need not rewrite unrelated existing architecture.
  • 规格提供逻辑,适配器提供 API — only the confirmed config/ExperimentSpec defines window sequence, stimuli, conditions, correctness, timing, randomization, and data behavior. Paradigm files are optional references, never executable templates. If a reference conflicts with the config, the config wins; if the config is incomplete, stop and return to Designer.
  • 反模式零容忍 — block time.sleep(), event.getKeys(maxWait=), KbCheck for RT, and stimulus/media I/O inside timed windows. Persist trial data immediately after each trial, outside timing-critical windows.
  • 代码生成优先级 — confirmed standalone config or frozen Studio ExperimentModel@4 > current platform spec and anti-patterns > config/Model→code mapping > optional exact-design reference. A family reference never supplies executable semantics.
  • 生成后必经审计 — code generation is not the final step. After delivery, the user MUST run the code through psy-exp-reviewer before collecting data. The reviewer is the mandatory quality gate between code generation and data collection.
  • 语言与实验内容一致 — user-facing instructions, feedback, UI prose, comments, and README follow the user's language unless the confirmed config says otherwise. Stimuli preserve the confirmed experimental language/content. API tokens, response keys, identifiers, filenames, and data schema are never translated merely to match the conversation language.

Read the full file on GitHub · 331 lines

Files

What ships with it

60 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. 7d ago First seen · 331 lines · 102 tokens per session scan A 098482ed14c4

Subscribe to this mod's changes

psy-exp-coder is a skill published in the GitHub repository soupandpsy/amazing-psycoder-skills (33 stars, last pushed 22d ago), licensed MIT. It adds 102 tokens to every session and 5,677 once invoked, about $0.0005 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

qector-math-foundations

The strict mathematical ground rules for every QECTOR claim. Encodes the F2 notation, the 16 correctness theorems, the Wilson 95% score interval for LER, the required-artifact- metadata contract, safe-wording rules, and the published limitations that must travel with every claim (reference manual v1.0.0, DOI…

GuillaumeLessard/qector-claude-plugin · 122 tokens

qector-core

Core domain knowledge and verified facts for the QECTOR quantum error correction platform (plugin v1.0.6, decoder wheel 1.0.0). Covers the app-free library MCP server (8 stable tools), the opt-in research server (29 provisional tools including the evidence layer), the privileged admin server (3 tools), 11 slash…

GuillaumeLessard/qector-claude-plugin · 160 tokens

qector-bp-osd

Belief propagation with ordered-statistics post-processing (BP-OSD) for QECTOR. Covers the box-plus kernel phi(x) = -ln(tanh(x/2)), the log-domain sum-product / min-sum / relay schedules, the OSD-0 / OSD-W solve (Theorem 11), the ambiguity-cluster partition (Theorem 12), and the worked examples from the v1.0.0…

GuillaumeLessard/qector-claude-plugin · 133 tokens

qector-codes-builder

Building and inspecting QEC codes for QECTOR. Covers the v1.0.0 library code families (repetition, ring, rotatedsurface, unrotatedsurface, toric, heavyhex, colorcode), the legacy generatechecks generators, and the custom-matrix / hypergraph-product / bicycle paths. Load when a question asks "what code should I use?"…

GuillaumeLessard/qector-claude-plugin · 103 tokens

qector-decoders-deep-dive

Per-decoder internals from the v1.0.0 reference manual. For each of the fifteen specialised backends, gives the algorithm, the theorem(s) it inherits, its claim boundary, and a one-line code snippet. Load when a question asks "how does X work", "which decoder is right for Y", or "what is the difference between A and…

GuillaumeLessard/qector-claude-plugin · 100 tokens

qector-glossary

QECTOR terminology, notation, and symbols from the v1.0.0 reference manual (Appendix A and B). Load for any question about what a term means, what symbol is used, or how the notation is written.

GuillaumeLessard/qector-claude-plugin · 53 tokens