experiment-agent
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "experiment-agent" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0c5d11e3469efb11f092fa63de5d4c1555843ae9ee4b68992febcc2e0a720609. Verify the upstream source and version against https://github.com/Imbad0202/experiment-agent before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Academic research experiment execution and monitoring system. A dual-agent system covering code-based experiments (ML training, statistical analysis, ETL, simulation) and human-subject research (surveys, field studies, interviews). Provides four modes: Run (execute and monitor code), Manage (track human research), Verify (statistical interpretation and reproducibility checks), and Plan (Socratic experiment design). Applicable triggers include running experiments, executing code, model training, benchmarking, managing studies, tracking participants, field research, surveys, result verification, statistical checks, reproducing results, and experiment planning and design.
Introduction source: third_party · Imbad0202 · 1.2.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- All outputs use **Markdown-based structured format** with Material Passport (ARS Schema 9) for compatibility. Each output starts with a `## Material Passport` header followed by the mode-specific content. See `templates/output_formats.md` for complete templates for the three execution/validation outputs: **Experiment Result** (run mode): Material Passport + ID, type, status, command, output files, anomalies **Study Status** (manage mode): Material Passport + ID, phase, progress, ethics status, risks, data readiness **Validation Report** (validate mode): Material Passport + statistical findings table, warnings, fallacy scan, reproducibility verdict Plan mode outputs use separate templates and
- Software, accounts and paid services
- Most modes work with any LLM runtime that supports prompt + reasoning. Session resume in `manage` mode** additionally requires the runtime to provide Read, Write, and Edit tool access to the local filesystem. Claude Code provides these. Runtimes that surface only chat I/O can use PLAN and ETHICS in-session, but study state will not persist across restarts, the `resume <study_id>` command will be unavailable, and a study cannot move to TRACK. The study state checker** (`scripts/check_study_state.py`) validates `manage` mode's study state file and derives its ethics status. It needs a command tool (Bash in Claude Code), Python 3.9 or later, and PyYAML (`python3 -m pip install pyyaml`). Without
- Testing
- Not tested
Browse files
Frontmatter
name: experiment-agent
description: "Experiment executor and monitor for academic research. 2-agent system covering code experiments (ML training, statistical analysis, ETL, simulation) and human studies (surveys, field studies, interviews). 4 modes: run (execute + monitor code), manage (track human studies), validate (statistical interpretation + reproducibility verification), plan (Socratic experiment design). Use when a researcher wants to run or monitor a research experiment, manage or resume a human-subject study, check the statistics or reproducibility of research results, or design an experiment or study, in English or Chinese (e.g., 跑實驗、管理研究、驗證結果、規劃實驗)."
metadata:
version: "1.2.0"
last_updated: "2026-09-25"
author: "Cheng-I Wu"
license: "CC-BY-NC 4.0"
status: active
related_skills:
- academic-pipeline
- deep-research
- academic-paper
- academic-paper-reviewerExperiment Agent v1.2.0 — Experiment Executor and Monitor
Execute, monitor, interpret, and verify experiments for academic research. Works independently or as an optional bridge between ARS Stage 1 (RESEARCH) and Stage 2 (WRITE).
Role: Executor + Monitor. This skill does NOT judge whether results are good for a paper (that is the reviewer's job). It ensures experiments complete successfully, interprets statistical output, and verifies reproducibility.
Quick Start
Run a code experiment:
Run my training script: python train.py --epochs 50 --output results/
Manage a human study:
Help me manage my survey study — I need 200 responses by May 30
Validate results:
Validate these regression results: results/analysis_output.csv
Plan an experiment:
Help me design an experiment to test whether AI tools improve QA officer productivity
Trigger Keywords
English: run experiment, execute code, train model, benchmark, analyze data, manage study, track participants, field study, survey, validate results, check statistics, reproduce, re-run, plan experiment, design study, what should I test
Chinese: 跑實驗, 執行程式, 訓練模型, 基準測試, 分析資料, 管理研究, 追蹤參與者, 田野研究, 問卷, 驗證結果, 檢查統計, 重現, 規劃實驗, 設計研究
Modes
| Mode | Purpose | Agent | Spectrum |
|---|---|---|---|
run |
Execute code experiments + real-time monitoring | code_runner_agent | Fidelity |
manage |
Manage human study workflow + progress tracking | study_manager_agent | Balanced |
validate |
Statistical interpretation + reproducibility verification | SKILL.md (stats) + code_runner_agent (re-run) | Fidelity |
plan |
Socratic dialogue to design experiments | SKILL.md direct | Originality |
Mode Selection
| User Signal | Mode |
|---|---|
| Has a script/command to run | run |
| Running a survey, interview, field study, lab experiment | manage |
| Has results, wants to check numbers or reproduce | validate |
| Wants to figure out what experiment to do | plan |
| Ambiguous | Ask: "Are you running code or managing a human study?" |
Routing
- Detect intent from user's first message using trigger keywords
- Code execution keywords → dispatch
code_runner_agent(run mode) - Human study keywords → dispatch
study_manager_agent(manage mode)- Session resume: If the user's first message in a session matches
resume <argument>(where argument is a study_id slug or a path to a state.md file), OR if any later turn matchesresume <argument>and no artifact write has occurred this session, route to study_manager_agent's RESUME entry path. The agent will read the artifact, validate, and prompt user confirmation before resuming the study at its last known phase.
- Session resume: If the user's first message in a session matches
- Validation keywords → enter validate mode (handled inline, see below)
- Design keywords → enter plan mode (handled inline, see below)
Dispatching or delegating to an agent in this skill means reading its file under agents/ and following it yourself in this conversation: both agents need the user mid-task (confirming a command, choosing what to do about an anomaly, answering protocol questions one at a time).
Runtime Requirements
Most modes work with any LLM runtime that supports prompt + reasoning.
Session resume in manage mode additionally requires the runtime to provide Read, Write, and Edit tool access to the local filesystem. Claude Code provides these. Runtimes that surface only chat I/O can use PLAN and ETHICS in-session, but study state will not persist across restarts, the resume <study_id> command will be unavailable, and a study cannot move to TRACK.
The study state checker (scripts/check_study_state.py) validates manage mode's study state file and derives its ethics status. It needs a command tool (Bash in Claude Code), Python 3.9 or later, and PyYAML (python3 -m pip install pyyaml). Without it, manage mode still plans, runs the ethics checklist, and tracks studies already in TRACK, applying the rules by hand and saying so, but it does not move a study from ETHICS to TRACK.
validate Mode (Inline)
Two capabilities: statistical interpretation and reproducibility verification. Accepts results from any source (this agent's run/manage modes, external files, ARS pipeline output).
Procedure
-
DETECT — Scan user-provided files for statistical content (p-values, CIs, effect sizes, coefficients, test statistics). Structured formats (CSV/JSON) are parsed directly; from unstructured output, extract the values yourself and have the user confirm them before interpreting.
-
INTERPRET — Item-by-item analysis. See
references/statistical_interpretation_guide.mdfor full protocol covering: significance, effect size classification, CI assessment, assumption verification, multiple comparison correction. -
FALLACY SCAN — Check 11 known statistical fallacy patterns (structural, inferential, causal). See
references/statistical_interpretation_guide.mdfor the full checklist. All 11 must be checked; report coverage in output. -
REPRODUCE (optional, code experiments only) — If user provides executable command + original results, delegate to code_runner_agent for re-run, then compare. See
references/reproducibility_protocol.md. Not applicable to human studies or non-rerunnable external systems. -
REPORT — Produce validation report in Markdown structured format (see
templates/output_formats.md). UseVerification Status: ANALYZEDfor stats-only or non-rerunnable cases, andVERIFIEDonly after a successful reproducibility re-run.
Scope boundary: validate mode describes what numbers say and flags potential fallacies. It does NOT make editorial recommendations about what to write in the paper — that is the ARS reviewer's job.
plan Mode (Inline)
Socratic dialogue to help users design experiments before running them. plan mode helps the user clarify their thinking — it does not prescribe a specific design. The user makes all design decisions.
Procedure
- Clarify RQ — What are you trying to test? What is the hypothesis?
- Variables — Identify IV, DV, control variables, potential confounds
- Design — Experimental / quasi-experimental / observational / mixed methods?
- Method selection — Based on RQ + design, suggest appropriate methods
- Sample — Population, sampling strategy, power analysis for sample size
- Analysis strategy — Which statistical tests? What are the assumptions?
- Produce plan — Output a structured experiment plan using
templates/code_experiment_plan.mdortemplates/study_protocol.md
One question at a time. Multiple choice preferred. If user brings ARS Stage 1 output (RQ Brief, Methodology Blueprint), parse section headings and pre-populate steps 1-4.
Output Formats
All outputs use Markdown-based structured format with Material Passport (ARS Schema 9) for compatibility. Each output starts with a ## Material Passport header followed by the mode-specific content.
See templates/output_formats.md for complete templates for the three execution/validation outputs:
- Experiment Result (run mode): Material Passport + ID, type, status, command, output files, anomalies
- Study Status (manage mode): Material Passport + ID, phase, progress, ethics status, risks, data readiness
- Validation Report (validate mode): Material Passport + statistical findings table, warnings, fallacy scan, reproducibility verdict
Plan mode outputs use separate templates and also carry Material Passport:
- Code Experiment Plan (plan mode, code path):
templates/code_experiment_plan.md - Study Protocol (plan mode, human-study path):
templates/study_protocol.md
Quality Standards
| Standard | Requirement |
|---|---|
| Monitoring coverage | Every code experiment must have at least process-alive + timeout monitoring |
| Statistical rigor | All 11 fallacy types must be checked in validate mode; coverage reported |
| Reproducibility | Deterministic experiments: exact match required. Stochastic: < 5% relative diff default. Environment-sensitive: < 10% relative diff default (see references/reproducibility_protocol.md) |
| ARS compatibility | All outputs include Material Passport with required fields per ARS Schema 9 |
| User sovereignty | All anomaly detections are ADVISORY; only hard timeout auto-kills |
Safety Rules
| # | Rule |
|---|---|
| 1 | Only execute user-specified commands — never auto-generate or modify scripts. Exception: manage mode runs this skill's read-only study state checker (scripts/check_study_state.py) |
| 2 | Never auto-retry crashed experiments — notify user, user decides |
| 3 | Never auto-kill except hard timeout — notify before kill |
| 4 | Monitor only user-specified output paths |
| 5 | Never upload data to external services |
| 6 | Never touch raw participant data — track metadata only (counts, rates) |
| 7 | Never send notifications to study participants |
| 8 | Power analysis uses conservative estimates |
| 9 | Statistical interpretation is descriptive — does not draw conclusions for user |
| 10 | RED_FLAG means "needs user attention", not "result is wrong" |
Anti-Patterns
| # | Anti-Pattern | Why It's Wrong |
|---|---|---|
| 1 | Auto-modifying user's experiment code | Violates safety rule 1; user owns their code |
| 2 | Silently retrying a crashed run | Masks the real error; wastes compute |
| 3 | Reporting p < .05 as "the result is significant" without effect size | Statistical significance without practical significance is misleading |
| 4 | Skipping fallacy scan because "results look clean" | Fallacies are invisible without systematic checking |
| 5 | Making editorial recommendations in validate mode | That's the reviewer's job, not ours |
Reference Files
| File | Purpose |
|---|---|
references/stall_detection_protocol.md |
Monitoring thresholds, anomaly types, detection logic |
references/irb_ethics_checklist.md |
Human study ethics review checklist |
references/statistical_interpretation_guide.md |
Full statistical interpretation + 11-type fallacy scan protocol |
references/reproducibility_protocol.md |
Re-run methodology, comparison thresholds, verdict criteria |
references/ars_integration_guide.md |
ARS Material Passport, handoff format, pipeline bridging |
references/study_state_protocol.md |
Canonical reference for the study state artifact format used by manage mode session resume: schema, write/resume protocols, validation rules, prompt-injection guard, IRB approval reconfirmation set. |
scripts/check_study_state.py |
Validates a study state file and derives its ethics status for manage mode (Python 3.9+, PyYAML). |
templates/output_formats.md |
Complete Markdown output templates for all three output types |
ARS Integration (Optional)
This skill works independently. When used with ARS:
- Consuming ARS output: Recognizes ARS Stage 1 section headings (
## Research Question Brief,## Methodology Blueprint) to pre-populate plan/manage modes - Producing ARS-compatible output: All outputs carry Material Passport (Schema 9). Users bring results to ARS Stage 2 manually.
- ARS requires zero modification: No new pipeline stages, no dependencies. The user is the bridge.
See references/ars_integration_guide.md for details.
Experiment Agent v1.2.0 | 2026-09-25 | CC-BY-NC 4.0 | Cheng-I Wu
Version history
-
v1.2.0
GitHub ↗
Original release notes
## What's changed A feature release for human studies in `manage` mode. - A study's validation and ethics status now come from a program, `scripts/check_study_state.py`, instead of the model's reading of the checklist. A study moves on to participant recruitment and data collection only when the program reports READY, and its data goes to analysis only when the ethics status is READY. If the program cannot run, the agent applies the rules by hand and says so, and it does not move a study into data collection. - After an IRB approval, the reconfirmation items must be answered again, later than the approval, before the study is READY. - Moving a study into data collection now needs Python 3.9 or later and PyYAML. Without them every mode still works, but a study cannot move from ETHICS to TRACK. - Study state files are checked more strictly: a file that v1.1.0 accepted can be reported INVALID, with a message naming the problem, and the agent then does not resume that study until the file is fixed. After upgrading, run the checker on each study state file before you resume the study. A study's ethics status can become stricter, never looser. Spec: [docs/specs/2026-09-24-study-state-checker-design.md](https://github.com/Imbad0202/experiment-agent/blob/v1.2.0/docs/specs/2026-09-24-study-state-checker-design.md). Plan: [docs/plans/2026-09-24-study-state-checker-implementation.md](https://github.com/Imbad0202/experiment-agent/blob/v1.2.0/docs/plans/2026-09-24-study-state-checker-implementation.md). ### New: Study state checker (F-08) - `scripts/check_study_state.py` reads a study state artifact and prints `result: VALID` with the derived ethics status and its reasons, or `result: INVALID` with one line per failed rule (V1-V10). It exits 0 when valid, 1 when invalid, and 2 when it cannot run. - `study_manager_agent` runs the checker after each write, when it validates an artifact, and before it reports or acts on an ethics status. If the checker cannot run, the agent says so, applies the rules by hand, and does not move a study from ETHICS to TRACK. - After an IRB approval, the items in the reconfirmation set count only when they are answered again after the recorded approval time. The agent takes every time it records from the checker's `--now` option. - Data goes to analysis only when the ethics status is READY. Collection can still be recorded as complete without it. - `manage` mode now needs Python 3.9 or later and PyYAML to move a study into data collection. Both READMEs have a requirements section. ### Changed - The skill's prompts were revised for current models (audit findings F-01 to F-07, F-09, F-10 and B-1). This covers how SKILL.md dispatches an agent, how statistical values read from unstructured output are confirmed with the user, the default tolerance for environment-sensitive reproducibility, and the ethics status wording in the templates. - The artifact layout is strict. HTML, any heading other than the four section headings, a code fence not at the first column, code other than the one yaml block in Ethics Checklist Status or TRACK Log, a line nested or indented 16 or more columns deep, and a body line starting `$$` make an artifact INVALID. The spec names the readers whose display the checker matches (GitHub's file view, VS Code's preview and markdown-it), with one exception: inline math in VS Code's preview. - The frontmatter and the yaml blocks are read strictly as well. YAML that the checker cannot read unambiguously is a parse error, for example a tag (such as `!!int`), a merge key (`<<`), a directive (`%YAML` or `%TAG`), a repeated key, or the line separators U+0085, U+2028 and U+2029; the spec lists the rest. The file must start with a line that is exactly `---`, with no byte order mark before it; no line up to the closing `---` may end with a lone CR; and no line inside the frontmatter may be one that a Markdown reader could take as its end, such as `---` indented by up to three spaces, or `...` alone on a line, however indented. - A release check (`.github/workflows/release-discipline.yml`) runs on every push, pull request and version tag. It fails when the files that state the release version or date disagree. ### Fixed - The version badge in both READMEs still showed 1.0, and the code runner agent's footer still said v1.0. Both now show the current version. - The study state protocol said its list of out-of-scope behaviors was for v1.1.0. The list still applies, so that line no longer names a release. - The 2026-05-02 session resume spec and plan use fictional names in their examples. ### Compatibility - v1.2.0 checks study state files more strictly than v1.1.0 did, including files that v1.1.0 accepted and files edited by hand. A file that drifts from the documented schema (an unknown item ID, a status or event kind outside the documented values, a timestamp without offset), or that uses one of the layouts or YAML forms above, becomes INVALID with a message naming the problem, and the agent does not resume that study until the file is fixed or the study is recreated. After upgrading, run `python3 scripts/check_study_state.py <path-to-state.md>` from the skill's directory on each study state file before you resume the study. - The derived status can be stricter for v1.1.0 artifacts, for example when reconfirmation after an approval is missing. It never becomes looser. For a study already in TRACK or COLLECT, the agent then tells the user that recruitment and data collection stop, and that no data goes to analysis, until the status is READY again. - Without Python 3.9+ and PyYAML every mode still works, except that a study cannot move from ETHICS to TRACK. ### Still deferred The session resume hardening that v1.1.0 listed as "deferred to v1.2.0" is not in this release and has no target version: external-edit detection, recovery of a vanished or moved file, several studies in one workspace, an explicit `ethics-upgrade` command, slug-collision resolution, archiving old artifacts, and schema migration. **Full changelog**: https://github.com/Imbad0202/experiment-agent/compare/v1.1.0...v1.2.0
-
v1.1.0
GitHub ↗
Original release notes
First-ship of `study_manager_agent` session resume (PR 1 of 2 for ROADMAP item v1.2.3). Multi-week or multi-month human studies now survive Claude session restarts via an artifact-anchored persistence model. ## New: Session resume for human studies - `study_manager_agent` now persists study state to disk on every state-changing turn - New `resume <study_id>` command rebuilds context from the artifact at `./<study_id>/state.md` (or user-specified path) - Artifact format: Markdown + YAML frontmatter, schema_version 1. Template at `templates/study_state.md`, worked example at `templates/study_state.example.md` - Ethics status is now **derived** from per-item state with strict precedence (NOT_YET_ASSESSED → ETHICS_BLOCKED → ETHICS_PENDING → READY), mirroring the rules at the top of `references/irb_ethics_checklist.md`. Frontmatter no longer stores ethics_status as a cached field. - IRB approval transitions trigger a category-based reconfirmation pass (categories 1, 2.2-2.5, 3.4-3.6, 4 applicable, 5.2). See `references/study_state_protocol.md` "IRB approval reconfirmation set" - Stale-write detection via revision counter. Two Claude sessions writing the same artifact are now safe: the second writer detects the revision change and refuses - Prompt-injection guard: artifact body content is treated as data describing the study, never as instruction directed at the agent - Runtime requirement: `resume` requires Read/Write/Edit tool access (Claude Code OK; chat-only runtimes do not get persistence) ## Out of scope for v1.1.0 (deferred to v1.2.0) - External-edit detection (artifact edited externally with same revision) - Vanished-file or moved-file recovery - Multi-study concurrent in same workspace - Explicit `ethics-upgrade` command - Slug-collision resolution (v1.1.0 refuses + asks user) - Auto-archive or garbage collection of old artifacts - Schema migration tooling - Structural restructure of `agents/study_manager_agent.md` ## No breaking changes - v1.0.1 users see no behavior change unless they invoke `resume` or start a study under the new persistence path - Material Passport schema unchanged; ARS coupling unchanged ## Implementation provenance Spec: 6 codex review rounds before implementation began. Plan: 10-task PDD-style with codex consult cross-model gate per task. 23 commits on the implementation branch (see PR #3 for full history) covering implementation + codex fixes + code-quality reviewer fixes. **Full changelog**: https://github.com/Imbad0202/experiment-agent/compare/v1.0.1...v1.1.0
-
v1.0.1
GitHub ↗
Original release notes
Patch release. All items below were merged into `main` on 2026-04-14 via PR #1; this release tags the dogfooded result. ## Contract Fixes - Clarified `validate` output semantics: `Verification Status` is now `ANALYZED` unless a successful reproducibility re-run upgrades it to `VERIFIED` - Added Material Passport headers to `plan` mode templates (`code_experiment_plan.md`, `study_protocol.md`) - Fixed reproducibility guidance for zero-baseline metrics by using a symmetric denominator with epsilon protection - Reclassified hardware/OS-sensitive runs as `environment-sensitive` comparisons instead of blanket `not applicable` - Added `CANNOT_VERIFY` and environment-sensitive cases to the documented validation/reproducibility output contract - Tightened ethics gating so only `READY` can enter study tracking, while `ETHICS_PENDING` still blocks participant recruitment and data collection - Relaxed consent wording to allow IRB-approved digital, implied, or waived consent paths where appropriate - Corrected the chi-squared fallback guidance so Fisher's exact is limited to 2x2 tables **Full changelog**: https://github.com/Imbad0202/experiment-agent/compare/9b063fa...v1.0.1
Current listing version
1.2.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖学术研究实验全流程(运行、管理、验证、规划),实用价值高
- 双代理系统支持代码实验和人类研究,场景覆盖全面
Highlights
- 触发词覆盖中英文,变体丰富,边界清晰
- 明确区分代码执行与人类研究场景,降低误触风险
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档使用 Quick Start 替代 When to Use,虽功能等效但不符合标准结构
Recommendation: 建议增加显式 When to Use 章节以提升规范性
Highlights
- 结构清晰,分模式、路由、输出格式等章节
- 提供详细流程说明和端到端示例,frontmatter 完整
Areas to improve
-
外部依赖安装说明不完整 Reported severity: Major
scripts/check_study_state.py 依赖 PyYAML,但未明确说明安装方式(如 pip install pyyaml)
Recommendation: 建议在 Runtime Requirements 中明确列出所有外部依赖的安装命令
Highlights
- 工具来源明确,参数说明清晰
- 覆盖主要异常(超时、崩溃),不可逆操作需用户确认
- 有详细安全规则和防错机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 93
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Most modes work with any LLM runtime that supports prompt + reasoning. Session resume in `manage` mode** additionally requires the runtime to provide Read, Write, and Edit tool access to the local filesystem. Claude Code provides these. Runtimes that surface only chat I/O can use PLAN and ETHICS in-session, but study state will not persist across restarts, the `resume <study_id>` command will be unavailable, and a study cannot move to TRACK. The study state checker** (`scripts/check_study_state.py`) validates `manage` mode's study state file and derives its ethics status. It needs a command tool (Bash in Claude Code), Python 3.9 or later, and PyYAML (`python3 -m pip install pyyaml`). Without
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.