/write-experiment — Experiment Chapter Writing
D2: Experiment chapter generation — transforms B-layer experiment results and figures into a comprehensive experimental section.
Purpose
Read the B-layer experiment results (metrics, figures) and the C-layer forest contributions, and generate a well-structured Experiment section in LaTeX format.
Usage
/write-experiment <forest_id> [--venue <venue_name>]
Examples:
/write-experiment exp-2024-run-01 --venue NeurIPS/write-experiment my-forest --venue CVPR
Prerequisites
Before running this skill, ensure:
- B-layer experiments have been executed and results collected
- Viz figures have been generated — call
viz_generateduring Phase 2 Step 4 of/research-loopto generate ablation curves, score distributions, and contribution heatmaps before proceeding. Ifresearch/figures/is empty, generate them now:- Call
viz_generateon each confirmed hypothesis - Call
viz_polishfor publication-quality rendering - Record the output paths for reference in the chapter
- Call
- The forest has at least one contribution recorded
Behavior
Step 1: Gather Experiment Data
- Read the forest:
research_get_forest(forest_id)— get contributions and experiment nodes - Collect all experiment results:
- Metrics from
bench_runoutputs - Figure paths from
viz_generateoutputs (stored inresearch/figures/) - Polished figures from
viz_polishoutputs
- Metrics from
- List all figures: check
research/figures/directory- If no figures exist: call
viz_generatenow for ablation curves and main result plots - Call
viz_polishon each figure before including in the chapter
- If no figures exist: call
Step 2: Organize Results
Group results into categories:
- Main Results — primary performance comparisons
- Ablation Studies — contribution of individual components
- Sensitivity Analysis — robustness to hyperparameters
- Additional Experiments — any supplementary results
Step 3: Synthesize the Experiment Chapter
Generate a LaTeX experiment chapter covering:
- Experimental Setup — datasets, baselines, evaluation metrics, implementation details
- Main Results — primary performance table/figure with comparisons to baselines and SOTA
- Ablation Studies — breakdown of each contribution's impact
- Analysis — interpretation of results, key insights, statistical significance
Step 4: Write to File
- Output path:
<repo>/research/paper/sections/experiment.tex - Include figure references:
\includegraphics{../figures/<figure_name>.png} - Call
bib_appendto add baseline method citations
Output Format
\section{Experiments}
\label{sec:experiments}
\subsection{Experimental Setup}
% Datasets, metrics, baselines
\subsection{Main Results}
% Primary performance comparisons (include table/figure)
\subsection{Ablation Studies}
% Contribution breakdown
\subsection{Analysis}
% Key insights and interpretation
Tool Usage
| Tool | Purpose |
|---|---|
research_get_forest |
Read contributions and experiment nodes |
bib_append |
Add baseline/SOTA method citations |
/ask-lit |
Retrieve baseline method details from literature |
viz_generate |
Generate ablation curves, score distributions, contribution heatmaps |
viz_polish |
Polish figures for publication quality before including in chapter |
Output
Returns:
- Path to the written LaTeX file:
research/paper/sections/experiment.tex - List of included figures
- Number of BibTeX entries appended
Pipeline Handoff
After writing the experiment chapter, invoke the next skill in the pipeline:
/write-intro <forest_id>— Introduction (requires contributions from Phase 3)/write-related <forest_id>— Related Work (requires evidence nodes with literature refs)/paper-assemble --forest <forest_id>— Assemble all sections into paper.tex
Do NOT call multiple write skills in parallel. Run them sequentially so each chapter can reference the output of the previous one.
Source: DataLab-atom/EvoAny — distributed by TomeVault.