agentleFS
ulab-uiuculab-uiuc/research-ledger/skills/exp-design/SKILL.md

exp-design

Skill2 starsChanged 7 months agoMITView on GitHub

Use when planning an experimental run set BEFORE executing — choosing which configurations to vary, which baselines to include, what hypothesis each run tests, and what outcome would settle the question. Not for tracking running experiments. Each invocation APPENDS a new table to ./experiments/<name>-design.md (append-only ledger of design revisions) and shows only the latest table inline.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. skyllwt/AutoSci★ 1.7ksame name
    2. Lambenthan/empiricalwiki★ 91same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every invocation produces TWO artifacts:

    line 24
  2. Distinctive:

    Question first: Write the caption (experimental question, scope, stop criterion) before any rows.

    line 64
  3. Very specific:

    Hand-off: When the latest design table is locked, exp-tracking is invoked with the same <name> and references the latest table here.

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Experiment Design

The experimental design is a stack of tables appended to a markdown file, decided BEFORE any run starts. Rows are candidate runs, columns are the configuration to vary plus the hypothesis and expected outcome. The caption states the experimental question, the fixed scope, and the stop criterion. The file at ./experiments/<name>-design.md accumulates design revisions over time — every revision appends Table N+1, never overwrites. Chat shows only the LATEST design.

When to Use

  • Designing a hyperparameter sweep, ablation, or comparison set
  • Choosing baselines and what variations to test against them
  • Deciding the stop criterion that would settle the experimental question

When NOT to Use

  • Tracking progress on already-running experiments (use exp-tracking)
  • A single one-off run (write a paragraph)
  • Pure dataset / model design without a comparison structure

Output Contract — Append-Only Stack

Every invocation produces TWO artifacts:

  1. Inline — the LATEST design table only (Table N+1), with caption, in chat.
  2. File — append the new table at the END of ./experiments/<name>-design.md (<name> is a slugged sweep name such as lr-sweep-7b; create the directory if missing). Use the Edit tool to APPEND, never the Write tool to overwrite. Earlier design revisions MUST stay intact.

The file is an append-only ledger of how the design evolved. exp-tracking always references the LATEST table when invoked.

The file is append-only — NEVER edit or overwrite earlier tables. Each revision (added run, dropped baseline, refined hypothesis) appends Table N+1 with a caption naming the delta.

Caption Contract

  1. Experimental question — what would the results decide?
  2. Scope — model / dataset / fixed knobs (everything that does NOT vary).
  3. Stop criterion — what outcome counts as "answered"?
  4. Update (for Table N where N>1) — what changed since Table N-1.

Format: **Table N.** <question> Scope: <fixed knobs>. Stop: <stop criterion>. Update: <delta from previous table>.

Bad: **Table 1.** lr sweep — no question, no scope, no stop. Good: **Table 1.** Learning-rate sweep on 7B summarization fine-tune — which lr maximizes val ROUGE-L without overfitting? Scope: model=7B-base, data=cnn-dm-train, batch=32, steps=5k, seed=0. Stop: best lr's val ROUGE-L > all others by 0.5+ or all within 0.5 (declare insensitive). Update: initial design.

Table Schema

| id | config | hypothesis | expected | baseline | dependency | generator |
|----|--------|------------|----------|----------|------------|-----------|
| R1 | lr=1e-3, seed=0 | overfits at high lr | val_loss > R2 by 0.1+ | R2 | — | [train.py](./src/train.py) |
  • id — stable run id (R1..Rk); same id is reused by exp-tracking AND across design revisions.
  • config — only the varied knob(s); fixed knobs go in the caption scope.
  • hypothesis — one sentence on what this row tests. Must be falsifiable by the metric named in expected.
  • expected — a quantitative comparison or threshold that would confirm the hypothesis.
  • baseline — id of the run this row is judged against (or — for absolute-baseline rows).
  • dependency — id of any prior run this depends on (— if independent).
  • generator — [<script>](./path/to/script) — the code that will run this row. Plain-text script names are a bug.
  • Empty cells: — or TBD. Never blank.

Interaction Flow

  1. Question first. Write the caption (experimental question, scope, stop criterion) before any rows.
  2. Skeleton. Propose rows for each candidate config; get user agreement on configs before filling hypotheses / expected.
  3. Create the file at ./experiments/<name>-design.md with Table 1.
  4. Fill hypotheses. Each row's hypothesis must be falsifiable by what's in expected.
  5. Append on revision. Adding/dropping rows or changing hypotheses appends Table N+1 to the END of the file (with a caption naming the delta) and shows the new table inline. NEVER overwrite earlier tables.
  6. Hand-off. When the latest design table is locked, exp-tracking is invoked with the same <name> and references the latest table here.

Worked Example

The file ./experiments/lr-sweep-design.md after one revision contains both tables:

Table 1. Learning-rate sweep for 7B summarization fine-tune — which lr maximizes val ROUGE-L without overfitting? Scope: model=7B-base, data=cnn-dm-train, batch=32, steps=5k, seed=0. Stop: best lr's val ROUGE-L > all others by 0.5+ or all within 0.5 (declare insensitive). Update: initial design.

idconfighypothesisexpectedbaselinedependencygenerator
R1lr=1e-3too high → overfitstrain_loss < R2, val_ROUGE < R2 by 1.0+R2—train.py
R2lr=3e-4sweet spot per LM literaturebest val_ROUGE——train.py
R3lr=1e-4undertrains in 5k stepsval_ROUGE < R2 by 0.5+R2—train.py
R4lr=3e-5too slow to convergeval_ROUGE worst of allR2—train.py

Table 2. Same question, scope, stop as Table 1. Update: dropped R4 (3e-5 confirmed too slow in pilot run, no learning signal); added R5 with seed=1 to check sensitivity at the best lr.

idconfighypothesisexpectedbaselinedependencygenerator
R1lr=1e-3too high → overfitstrain_loss < R2, val_ROUGE < R2 by 1.0+R2—train.py
R2lr=3e-4, seed=0sweet spot per LM literaturebest val_ROUGE——train.py
R3lr=1e-4undertrains in 5k stepsval_ROUGE < R2 by 0.5+R2—train.py
R5lr=3e-4, seed=1seed sensitivity check at best lrval_ROUGE within 0.3 of R2R2R2train.py

In chat after the revision, show only Table 2.

Common Mistakes

ThoughtReality
"I'll just start running things"Designing the table first surfaces redundant or unfalsifiable runs.
"Hypothesis is just a guess"A hypothesis without an expected metric is decoration.
"Generator as plain text"generator is [script](./path). Plain text is a bug.
"Skip the file, it's just a sketch"The file is the contract exp-tracking will refer to. No file = no design.
"I don't know the baseline yet"If the comparison structure isn't clear, the design isn't ready. Stop and decide.
"All runs are independent baselines"If everything is a baseline, the design has no axis. Pick one varied knob.
"I'll just edit Table 1 as the design evolves"Append Table N+1. The trajectory of design revisions IS part of the record.
"Use Write to overwrite the design file"Use Edit to APPEND. NEVER Write the whole file.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.