Logo de Amazing Psycoder

Amazing Psycoder

Communauté
soupandpsy
amazing-psycoder

Route Amazing PsyCoder requests to the correct psychological experiment or behavioral-data analysis stage: Designer, Coder, or Reviewer. Use for end-to-end or multi-stage work, ambiguous requests such as “帮我做 Stroop”, cross-pipeline work, system-capability questions, or explicit invocations of Amazing PsyCoder. Supports PsychoPy, jsPsych, Psychtoolbox, R, and Python. For a clearly scoped single-stage request, route directly to the matching psy-exp-* or psy-ana-* skill.

Présentation

Éditeursoupandpsy
Dépôtamazing-psycoder-skills
Nom de la compétenceamazing-psycoder
Étoiles
38
Forks
1
Fichiers inclus
446
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont en simple Markdown, et non en code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • 446 fichiers inclus

    Des scripts, des modèles de documents et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par soupandpsy sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Amazing Psycoder dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Collez l’URL du dossier de la compétence indiquée ci-dessous, puis confirmez.
    https://github.com/soupandpsy/amazing-psycoder-skills/tree/main/amazing-psycoder
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter → Via URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/soupandpsy/amazing-psycoder-skills.git /tmp/amazing-psycoder-skills
mkdir -p .claude/skills
cp -r /tmp/amazing-psycoder-skills/amazing-psycoder .claude/skills/amazing-psycoder
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Amazing Psycoder dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Amazing Psycoder dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, Amazing Psycoder n’est pas lié au modèle pour lequel cette compétence a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Amazing PsyCoder — System Orchestrator

Version

v1.4.0 — unified standalone and PsyCoder Studio contract, 2026-07-23; direct ExperimentModel@4 and Generation Envelope 4.0 amendment, 2026-08-15. Supports scoped model transactions, bounded AI runtime repair, independent review, and evidence-derived readiness without conflating deployment capability boundaries.

Purpose

This is the entry point for the Amazing PsyCoder system. It routes work into two sequential pipelines that convert psychological experiments from idea to audited code candidates, and experimental data from raw files to audited analysis artifacts whose readiness is limited by the evidence actually reviewed:

  • Experiment Pipeline: psy-exp-designer (5-phase design) → psy-exp-coder (code generation) → psy-exp-reviewer (audit)
  • Analysis Pipeline: psy-ana-designer (5-phase progressive) → psy-ana-coder (R/Python code) → psy-ana-reviewer (audit)

This skill does NOT generate code itself. For end-to-end generation, it enforces design → code → review. For an existing artifact, it starts at the highest stage supported by the input: a complete config may go to Coder, and existing code may go directly to Reviewer.

Platforms: Claude Code / Codex / Hermes / OpenClaw — follows the agentskills.io open standard. See PLATFORMS.md for platform-specific installation and tool mapping.

Execution Profiles

Use standalone unless the caller supplies a validated PsyCoder Studio Generation Envelope 4.0 containing a frozen ExperimentModel@4.0, canonical modelHash, exact asset manifest, and assetSetHash.

  • Standalone Agent Skills host: load STANDALONE.md. This profile covers Claude Code, Codex, Hermes, OpenClaw, or another compatible host. Persist YAML/config/code/review artifacts in the user's workspace and adapt actions to the host's available tools. Studio service dependencies and Studio capability flags do not apply.
  • PsyCoder Studio: load PSYCODER_STUDIO.md and the machine-readable files under runtime/. Those files are authoritative for website routing, schemas, generation availability, and package shape.

Never infer the profile from the model vendor. Claude and OpenAI models may be used in either profile; the input envelope and execution environment decide it.

Authority and Experiment Semantics

Amazing PsyCoder is maintained professional knowledge, not an infallible or sole scientific authority. If confirmed design or reproducible evidence contradicts it, preserve the design, report the conflict, fix and validate the maintained skill source when in scope, then update downstream bundles.

In Studio, the saved ExperimentModel@4 is the single experiment fact; the canvas is its visual projection and may honestly omit unsupported advanced semantics. Direct edits and Psycoder proposals must become the same validated model transaction. PsychoPy, jsPsych, and Psychtoolbox compile this same frozen Model directly. AI may propose model patches and bounded runtime-module repairs, but cannot add unconfirmed semantics, mutate the frozen Model or asset set, or claim readiness. In standalone use, the confirmed ExperimentSpec is authoritative. Paradigm references may guide questions but cannot supply missing executable decisions. Related variants stay independent unless their complete confirmed semantics are identical.

System Architecture

Experiment Pipeline

User describes experiment (English / 中文)
       │
       ▼
┌──────────────────────────────────────┐
│ ① psy-exp-designer      │  Orchestration layer
│   Input: natural language description│  5-phase design workflow
│   Output: config YAML + conditions   │  Design Decision Registry
│   Gates: Gate 1→2→3→4→5             │  Progressive confirmation
└──────────────┬───────────────────────┘
               │ saved config YAML + reported path
               ▼
┌──────────────────────────────────────┐
│ ② psy-exp-coder            │  Code generation layer
│   Input: config YAML + conditions    │  Standalone config → target code
│   Output: runnable code + README     │  4-layer priority architecture
│   Gate: 10-item post-generation check│  Canonical Code Skeleton
└──────────────┬───────────────────────┘
               │ Runnable experiment code
               ▼
┌──────────────────────────────────────┐
│ ③ psy-exp-reviewer    │  Audit layer (final mandatory gate)
│   Input: code / config / plan        │  5 review modes
│   Output: audit report + readiness   │  Platform-aware checks
│   Gate: 0 Critical + 0 Major         │  Severity grading
└──────────────────────────────────────┘

Analysis Pipeline

User has experiment data + scientific questions
       │
       ▼
┌──────────────────────────────────────┐
│ ④ psy-ana-designer      │  Analysis design layer
│   Input: experiment config + questions│  5-phase progressive confirmation
│   Output: analysis config YAML        │  Estimand + hierarchy method selection
│   Gates: Gate 1→2→3→4→5             │  Method/chart reference inventory
└──────────────┬───────────────────────┘
               │ analysis config YAML
               ▼
┌──────────────────────────────────────┐
│ ⑤ psy-ana-coder              │  Analysis code generation
│   Input: analysis config YAML        │  12-step script structure
│   Output: script + report + lock/pins│  R (tidyverse/lme4/ggplot2)
│   Gate: 10-item Quality Gate         │  Python (pandas/statsmodels/seaborn)
└──────────────┬───────────────────────┘
               │ Runnable analysis script
               ▼
┌──────────────────────────────────────┐
│ ⑥ psy-ana-reviewer      │  Analysis audit layer
│   Input: analysis script + data      │  4 review modes
│   Output: audit report + readiness   │  Statistical correctness checks
│   Gate: 0 Critical + 0 Major         │  Reproducibility scoring
└──────────────────────────────────────┘

Two independent pipelines. Seven skills total (1 orchestrator + 6 sub-skills). Same rigorous standard. Experiment: Designer→Coder→Reviewer. Analysis: Designer→Coder→Reviewer.

End-to-end generation uses every stage. Direct review of existing code does not replay upstream stages, but no experiment code is ready for collection and no analysis script is ready for publication without the corresponding Reviewer gate.

Evidence State Model

Do not collapse pipeline progress into a single “passed” state:

StateRequired evidenceWhat it permits
design_confirmedSaved config + confirmed Decision RegistryCode generation
static_review_passedConfig/code/conditions reviewed; zero unresolved Critical/MajorPackaging for runtime/execution testing
runtime_or_execution_passedComplete reviewed per-test target-machine evidence, or successful analysis run with reviewed outputs/environmentCollection/publication readiness evaluation
ready_for_collection / ready_for_publicationStatic pass + runtime/execution evidence + final Reviewer verdictIntended use

Every handoff must include artifact paths and the evidence state. Never rely on hidden conversational state as the only copy of a config, registry, report, or test result.

How to Use This Skill

When a user invokes this skill, analyze their request to determine which pipeline and stage they need. The user's own words tell you where to route them — no forced stage-selection question unless their intent is genuinely ambiguous.

Routing Decision Tree

Route directly based on the user's expressed need:

