Logo Amazing Psycoder

Amazing Psycoder

Cộng đồng
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.

Tổng quan

Nhà phát hànhsoupandpsy
Kho mãamazing-psycoder-skills
Tên kỹ năngamazing-psycoder
Sao
38
Bản fork
1
Tệp đi kèm
446
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 446 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được soupandpsy công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Amazing Psycoder trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/soupandpsy/amazing-psycoder-skills/tree/main/amazing-psycoder
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Amazing Psycoder trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Amazing Psycoder ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Amazing Psycoder không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

và 140 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Amazing Psycoder làm được gì?

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.

Vì sao nên dùng Amazing Psycoder trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Amazing Psycoder là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Amazing Psycoder trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/soupandpsy/amazing-psycoder-skills/tree/main/amazing-psycoder. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Amazing Psycoder?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Amazing Psycoder với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Amazing Psycoder với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Amazing Psycoder có miễn phí không?

Có. Kỹ năng này được soupandpsy phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