Experiment Design
Design rigorous experiments, plan ablation studies, and structure evaluation strategies.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up β so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/experiment-design-fcakyon/β the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.What this command does
- Makes a new, empty temporary folder.
- Downloads the skill's folder,
plugin/skills/experiment-design, fromgithub.com/fcakyon/labrat(branchmain), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep. - Copies that folder to
~/.claude/skills/experiment-design-fcakyon/. - Deletes the temporary folder.
Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.
Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description β no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the βWhat this skill doesβ section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Use when the user wants to design experiments, plan ablation studies, structure baselines, or create incremental evaluation strategies. Triggers on phrases like "design ablation", "plan experiment", "what experiments should I run", "baseline comparison", or "experiment matrix".
What this skill does
Experiment Design Methodology
You are helping a researcher design rigorous experiments. Follow this methodology systematically. When tracking experiments in a GitHub issue or project skill, use the canonical layout in ../launch/references/tracker-issues.md.
Step 1: Understand the Research Question
Before designing any experiment:
- Ask what specific hypothesis or claim the experiment should support
- Identify the dependent variable (metric) and independent variables (factors)
- Clarify the baseline: what is the current best result or default configuration?
Step 2: Single-Variable Isolation
Every ablation study must change exactly ONE variable at a time. For each factor:
- Define the factor β what is being varied (e.g., loss function, learning rate, architecture component)
- List levels β all values this factor will take (e.g., CE, focal, VAR)
- Fix everything else β document what stays constant (seed, data split, epochs, hardware)
- Predict outcome β before running, state what you expect and why
Template for each ablation row:
| Run ID | Factor | Value | Fixed Config | Expected Outcome |
|--------|--------|-------|-------------|-----------------|
Step 3: Experiment Matrix
For multi-factor studies, use a structured matrix:
- Full factorial β if factors are few (β€3) and levels are few (β€3 each)
- Sequential elimination β if factors are many: run single-factor ablations first, then combine winners
- Latin square β if full factorial is too expensive: sample representative combinations
Always calculate total runs before committing:
Total runs = product of all factor levels
GPU hours = total runs Γ hours_per_run
Step 4: Resource Estimation
For each experiment plan, estimate:
- GPU hours: runs Γ time_per_run (check with user's hardware)
- API costs: if using external APIs (Gemini, OpenAI), estimate tokens Γ price
- Wall clock time: accounting for sequential dependencies and GPU availability
- Storage: checkpoint sizes Γ number of runs
Flag if total cost exceeds reasonable bounds and suggest prioritization.
Step 5: Config Stub Generation
Generate configuration stubs that match the user's existing config format. Read existing configs first to match:
- File format (YAML, JSON, TOML)
- Key naming conventions
- Directory structure for outputs
- Logging/tracking integration (wandb, neptune, tensorboard)
Step 6: Execution Plan
Create a concrete execution plan:
- Order runs by dependency (baselines first, then ablations)
- Identify which runs can be parallelized across GPUs
- Create a shell script or batch runner matching the project's existing patterns
- Include checkpointing strategy for long runs
Step 7: Analysis Plan
Before running, define how results will be analyzed:
- Which metrics to compare (primary + secondary)
- Statistical significance test if applicable (paired t-test, bootstrap CI)
- How to handle failed/crashed runs
- Visualization: what plots to generate (comparison tables, bar charts, learning curves)
Verification Checkpoints
Before finalizing the experiment plan:
- Each ablation changes exactly one variable
- Baseline is clearly defined and will be run with same setup
- Resource estimate is within budget
- Config stubs match existing project format
- Analysis plan is defined before execution begins
- Seeds are fixed for reproducibility
Output Format
Always produce:
- Experiment matrix table β all runs with their configurations
- Resource estimate β GPU hours, API costs, storage
- Execution script β ready-to-run commands matching project conventions
- Analysis plan β metrics, comparisons, visualizations
Related skills
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
Customer Health Scorer
alirezarezvani
Analyze customer accounts to predict churn risk and identify expansion opportunities.
Adaptyv Protein Lab
foryourhealth111-pixel
Submit protein sequences for automated lab testing and validation experiments.
CLAUDE.md Optimizer
daymade
Optimize your CLAUDE.md file for clarity, efficiency, and maintainability.