IntermediateAgent Skill

Experiment Designer

Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes.

Views
0
Copies
0
Favorites
0
Editorial Score
84/100
Supported Platforms
Claude Code · Codex
01

What this Skill does

Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes. A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.

02

What makes it different

01

Approach and advantage

A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.

02

What you can use it for

Size a checkout conversion experiment; Prioritize test ideas with explicit evidence and effort; Write decision criteria and guardrails before launch.

03

Before you install

Inputs to prepare

Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.

Agent and runtime

Use a Skill-capable agent with file access. Python 3 is required for the bundled Python helpers; inspect their sample schemas before supplying data.

Scope to confirm

The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

04

Install and get started

Codex

The repository installer copies this complete Skill into your Codex skills directory. Git and the installer’s shell/Python requirements must be available.

  1. Choose the method for your agent and install the complete package, not just the displayed SKILL.md.
  2. Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.
  3. Start a new agent session and explicitly ask to use experiment-designer. Try one use case below with a small sample and review the output.
git clone https://github.com/alirezarezvani/claude-skills.git cd claude-skills git checkout 6d2f02ea077eead1bee5411a31bcc6db5a11a70c ./scripts/codex-install.sh --skill experiment-designer
05

Original Skill.md

This is the unchanged source SKILL.md for the reviewed version. Install the complete package to retain referenced scripts, assets, and instructions. Starter prompts below are EcomAgentTools examples.

Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.

View the reviewed source · MIT

License notice
MIT License

Copyright (c) 2025 Alireza Rezvani

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
name: experiment-designer
description: Use when planning product experiments, writing testable hypotheses, estimating sample size, prioritizing tests, or interpreting A/B outcomes with practical statistical rigor.
---

# Experiment Designer

Design, prioritize, and evaluate product experiments with clear hypotheses and defensible decisions.

## When To Use

Use this skill for:
- A/B and multivariate experiment planning
- Hypothesis writing and success criteria definition
- Sample size and minimum detectable effect planning
- Experiment prioritization with ICE scoring
- Reading statistical output for product decisions

## Core Workflow

1. Write hypothesis in If/Then/Because format
- If we change `[intervention]`
- Then `[metric]` will change by `[expected direction/magnitude]`
- Because `[behavioral mechanism]`

2. Define metrics before running test
- Primary metric: single decision metric
- Guardrail metrics: quality/risk protection
- Secondary metrics: diagnostics only

3. Estimate sample size
- Baseline conversion or baseline mean
- Minimum detectable effect (MDE)
- Significance level (alpha) and power

Use:
```bash
python3 scripts/sample_size_calculator.py --baseline-rate 0.12 --mde 0.02 --mde-type absolute
```

4. Prioritize experiments with ICE
- Impact: potential upside
- Confidence: evidence quality
- Ease: cost/speed/complexity

ICE Score = (Impact * Confidence * Ease) / 10

5. Launch with stopping rules
- Decide fixed sample size or fixed duration in advance
- Avoid repeated peeking without proper method
- Monitor guardrails continuously

6. Interpret results
- Statistical significance is not business significance
- Compare point estimate + confidence interval to decision threshold
- Investigate novelty effects and segment heterogeneity

## Hypothesis Quality Checklist

- [ ] Contains explicit intervention and audience
- [ ] Specifies measurable metric change
- [ ] States plausible causal reason
- [ ] Includes expected minimum effect
- [ ] Defines failure condition

## Common Experiment Pitfalls

- Underpowered tests leading to false negatives
- Running too many simultaneous changes without isolation
- Changing targeting or implementation mid-test
- Stopping early on random spikes
- Ignoring sample ratio mismatch and instrumentation drift
- Declaring success from p-value without effect-size context

## Statistical Interpretation Guardrails

- p-value < alpha indicates evidence against null, not guaranteed truth.
- Confidence interval crossing zero/no-effect means uncertain directional claim.
- Wide intervals imply low precision even when significant.
- Use practical significance thresholds tied to business impact.

See:
- `references/experiment-playbook.md`
- `references/statistics-reference.md`

## Tooling

### `scripts/sample_size_calculator.py`

Computes required sample size (per variant and total) from:
- baseline rate
- MDE (absolute or relative)
- significance level (alpha)
- statistical power

Example:
```bash
python3 scripts/sample_size_calculator.py \
  --baseline-rate 0.10 \
  --mde 0.015 \
  --mde-type absolute \
  --alpha 0.05 \
  --power 0.8
```
06

Get started

Starter prompts for the main use cases—copy and use them directly.

01

Size a checkout conversion experiment

Size a checkout conversion experiment Use for: Size a checkout conversion experiment. Prepare: Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.

Show prompt and variablesHide prompt and variables
Use the installed experiment-designer Skill. Task: Size a checkout conversion experiment. Inputs: [INPUT]. Constraints: [CONSTRAINTS]. Check missing information first. Produce a reviewable result with evidence, assumptions, and next steps. The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

Replace these variables

[INPUT]
Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.
[CONSTRAINTS]
Scope, allowed actions, output format, and review requirements.
02

Prioritize test ideas with explicit evidence and effort

Prioritize test ideas with explicit evidence and effort Use for: Prioritize test ideas with explicit evidence and effort. Prepare: Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.

Show prompt and variablesHide prompt and variables
Use the installed experiment-designer Skill. Task: Prioritize test ideas with explicit evidence and effort. Inputs: [INPUT]. Constraints: [CONSTRAINTS]. Check missing information first. Produce a reviewable result with evidence, assumptions, and next steps. The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

Replace these variables

[INPUT]
Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.
[CONSTRAINTS]
Scope, allowed actions, output format, and review requirements.
03

Write decision criteria and guardrails before launch

Write decision criteria and guardrails before launch Use for: Write decision criteria and guardrails before launch. Prepare: Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.

Show prompt and variablesHide prompt and variables
Use the installed experiment-designer Skill. Task: Write decision criteria and guardrails before launch. Inputs: [INPUT]. Constraints: [CONSTRAINTS]. Check missing information first. Produce a reviewable result with evidence, assumptions, and next steps. The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

Replace these variables

[INPUT]
Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.
[CONSTRAINTS]
Scope, allowed actions, output format, and review requirements.
07

Risks and operating notes

Known limits

The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

Evidence and review

Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.

Before acting on the result

Use authorized inputs and keep secrets out of prompts. Review customer-facing claims, calculations, code changes, and any proposed external action before applying them.

Frequently asked questions

What does it do, and what is the advantage?

Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes. A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.

How do I install it and start?

Choose the method for your agent and install the complete package, not just the displayed SKILL.md. Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails. Start a new agent session and explicitly ask to use experiment-designer. Try one use case below with a small sample and review the output.

Which situations is it useful for?

Size a checkout conversion experiment; Prioritize test ideas with explicit evidence and effort; Write decision criteria and guardrails before launch

What limitations should I know?

The calculator is for its documented two-proportion assumptions; it is not a general continuous-metric or multivariate test engine and does not launch tests.

What was checked for this page?

Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.

Community rating results

Task effectiveness
Setup and ease of use
Reliability and guardrails
Documentation clarity
Time to first useful result

No reviews yet.

Leave a review

Rate every dimension, then share your real experience.

Task effectiveness
Setup and ease of use
Reliability and guardrails
Documentation clarity
Time to first useful result
Author / maintainer

Alireza Rezvani

Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.

Content checked: