Approach and advantage
A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.
Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes.
Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes. A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.
A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.
Size a checkout conversion experiment; Prioritize test ideas with explicit evidence and effort; Write decision criteria and guardrails before launch.
Baseline conversion, absolute or relative MDE, traffic, allocation, alpha, power, and business guardrails.
Use a Skill-capable agent with file access. Python 3 is required for the bundled Python helpers; inspect their sample schemas before supplying data.
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.
The repository installer copies this complete Skill into your Codex skills directory. Git and the installer’s shell/Python requirements must be available.
git clone https://github.com/alirezarezvani/claude-skills.git
cd claude-skills
git checkout 6d2f02ea077eead1bee5411a31bcc6db5a11a70c
./scripts/codex-install.sh --skill experiment-designerThis 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
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
```
Starter prompts for the main use cases—copy and use them directly.
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.
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.[INPUT][CONSTRAINTS]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.
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.[INPUT][CONSTRAINTS]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.
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.[INPUT][CONSTRAINTS]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.
Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.
Use authorized inputs and keep secrets out of prompts. Review customer-facing claims, calculations, code changes, and any proposed external action before applying them.
Plan test hypotheses, metrics, stopping rules, and conversion-rate sample sizes. A Python calculator makes baseline, minimum detectable effect, significance, and power explicit.
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.
Size a checkout conversion experiment; Prioritize test ideas with explicit evidence and effort; Write decision criteria and guardrails before launch
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.
Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.
Source and package files reviewed on October 25, 2026: GitHub 6d2f02ea077e. This is a static review, not an installation or business-outcome test.
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:
No reviews yet.