Exp eval

From Chanw-research/claude-code-paper-writing · View interactive version

Exp eval is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. 实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

How to use this skill

Skill file

/exp-eval

将已完成实验的结果转化为 wiki 知识更新。

Review LLM 作为 impartial judge(遵循 cross-model-review),独立评估实验结果对目标 claim 的影响。

4 种判决路径:supported → claim↑ + idea validated / partially_supported → 补充实验 /

not_supported → claim↓ + idea failed / inconclusive → debug。

自动更新 claims 的 confidence 和 evidence、ideas 的 status、graph edges。

Inputs

Outputs

Wiki Interaction

Reads

Writes

Graph edges created

Workflow

前置:

  1. 确认工作目录为 wiki 项目根(包含 wiki/、raw/、tools/ 的目录)
  2. 确认实验 status == completed(未完成的实验不能评判)

Step 1: 加载上下文

  1. 读取实验页面 wiki/experiments/{slug}.md:
  1. 读取目标 claim wiki/claims/{target-claim}.md:
  1. 读取关联 idea wiki/ideas/{linked-idea}.md(若存在):
  1. 加载同一 claim 的其他实验:
  1. 读取全局上下文:
  1. 读取 cross-model-review.md:确认 Review LLM 独立性原则

Step 2: Review LLM 判决(Cross-Model Verdict)

遵循 cross-model-review.md:不向 Review LLM 发送 Claude 的预判。

mcp__llm-review__chat:
  system: "You are an impartial scientific judge evaluating whether experimental
           results support or refute a research claim. Be rigorous and objective.
           Consider: statistical significance, effect size, experimental validity,
           potential confounds, and whether the results generalize beyond the
           specific setup tested."
  message: |
    ## Claim Under Test
    Title: {claim title}
    Statement: {claim statement from ## Statement section}
    Current status: {status}
    Current confidence: {confidence}
    Conditions: {conditions and scope}

    ## Experiment
    Title: {experiment title}
    Hypothesis: {hypothesis}
    Setup: {model, dataset, hardware, framework}
    Metrics: {metrics list}

    ## Results
    {full Results section from experiment page}

    ## Key Finding
    {key_result}

    ## Other Experiments on This Claim
    {summary of other experiments' outcomes on the same claim, if any}

    ## Your Task
    Provide your verdict:
    1. **Verdict**: One of: supported / partially_supported / not_supported / inconclusive
    2. **Confidence adjustment**: Suggest new confidence value (0.0-1.0) with reasoning
    3. **Evidence strength**: weak / moderate / strong
    4. **Key reasoning**: 2-3 sentences explaining your verdict
    5. **Concerns**: Any methodological concerns or limitations
    6. **Suggested next steps**: What would strengthen or clarify this result?

记录 Review LLM 的判决。

Step 3: Claude 综合评估

  1. 独立形成 Claude 的判决(在读取 Review LLM 判决后,Claude 也独立分析):
  1. 综合两个判决(遵循 cross-model-review.md composing rules):
  1. 确定最终判决:verdict + new_confidence + evidence_strength

Step 4: 根据判决更新 Wiki

若 --auto 未设置:先展示判决结果和计划变更,等待用户确认。

路径 A: SUPPORTED(实验支持 claim)
  1. 更新 claim:
  1. 更新 idea(若存在且 status 为 in_progress/tested):
  1. 添加 graph edge:

```bash

python3 tools/research_wiki.py add-edge wiki/ \

--from "experiments/{slug}" --to "claims/{target-claim}" \

--type supports --evidence "{key_result}"

```

  1. 建议下一步:/paper-plan 或继续 ablation/robustness 实验
路径 B: PARTIALLY_SUPPORTED(部分支持)
  1. 更新 claim:
  1. 添加 graph edge:

```bash

python3 tools/research_wiki.py add-edge wiki/ \

--from "experiments/{slug}" --to "claims/{target-claim}" \

--type supports --evidence "Partially supported: {limitation}"

```

  1. 建议补充实验:
  1. idea status 不变:保持 in_progress,等待更多证据
路径 C: NOT_SUPPORTED(实验不支持 claim)
  1. 更新 claim:
  1. 更新 idea(若存在):
  1. 添加 graph edge:

```bash

python3 tools/research_wiki.py add-edge wiki/ \

--from "experiments/{slug}" --to "claims/{target-claim}" \

--type invalidates --evidence "{failure_reason}"

```

  1. 建议下一步:
路径 D: INCONCLUSIVE(结果不确定)
  1. 不修改 claim status/confidence:证据不足以做判断
  1. 更新实验页面:outcome 已为 inconclusive(/exp-run 设置)
  1. 建议 debug:
  1. idea status 不变:保持当前状态
所有路径通用
  1. 更新实验页面的 ## Claim updates section:

```markdown

## Claim updates

```

  1. 更新 index.md(若 claim status 变化)
  1. 重建派生数据:

```bash

python3 tools/research_wiki.py rebuild-context-brief wiki/

python3 tools/research_wiki.py rebuild-open-questions wiki/

```

  1. 追加日志:

```bash

python3 tools/research_wiki.py log wiki/ \

"exp-eval | {slug} → {target-claim} | verdict: {verdict} | confidence: {old}→{new}"

```

  1. 输出 VERDICT_REPORT 到终端:

```markdown

# Verdict Report: {experiment title}

## Verdict: {SUPPORTED / PARTIALLY_SUPPORTED / NOT_SUPPORTED / INCONCLUSIVE}

## Judge Assessment

| | Claude | Review LLM | Final |

|---|-------|------|-------|

| Verdict | {verdict} | {verdict} | {verdict} |

| Confidence | {value} | {value} | {value} |

| Evidence strength | {strength} | {strength} | {strength} |

## Key Reasoning

{2-3 sentences from Review LLM + Claude synthesis}

## Wiki Changes

| Entity | Field | Before | After |

|--------|-------|--------|-------|

| claims/{slug} | confidence | {old} | {new} |

| claims/{slug} | status | {old} | {new} |

| ideas/{slug} | status | {old} | {new} |

## Graph Edges Added

## Concerns

{methodological concerns from Review LLM}

## Next Steps

## Wiki Growth

| Metric | Before | After | Delta |

|--------|--------|-------|-------|

| Claims updated | — | — | {N} |

| Edges | {before} | {after} | +{delta} |

| Maturity | {level} | {level} | {unchanged/upgraded} |

(数据来自 Step 1 开始时和 Step 4 结束后分别调用 python3 tools/research_wiki.py maturity wiki/ --json 的对比。)

```

Constraints

Error Handling

Dependencies

Tools(via Bash)

MCP Servers

Claude Code Native

Shared References

Called by

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.