方法与优势
Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。
规划测试假设、指标、停止规则和转化率样本量。
规划测试假设、指标、停止规则和转化率样本量。Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。
Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。
估算结账转化实验样本量;根据明确证据与成本排列测试想法;在实验开始前写明判定条件和护栏。
基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
使用支持 Skill 且能访问文件的 Agent。随包 Python 辅助工具需要 Python 3;提供数据前先查看样例结构。
计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。
仓库安装器会把此 Skill 的完整目录复制到 Codex skills 目录。需具备 Git 及安装器要求的 shell/Python 环境。
git clone https://github.com/alirezarezvani/claude-skills.git
cd claude-skills
git checkout 6d2f02ea077eead1bee5411a31bcc6db5a11a70c
./scripts/codex-install.sh --skill experiment-designer以下为已核对版本未经改写的 SKILL.md。安装完整包才能保留引用的脚本、素材和指引。下方启动提示词为 EcomAgentTools 编写的示例。
2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。
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
```
以下是主要功能的用例提示词,可以直接复制使用。
估算结账转化实验样本量 适用于:估算结账转化实验样本量。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
请使用已安装的 experiment-designer Skill。任务:估算结账转化实验样本量。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。[INPUT][CONSTRAINTS]根据明确证据与成本排列测试想法 适用于:根据明确证据与成本排列测试想法。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
请使用已安装的 experiment-designer Skill。任务:根据明确证据与成本排列测试想法。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。[INPUT][CONSTRAINTS]在实验开始前写明判定条件和护栏 适用于:在实验开始前写明判定条件和护栏。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
请使用已安装的 experiment-designer Skill。任务:在实验开始前写明判定条件和护栏。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。[INPUT][CONSTRAINTS]计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。
2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。
使用获授权输入,不把密钥贴入提示词。采用前检查面向客户的声明、计算、代码改动及任何拟议的外部操作。
规划测试假设、指标、停止规则和转化率样本量。Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。
按实际 Agent 选择方式,安装完整包,不要只复制页面中的 SKILL.md。 基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。 开启新 Agent 会话,明确要求使用 experiment-designer。先用小型样本尝试下方一个场景,并检查输出。
估算结账转化实验样本量;根据明确证据与成本排列测试想法;在实验开始前写明判定条件和护栏
计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。
2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。
2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。
内容核验日期:
暂无评论。