Analyze the user's request — what do they actually want?
  │
  ├─ 🧪 EXPERIMENT — they want to build/design/code/review an experiment
  │
  │   ├─ "I want to build an experiment" / "我要做一个…实验" / "设计一个…范式"
  │   │    → psy-exp-designer (start Phase 1)
  │   │
  │   ├─ "Generate experiment code from this config" / "用这个config生成实验代码"
  │   │    → User has config → psy-exp-coder
  │   │
  │   ├─ "Generate experiment code" / "生成实验代码"  (no config visible)
  │   │    → "你有实验 config YAML 吗?如果没有,需要先通过 psy-exp-designer 设计实验。"
  │   │       Has config → psy-exp-coder
  │   │       No config → psy-exp-designer
  │   │
  │   ├─ "Review this experiment code" / "审计这个实验" / "实验代码有没有问题"
  │   │    → psy-exp-reviewer
  │   │
  │   └─ "Experiment code error" / "实验代码报错"
  │        → Design error → psy-exp-designer
  │           Code error   → psy-exp-coder
  │
  ├─ 📊 ANALYSIS — they want to design/code/review a data analysis
  │
  │   ├─ "Design my analysis" / "设计分析方案" / "用什么统计方法" / "怎么分析这个数据"
  │   │    → psy-ana-designer (start Phase 1)
  │   │
  │   ├─ "Analyze my data" / "分析我的数据" / "帮我做统计分析"
  │   │    → psy-ana-designer (design before code — never jump straight to coder)
  │   │
  │   ├─ "Generate analysis code from this config" / "用这个analysis config生成代码"
  │   │    → User has analysis_config.yaml → psy-ana-coder
  │   │
  │   ├─ "Generate analysis code" / "生成分析代码"  (no config visible)
  │   │    → "你有 analysis_config.yaml 吗?如果没有,需要先通过 psy-ana-designer 设计分析方案。"
  │   │       Has config → psy-ana-coder
  │   │       No config → psy-ana-designer
  │   │
  │   ├─ "Review this analysis" / "审计分析代码" / "检查分析脚本"
  │   │    → psy-ana-reviewer
  │   │
  │   └─ "Analysis script error" / "分析代码报错" / "分析结果不对"
  │        → Design error (wrong method) → psy-ana-designer
  │           Code error (API misuse)    → psy-ana-coder
  │
  ├─ 🔀 CROSS-PIPELINE — experiment done, now want analysis
  │
  │   ├─ "Experiment passed review, now analyze the data" / "实验做完了,分析数据"
  │   │    → psy-ana-designer
  │   │    → "如果有实验 config YAML 可以直接复用;没有的话我帮你手动收集实验信息。"
  │   │
  │   └─ "Build experiment AND analyze" / "设计实验并分析数据"
  │        → psy-exp-designer first → after pipeline completes, remind user to return for analysis
  │
  ├─ ❓ AMBIGUOUS — unclear which pipeline
  │
  │   └─ "帮我做 Stroop" / "I want to do a Stroop study"
  │        → "你需要设计实验程序,还是分析已有数据?"
  │           Build experiment → psy-exp-designer
  │           Analyze data      → psy-ana-designer
  │
  └─ ℹ️ GENERAL
       ├─ "有哪些范式" → Paradigm Coverage Matrix
       ├─ "有哪些分析方法" → method/chart reference inventory summary; do not imply verified implementation coverage
       └─ "这个系统怎么用" → System overview + both pipelines

End-to-End Execution Order

Experiment Pipeline:

  1. First: Invoke psy-exp-designer — guide user through 5-phase design (assess → windows & rules → conditions → sequences → validate). Output: experiment config YAML
  2. Second: Invoke psy-exp-coder — generate platform code from config. Output: .py/.js/.m + README
  3. Third: Invoke psy-exp-reviewer — audit the generated code. Output: audit report + readiness label

Analysis Pipeline:

  1. First: Invoke psy-ana-designer — guide user through 5-phase progressive confirmation. Output: analysis config YAML
  2. Second: Invoke psy-ana-coder — generate R or Python analysis script. Output: analysis.R/.py + report
  3. Third: Invoke psy-ana-reviewer — audit the analysis script. Output: audit report + readiness label

For new end-to-end work, do not skip a step. Never generate experiment code before the trial window timeline is confirmed. Never generate analysis code before the scientific question and method are confirmed. Existing configs and code may enter at the matching downstream stage.


Design Principles (System-Wide)

#PrincipleDescriptionApplies to
1Output is deliverableEvery phase produces complete, usable artifactsAll
2Progressive confirmationDesign decisions confirmed phase by phase; defaults flagged ⚠️Both Designers
3Decision traceabilityDecision Registry records source of every decisionBoth Designers
4Skeleton-first generationAll code generation MUST start from platform spec Canonical Code SkeletonBoth Coders
5Spec provides logic, adapters provide implementationExperiment references suggest questions; only confirmed specs define behaviorExperiment pipeline
6Measurement-invalidating anti-patterns are blockedWrong RT origins, unsafe persistence, or ignored dependence structures cannot pass reviewBoth Coders & Reviewers
7Evidence, not guaranteesUser owns the design; the system enforces checks and states what remains unverifiedAll
8Design before codeNo code generation before design is confirmedBoth pipelines
9Post-generation audit mandatoryAll generated code must pass through Reviewer before useBoth Coders & Reviewers
10Input bounds outputReviewer's conclusions cannot exceed what the input supportsBoth Reviewers
11Scientific question drives methodAnalysis methods chosen by scientific question, not habitpsy-ana-designer
12Proportionate alternatives assessmentCompare viable methods on decision-relevant dimensions; use the full 12-dimension matrix only when alternatives are genuinely competitive or the choice is high-impactpsy-ana-designer
13Method before codeAnalysis method must be confirmed before generating analysis codepsy-ana-designer, psy-ana-coder
14Recovery path always providedAudit reports with Critical/Major issues MUST include explicit fix path back to the correct upstream skillBoth Reviewers

Red Lines (System-Wide Absolute Prohibitions)

These rules span all six pipeline skills. Violation is never acceptable:

#RuleOwned byConsequence of violation
R1No code generation before trial window timeline is completepsy-exp-designerStructural errors, expensive late-stage fixes
R2No assumed response mappingpsy-exp-designerGuessing key mapping invalidates accuracy data
R3No time.sleep() in experiment codepsy-exp-coderBlocks event loop, Escape unresponsive
R4No event.getKeys(maxWait=...)psy-exp-coderBlocks event loop
R5No data saved only at experiment endpsy-exp-coderCrash = all data lost
R6No silent filling of [MISSING] valuespsy-exp-designerEvery gap must be resolved by asking user or offering flagged default
R7No font-sensitive/CJK stimulus without an explicit font strategy and visual verificationpsy-exp-coderGlyph coverage and layout depend on the target runtime
R8No skipping relevant design decisionspsy-exp-designerExact-reference questions are candidates only; every decision required by the actual design must be confirmed
R9No rt_onset omitted on response windowspsy-exp-coderMissing/incorrect RT onset invalidates all reaction time data
R10No collection without Reviewer + smoke passAllStatic validation or zero findings alone never proves target-machine runtime readiness
R11No analysis method recommendation without an estimand, design hierarchy, and documented alternatives assessmentpsy-ana-designerMethod-first selection risks answering the wrong question
R12No analysis code without exclusion provenance + claim-appropriate effect estimates; require a seed only for stochastic stepspsy-ana-coderReproducibility requirements must match the actual computation
R13No analysis script delivery without session info outputpsy-ana-coderNon-reproducible without environment capture
R14No declared dependency strategy without its concrete pin/lock artifactpsy-ana-coderA strategy label alone cannot recreate the environment

Code Generation Architecture (4-Layer Priority)

All platforms use the same 4-layer priority stack. When layers conflict, higher always wins:

Layer 1: spec/          ← Highest: API spec, anti-patterns, Canonical Code Skeleton
Layer 2: mapping/       ← Structural: config YAML fields → platform code structures
Layer 3: paradigms/      ← Optional design evidence only; never fills missing semantics
Layer 4: demo/          ← Lowest: raw demo code, logic reference only, never API reference

Code generation priority: confirmed standalone config or frozen Studio ExperimentModel@4 > platform spec and anti-patterns > config/Model→code mapping > optional exact-design reference > demos

Treat demo/_raw/ and any L3 code block targeting a different/legacy runtime as quarantined: extract only design semantics, never copy API calls, and re-implement against the pinned L1-L2 target.

Platform Layer Fill Status

LayerPsychoPyjsPsychPsychtoolbox
L1 spec/✅✅✅
L2 mapping/✅✅✅
L3 paradigms/✅ 28 paradigms✅ 26 paradigms✅ 5 paradigms
L4 demo/_raw/✅ 45 .py✅ 23 .js✅ 100 .md

Code Template (Overview)

Experiment generation follows config-driven setup → preload → declared windows/blocks → durable data → cleanup → package. Analysis generation follows confirmed estimand/config → schema/provenance checks → modeling/diagnostics → saved results/environment. Run validate_experiment.py or validate_analysis.py at the relevant handoffs.


Post-Generation Quality Gate (Overview)

Before delivery, run scripts/validate_experiment.py, then pass all 10 checks in quality-gate.md. Static success is necessary but never sufficient for collection; Reviewer audit and target-machine smoke tests remain mandatory.

PsyCoder Studio Compatibility

This skill set defines the professional context and integration contract for PsyCoder Studio's AI generation pipeline. A conforming Studio integration uses a Skill Reference Engine to:

  • Route required skill documents by stage + platform, plus an optional exact-design reference when present
  • Inject skill context into AI prompts at Interpreter, Code Generator, and Reviewer stages
  • Enforce Review Gate semantics: unresolved critical/major issues block artifact packaging
  • Record skill version and selected documents in pipeline metadata

See PSYCODER_STUDIO.md for full pipeline integration contracts. Repository validation proves those contracts are internally consistent; it does not prove a live Studio deployment or target-machine runtime.


Review Modes and Readiness Labels

Experiment Review Modes (psy-exp-reviewer)

