Experiment Design
Design structured, progressive experiment plans for research papers.
Input
$0 — Research idea, plan, or method description
References
- 4-stage progressive experiment prompts:
~/.claude/skills/experiment-design/references/stage-prompts.md
Scripts
Generate experiment design
python ~/.claude/skills/experiment-design/scripts/design_experiments.py --plan research_plan.json --output experiment_design.json
python ~/.claude/skills/experiment-design/scripts/design_experiments.py --method "contrastive learning" --task classification --format markdown
Generates baselines, ablation matrix, hyperparameter grid, metric selection. Stdlib-only.
4-Stage Progressive Framework (from AI-Scientist-v2)
Stage 1: Initial Implementation
- Focus on getting a basic working implementation
- Use a simple dataset
- Aim for basic functional correctness
- Completion: at least one working (non-buggy) implementation
Stage 2: Baseline Tuning
- Tune hyperparameters (learning rate, epochs, batch size)
- Do NOT change model architecture
- Test on at least TWO datasets
- Completion: stable training curves, improvement over Stage 1
Stage 3: Creative Research
- Explore novel improvements and insights
- Be creative and think outside the box
- Test on at least THREE datasets
- Completion: demonstrated novel improvement
Stage 4: Ablation Studies
- Systematic component analysis
- Each ablation tests a different aspect
- Use same datasets as Stage 3
- Completion: all planned ablations done
Output Format
{
"stages": [
{
"name": "initial_implementation",
"goals": ["Basic working baseline", "Simple dataset"],
"max_iterations": 5,
"completion_criteria": "Working implementation with non-zero accuracy"
}
],
"baselines": ["Method A", "Method B"],
"datasets": ["Dataset1", "Dataset2", "Dataset3"],
"metrics": ["accuracy", "F1", "inference_time"],
"ablation_components": ["component_A", "component_B"],
"hyperparameter_grid": {
"lr": [1e-4, 1e-3, 1e-2],
"batch_size": [32, 64, 128]
},
"num_seeds": 3
}
Rules
- Always start simple (Stage 1) before complex experiments
- Each stage builds on the best result from the previous stage
- Multi-seed evaluation for statistical significance
- Document every experiment run in notes.txt
- Generate figures for training curves and comparisons
Related Skills
1---2name: experiment-design3description: Design experiment plans with progressive stages — initial implementation, baseline tuning, creative research, and ablation studies. Plan baselines, datasets, hyperparameter sweeps, and evaluation metrics. Use when planning experiments for a research paper.4---56# Experiment Design78Design structured, progressive experiment plans for research papers.910## Input1112- `$0` — Research idea, plan, or method description1314## References1516- 4-stage progressive experiment prompts: `~/.claude/skills/experiment-design/references/stage-prompts.md`1718## Scripts1920### Generate experiment design21```bash22python ~/.claude/skills/experiment-design/scripts/design_experiments.py --plan research_plan.json --output experiment_design.json23python ~/.claude/skills/experiment-design/scripts/design_experiments.py --method "contrastive learning" --task classification --format markdown24```2526Generates baselines, ablation matrix, hyperparameter grid, metric selection. Stdlib-only.2728## 4-Stage Progressive Framework (from AI-Scientist-v2)2930### Stage 1: Initial Implementation31- Focus on getting a basic working implementation32- Use a simple dataset33- Aim for basic functional correctness34- Completion: at least one working (non-buggy) implementation3536### Stage 2: Baseline Tuning37- Tune hyperparameters (learning rate, epochs, batch size)38- Do NOT change model architecture39- Test on at least TWO datasets40- Completion: stable training curves, improvement over Stage 14142### Stage 3: Creative Research43- Explore novel improvements and insights44- Be creative and think outside the box45- Test on at least THREE datasets46- Completion: demonstrated novel improvement4748### Stage 4: Ablation Studies49- Systematic component analysis50- Each ablation tests a different aspect51- Use same datasets as Stage 352- Completion: all planned ablations done5354## Output Format5556```json57{58 "stages": [59 {60 "name": "initial_implementation",61 "goals": ["Basic working baseline", "Simple dataset"],62 "max_iterations": 5,63 "completion_criteria": "Working implementation with non-zero accuracy"64 }65 ],66 "baselines": ["Method A", "Method B"],67 "datasets": ["Dataset1", "Dataset2", "Dataset3"],68 "metrics": ["accuracy", "F1", "inference_time"],69 "ablation_components": ["component_A", "component_B"],70 "hyperparameter_grid": {71 "lr": [1e-4, 1e-3, 1e-2],72 "batch_size": [32, 64, 128]73 },74 "num_seeds": 375}76```7778## Rules7980- Always start simple (Stage 1) before complex experiments81- Each stage builds on the best result from the previous stage82- Multi-seed evaluation for statistical significance83- Document every experiment run in notes.txt84- Generate figures for training curves and comparisons8586## Related Skills87- Upstream: [research-planning](../research-planning/), [idea-generation](../idea-generation/)88- Downstream: [experiment-code](../experiment-code/), [data-analysis](../data-analysis/)89- See also: [paper-assembly](../paper-assembly/)