experimental-design

experimental-design is a skill for Codex from PracticalSwan/agent-skills. It costs 57 tokens per session (4,302 once invoked), scanned A, original, MIT.

A guide to designing experiments before collecting data, including how to assign subjects or samples to conditions, control variation, and arrange multiple treatments. It explains randomization, replication, and blocking so results can support clear conclusions.

In plain words
What is it for?
Use it to plan controlled studies, randomize treatment assignments, group similar units, and choose a design that can answer a causal question.
Why use it?
A poorly structured study can mix together the effect being tested with other differences, and later analysis cannot fully repair that problem. The guide helps avoid confounding and pseudoreplication, where repeated measurements are wrongly treated as independent samples.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to plan controlled studies, randomize treatment assignments, group similar units, and choose a design that can answer a causal question.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/practicalswan/agent-skills/experimental-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PracticalSwan/agent-skills --skill experimental-design
Clone the repo
git clone --depth 1 https://github.com/PracticalSwan/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for experimental-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/practicalswan/agent-skills/experimental-design/github.svg)](https://agentmods.dev/skills/practicalswan/agent-skills/experimental-design)
Your own site
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/experimental-design"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/experimental-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for experimental-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/practicalswan/agent-skills/experimental-design"><img src="https://agentmods.dev/badge/skills/practicalswan/agent-skills/experimental-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.04302
Opus 5.5 $0.00023 $0.01721
Sonnet 5.5 $0.00011 $0.00860
Haiku 4.5 $0.00006 $0.00430

Measured 18d ago against content hash 99e783848557, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

experimental-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/doe_designs.py, scripts/randomization.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

experimental-design/SKILL.md · 345 lines

How it starts

The opening of the file, as written. The whole thing — 345 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 within blocks, removing that nuisance variation from the error term instead of letting it inflate noise.

This skill helps you choose among design types, generate the actual randomization or DOE layout (with reproducible scripts), and avoid the structural mistakes that make data uninterpretable.

When to Use This Skill

  • Planning any comparative experiment or trial and deciding how to assign units
  • Randomizing subjects/samples to arms (simple, blocked, stratified, or cluster)
  • Removing nuisance variation by blocking or stratification
  • Designing multi-factor experiments: full or fractional factorial, screening designs
  • Optimizing a response over continuous factors (response-surface designs)
  • Within-subject / repeated-measures, crossover, split-plot, or Latin-square designs
  • Cluster- or group-randomized designs (sites, clinics, classrooms, litters)
  • Deciding the number and level of replicates and avoiding pseudoreplication
  • Sequential, group-sequential, or adaptive designs with interim analyses
  • Laying out plates/batches and randomizing run order to defeat drift

Read the full file on GitHub · 345 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +7 lines · -144 tokens per session 99e783848557
  2. 1mo ago First seen · 338 lines · 201 tokens per session scan A f6c87b6647d7

Subscribe to this mod's changes

experimental-design is a skill published in the GitHub repository PracticalSwan/agent-skills (25 stars, last pushed 18d ago), licensed MIT. It adds 57 tokens to every session and 4,302 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.

Related

experimental-design compared with skills from other repositories

experimental-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
experimental-designPracticalSwan/agent-skillsSkill2518d agoMITA57Codex
scientific-schematicsK-Dense-AI/scientific-agent-skillsSkill59k3d agoMITA68Claude Code
paper-poster-htmlwanshuiyin/Auto-claude-code-research-in-sleepSkill20k2d agoMITA107Claude Code
paperFigWUBING2023/PaperSpineSkill6.5k3d agoMITA126Claude Code, Codex
figure-composercompanion-inc/feynmanSkill10k5d agoMITA42Claude Code, Codex
latex-postersforyourhealth111-pixel/Vibe-SkillsSkill3.9k25d agoApache-2.0A53Claude Code
schematicssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A134Claude Code