experiment-agent

学术研究实验执行与监控系统。双代理系统,涵盖代码类实验(机器学习训练、统计分析、ETL、仿真)和人类研究(问卷调查、实地研究、访谈)。提供四种模式:运行(执行并监控代码)、管理(跟踪人类研究)、验证(统计解释与可复现性验证)和规划(苏格拉底式实验设计)。适用于触发场景如运行实验、执行代码、模型训练、基准测试、管理研究、跟踪参与者、实地研究、问卷调查、验证结果、检查统计、复现结果以及规划与设计实验。

仓库最近推送
GitHub Stars
221
Forks
15
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "experiment-agent":https://skillpi.com/zh/skills/deepskill-0c5d11e3469efb11f092fa63de5d4c1555843ae9ee4b68992febcc2e0a720609。安装前核对上游来源和版本:https://github.com/Imbad0202/experiment-agent。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

学术研究实验执行与监控系统。双代理系统,涵盖代码类实验(机器学习训练、统计分析、ETL、仿真)和人类研究(问卷调查、实地研究、访谈)。提供四种模式:运行(执行并监控代码)、管理(跟踪人类研究)、验证(统计解释与可复现性验证)和规划(苏格拉底式实验设计)。适用于触发场景如运行实验、执行代码、模型训练、基准测试、管理研究、跟踪参与者、实地研究、问卷调查、验证结果、检查统计、复现结果以及规划与设计实验。

0 下载

介绍来源: third_party · Imbad0202 · 1.2.0 参考来源

SkillPi 解读

能完成的任务
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., 跑實驗、管理研究、驗證結果、規劃實驗).
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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-reviewer

Experiment 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

  1. Detect intent from user's first message using trigger keywords
  2. Code execution keywords → dispatch code_runner_agent (run mode)
  3. 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 matches resume <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.
  4. Validation keywords → enter validate mode (handled inline, see below)
  5. 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

  1. 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.

  2. INTERPRET — Item-by-item analysis. See references/statistical_interpretation_guide.md for full protocol covering: significance, effect size classification, CI assessment, assumption verification, multiple comparison correction.

  3. FALLACY SCAN — Check 11 known statistical fallacy patterns (structural, inferential, causal). See references/statistical_interpretation_guide.md for the full checklist. All 11 must be checked; report coverage in output.

  4. 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.

  5. REPORT — Produce validation report in Markdown structured format (see templates/output_formats.md). Use Verification Status: ANALYZED for stats-only or non-rerunnable cases, and VERIFIED only 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

  1. Clarify RQ — What are you trying to test? What is the hypothesis?
  2. Variables — Identify IV, DV, control variables, potential confounds
  3. Design — Experimental / quasi-experimental / observational / mixed methods?
  4. Method selection — Based on RQ + design, suggest appropriate methods
  5. Sample — Population, sampling strategy, power analysis for sample size
  6. Analysis strategy — Which statistical tests? What are the assumptions?
  7. Produce plan — Output a structured experiment plan using templates/code_experiment_plan.md or templates/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

版本历史

  1. v1.2.0 GitHub ↗
    原版更新说明

    ## 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

  2. v1.1.0 GitHub ↗
    原版更新说明

    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

  3. v1.0.1 GitHub ↗
    原版更新说明

    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

当前收录版本

1.2.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值88/100

亮点

  • 覆盖学术研究实验全流程(运行、管理、验证、规划),实用价值高
  • 双代理系统支持代码实验和人类研究,场景覆盖全面
触发精准92/100

亮点

  • 触发词覆盖中英文,变体丰富,边界清晰
  • 明确区分代码执行与人类研究场景,降低误触风险
结构规范90/100

待提升项

  • 缺少 When to Use 显式章节 原报告严重程度:轻微

    文档使用 Quick Start 替代 When to Use,虽功能等效但不符合标准结构

    改进建议:建议增加显式 When to Use 章节以提升规范性

亮点

  • 结构清晰,分模式、路由、输出格式等章节
  • 提供详细流程说明和端到端示例,frontmatter 完整
执行可靠85/100

待提升项

  • 外部依赖安装说明不完整 原报告严重程度:重大

    scripts/check_study_state.py 依赖 PyYAML,但未明确说明安装方式(如 pip install pyyaml)

    改进建议:建议在 Runtime Requirements 中明确列出所有外部依赖的安装命令

亮点

  • 工具来源明确,参数说明清晰
  • 覆盖主要异常(超时、崩溃),不可逆操作需用户确认
  • 有详细安全规则和防错机制
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 93 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。