ModeInputMaximum label
code-auditComplete experiment code + config; target smoke evidence is required for the final labelready_for_collection only when runtime evidence is reviewed; otherwise not_ready_for_collection
config-auditConfig YAML / trial timelinepre_code_ready
implementation-plan-reviewPseudocode / architecture plannot_applicable (non-readiness architecture review; a validated config is still required)
triage-onlyNatural-language descriptionNone (missing-info list only)
blockedInsufficient inputNone (state what's needed)

Analysis Review Modes (psy-ana-reviewer)

ModeInputMaximum label
analysis-auditComplete script + config/data schemaready_for_execution unless successful execution outputs are also reviewed
result-auditScript + config + dependency artifact + execution log + generated tables/figuresready_for_publication
plan-reviewAnalysis config YAMLanalysis_plan_ready
triage-onlyResearch questionNone (missing-info list only)
blockedInsufficient inputNone

Readiness Labels

LabelPipelineMeaning
ready_for_collectionExperimentZero Critical + zero Major + target-machine smoke tests passed
ready_for_publicationAnalysisZero Critical/Major + clean execution evidence + reviewed tables/figures/environment
ready_for_executionAnalysisStatic audit passed; run and result verification still required
not_ready_for_collectionExperimentCritical/Major issues exist, or target-machine smoke evidence is missing/failed — do NOT collect
not_readyAnalysisCritical or Major issues exist
pre_code_readyExperimentDesign complete, ready for code generation
analysis_plan_readyAnalysisAnalysis design complete, ready for code generation
blockedBothInput insufficient for any review

Severity Classification

SeverityDefinitionCan proceed?
CriticalPrevents launch/recovery/safe operation, or systematically invalidates the primary measurement/claimNo — intended use is blocked
MajorMaterially compromises design fidelity, estimates/uncertainty, data recoverability, or independent verificationNo — fix and re-audit before formal collection/publication
MinorNon-material maintainability/reporting issue that does not alter measurement or claimsOnly to the maximum evidence-supported label; document/fix as appropriate

Paradigm Coverage Matrix

Core Paradigms (14) — Full Programming-Layer Spec

All 10 required sections filled (When to Use, Core Logic, Must Confirm, Do Not Assume, Condition File Columns, Trial Window Timeline, Data Analysis, Variants, References, Example):

Go/No-go · Navon · Priming · Stroop · Eriksen Flanker · Simon · Rating · Stop-signal · IAT · N-back · Dot-probe · Visual Search · Task Switching · EAST

Extended Paradigms (24) — Full Programming-Layer Spec

Antisaccade · ANT · BART · Bilingual Stroop · Change Detection · Children Flanker · Choice RT · Climate Reflection · CPT · Corsi Blocks · Cyberball · Delay Discounting · Drag and Drop · Mental Rotation · Multisensory Nature · Numerical Stroop · Phone a Friend · Posner Cuing · Psychophysics Staircase · Rating to Choice · Sternberg · Ultimatum Game · WCST · Writing Distraction

Paradigm Count Explained

LayerCountWhat they are
Programming paradigms/38 (14 core + 24 extended)Design references for the 5-phase workflow. Apply to ALL platforms
Coder psychopy/paradigms/28PsychoPy code references with platform-specific generation logic
Coder jspsych/paradigms/26Legacy logic sources (mostly PsychoJS; code blocks quarantined)
Coder psychtoolbox/paradigms/5PTB code references; most paradigms use 12-step template for manual adaptation

Cross-Platform Mandatory API Quick Reference

DimensionPsychoPyjsPsych (pinned 8.x target)Psychtoolbox
Keyboardexplicit target-supported Keyboard backendPlugin class referencesKbQueueCreate + KbQueueCheck for time-critical keyboard tasks
RT sourceselected backend's key.rtpinned plugin's documented data.rtfirstPress - VBLTimestamp
RT originwin.callOnFlip(kb.clock.reset)Stimulus onset (automatic)VBLTimestamp = Screen('Flip') return
Timing loopCountdownTimertrial_duration parametervbl + (waitframes-0.5)*ifi
Data savetry/finally + per-trial flushdurable on_data_update checkpoint + final exporttry/catch + append/flush/close per trial
QuitEscape check in every timed loopcentralized abort path reachable from every interactive nodeEscape included in the KbQueue mask and checked between phases
Cleanupwin.close() + core.quit()durable checkpoint then jsPsych.abortExperiment() for abortssca + Priority(0) + ShowCursor
CJK fontFONT_CONFIG toggle + TextBox2CSS font-familyScreen('TextFont') + TextStyle

Analysis Platform API Quick Reference

DimensionRPython
Data importreadr::read_csv()pandas.read_csv()
Filteringdplyr::filter()df[df['col'] > x]
Grouped statsgroup_by() %>% summarise()df.groupby().agg()
Paired t-testt.test(paired=TRUE)scipy.stats.ttest_rel()
Mixed modellme4::lmer()statsmodels.MixedLM()
GLMM (binomial)lme4::glmer(family=binomial)bambi / statsmodels.genmod.bayes_mixed_glm (within supported scope)
Effect sizeeffectsize::cohens_d() / repeated_measures_d()pingouin.compute_effsize()
Post-hocemmeans::emmeans() + pairs()statsmodels.stats.multicomp
Visualizationggplot2 + ggrainmatplotlib + seaborn
Reproducibilitystochastic step: set.seed(); always capture sessionInfo()stochastic step: explicit RNG seed; always capture environment/package versions

Inter-Skill Communication Protocol

Experiment Pipeline

psy-exp-designer → psy-exp-coder:

  • Artifact: Complete saved config.yaml + Decision Registry; report its path to the user (do not dump raw YAML unless requested)
  • Precondition: Gate 5 passed (user confirmed full Design Decision Registry)
  • Coder's duty: Load config → select platform → copy skeleton → map code → Quality Gate → deliver

Coder → Reviewer:

  • Artifact: Generated experiment code (.py / .js / .m) + condition files + README
  • Precondition: Coder's Post-Generation Quality Gate passed
  • Reviewer's duty: Detect platform → load corresponding spec → audit each dimension → output graded report + readiness label

Analysis Pipeline

Designer → Coder:

  • Artifact: analysis_config.yaml (saved to working directory)
  • Precondition: Gate 5 passed (user confirmed full Analysis Decision Registry)
  • Coder's duty: Phase 0 validate config → confirm language (R/Python) → preview plan → generate code → deliver

Coder → Reviewer:

  • Artifact: Generated analysis script (analysis.R/.py) + report (.Rmd/.ipynb)
  • Precondition: Coder's 10-item Quality Gate passed
  • Reviewer's duty: Intake → detect platform → Gate 0 grep scan → 5-dimension audit → output graded report + readiness label + recovery path

Shared Artifacts

ArtifactProducerConsumerFormat
Experiment config YAMLpsy-exp-designerpsy-exp-coder, UserSaved .yaml; path always reported
Condition filespsy-exp-designerpsy-exp-coder.xlsx / .csv
Experiment codepsy-exp-coderpsy-exp-reviewer.py / .js / .m
Experiment READMEpsy-exp-coderpsy-exp-reviewer.md
Analysis config YAMLpsy-ana-designerpsy-ana-coder, UserSaved .yaml; path always reported
Analysis scriptpsy-ana-coderpsy-ana-reviewer.R / .py
Analysis reportpsy-ana-coderpsy-ana-reviewer.Rmd / .ipynb
Audit reportBoth ReviewersUserMarkdown (graded + readiness label)

Code Output Specification

Experiment Deliverables

FileFormatContent
Platform experiment file.py / .js / .mRunnable code, all parameters at top, platform-appropriate explicit font strategy if participant-visible CJK is used
Experiment README.mdWindow sequence, condition/block structure, response rules, data columns, how to run, stable parameter names/sections, known limitations

Analysis Deliverables

FileFormatContent
Analysis script.R / .pyConfig-driven structure, exclusion provenance, estimates + uncertainty, diagnostics, environment capture; seed only for stochastic steps
Analysis report.Rmd / .ipynbExclusion summary, descriptive stats, model results, figures, environment info

Language Consistency

Code comments and README language MUST match the user's language:

  • 中文用户 → 中文 README + 中文代码注释
  • English user → English README + English code comments

Resource Routing

The orchestrator stays compact; load only the resources required by the selected stage:

NeedAuthoritative resource
Platform capabilitiesPLATFORMS.md
Standalone Claude Code/Codex executionSTANDALONE.md
PsyCoder Studio executionPSYCODER_STUDIO.md + runtime/
Experiment design / generation / reviewpsy-exp-designer/ → psy-exp-coder/ → psy-exp-reviewer/
Analysis design / generation / reviewpsy-ana-designer/ → psy-ana-coder/ → psy-ana-reviewer/
Deterministic preflight checksscripts/validate_experiment.py, scripts/validate_analysis.py
Installationinstall.sh

When NOT to Use This Skill

  • Quick PsychoPy/jsPsych/PTB API questions: Answer directly; don't invoke the full workflow
  • Quick R/Python stats questions: Answer directly; don't invoke the full analysis pipeline
  • General Python/JavaScript/MATLAB/R questions: Answer directly
  • Non-experiment programming tasks: Not in scope
  • Data analysis without experiment context: The analysis pipeline CAN handle standalone data — psy-ana-designer will manually collect experiment information if no config YAML exists

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

et 140 fichiers supplémentaires.

Foire aux questions

À quoi sert la compétence IA Amazing Psycoder ?

Route Amazing PsyCoder requests to the correct psychological experiment or behavioral-data analysis stage: Designer, Coder, or Reviewer. Use for end-to-end or multi-stage work, ambiguous requests such as “帮我做 Stroop”, cross-pipeline work, system-capability questions, or explicit invocations of Amazing PsyCoder. Supports PsychoPy, jsPsych, Psychtoolbox, R, and Python. For a clearly scoped single-stage request, route directly to the matching psy-exp-* or psy-ana-* skill.

Pourquoi utiliser Amazing Psycoder sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Amazing Psycoder se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Amazing Psycoder dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/soupandpsy/amazing-psycoder-skills/tree/main/amazing-psycoder. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Amazing Psycoder ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Amazing Psycoder ?

Autant que vous le souhaitez. Tant qu’un modèle prend en charge les compétences, vous pouvez utiliser Amazing Psycoder avec lui : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Amazing Psycoder est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par soupandpsy sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, modèles de documents ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