Agent skill · Data & Analytics

experimental-design

Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster/group randomization, Latin squares, plate layouts, batch/run-order effects, replication vs. ps

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill experimental-design --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 13 KB
Bundled scripts: yes
Version: 1.1
Allowed tools: ReadWriteEditBash
Requires: Requires Python >=3.10. Scripts use numpy, pandas, and pyDOE3 (DOE matrices). Install with uv as shown below.
Path: skills/experimental-design/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Experimental Design ## Overview The design of a study — how units are assigned to conditions, what is held constant, what is varied, and in what structure — determines what questions the data can answer. No analysis can rescue a confounded or pseudoreplicated design after the fact. This skill is about the decisions made *before* data collection: picking a design that isolates the effect of interest, randomizing to license causal claims, blocking to remove known nuisance variation, and structuring multi-factor experiments so effects are estimable rather than tangled together. The three ideas behind almost every good design (Fisher's principles): - **Randomization** — assign treatments at random so that confounders, known and unknown, are balanced in expectation. This is what turns a comparison into a causal claim. - **Replication** — independent repetition at the right level, so you can estimate variability and your effects aren't artifacts of a single unit. The most common fatal error is **pseudoreplication**: counting repeated measurements on the same unit as independent replicates. - **Blocking / local control** — group similar units (by batch, day, site, litter) and randomize

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Installation
  4. Choosing a design
  5. Generating the design
  6. Randomization / allocation schedules — scripts/randomization.py
  7. DOE matrices — scripts/doedesigns.py
  8. The mistakes that ruin studies
  9. Workflow
  10. Resources
  11. Scripts
  12. References
  13. Related skills
  14. Key references
Ships with 6 files
  • references/design_types.md
  • references/factorial_and_doe.md
  • references/randomization_and_blocking.md
  • references/sequential_and_adaptive.md
  • scripts/doe_designs.py
  • scripts/randomization.py
Commands it runs
uv pip install "numpy>=1.26" "pandas>=2.0" pyDOE3
More from scientific-agent-skills
All skills →
About this skill
What does the experimental-design skill do?

Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls, factorial or fractional-factorial designs, design of experiments (DOE), screening many factors, response-surface optimization, crossover or repeated-measures or split-plot designs, cluster/group randomization, Latin squares, plate layouts, batch/run-order effects, replication vs. ps

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill experimental-design --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going