中级Agent Skill

实验设计

规划测试假设、指标、停止规则和转化率样本量。

浏览量
0
复制次数
0
收藏
0
编辑评分
84/100
支持平台
Claude Code · Codex
01

这个 Skill 是做什么的

规划测试假设、指标、停止规则和转化率样本量。Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。

02

它有什么特色

01

方法与优势

Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。

02

适用任务

估算结账转化实验样本量;根据明确证据与成本排列测试想法;在实验开始前写明判定条件和护栏。

03

安装前的特殊要求

需要准备的输入

基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。

Agent 与运行环境

使用支持 Skill 且能访问文件的 Agent。随包 Python 辅助工具需要 Python 3;提供数据前先查看样例结构。

需确认的适用边界

计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

04

安装与开始使用

Codex

仓库安装器会把此 Skill 的完整目录复制到 Codex skills 目录。需具备 Git 及安装器要求的 shell/Python 环境。

  1. 按实际 Agent 选择方式,安装完整包,不要只复制页面中的 SKILL.md。
  2. 基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
  3. 开启新 Agent 会话,明确要求使用 experiment-designer。先用小型样本尝试下方一个场景,并检查输出。
git clone https://github.com/alirezarezvani/claude-skills.git cd claude-skills git checkout 6d2f02ea077eead1bee5411a31bcc6db5a11a70c ./scripts/codex-install.sh --skill experiment-designer
05

原始 Skill.md

以下为已核对版本未经改写的 SKILL.md。安装完整包才能保留引用的脚本、素材和指引。下方启动提示词为 EcomAgentTools 编写的示例。

2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。

查看已核对的源码 · 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
```
06

开始使用

以下是主要功能的用例提示词,可以直接复制使用。

01

估算结账转化实验样本量

估算结账转化实验样本量 适用于:估算结账转化实验样本量。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。

查看 Prompt 和变量收起 Prompt 和变量
请使用已安装的 experiment-designer Skill。任务:估算结账转化实验样本量。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

需要替换的变量

[INPUT]
基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
[CONSTRAINTS]
任务范围、允许的操作、输出格式和审核要求。
02

根据明确证据与成本排列测试想法

根据明确证据与成本排列测试想法 适用于:根据明确证据与成本排列测试想法。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。

查看 Prompt 和变量收起 Prompt 和变量
请使用已安装的 experiment-designer Skill。任务:根据明确证据与成本排列测试想法。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

需要替换的变量

[INPUT]
基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
[CONSTRAINTS]
任务范围、允许的操作、输出格式和审核要求。
03

在实验开始前写明判定条件和护栏

在实验开始前写明判定条件和护栏 适用于:在实验开始前写明判定条件和护栏。请准备:基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。

查看 Prompt 和变量收起 Prompt 和变量
请使用已安装的 experiment-designer Skill。任务:在实验开始前写明判定条件和护栏。输入:[INPUT]。限制:[CONSTRAINTS]。先检查缺失信息,再输出可审查的结果、依据、假设和下一步。计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

需要替换的变量

[INPUT]
基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。
[CONSTRAINTS]
任务范围、允许的操作、输出格式和审核要求。
07

风险与使用注意事项

已知限制

计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

证据与复核

2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。

采用结果前

使用获授权输入,不把密钥贴入提示词。采用前检查面向客户的声明、计算、代码改动及任何拟议的外部操作。

常见问题

它能做什么,有什么优势?

规划测试假设、指标、停止规则和转化率样本量。Python 计算器明确使用基线、最小可检测效应、显著性和功效参数。

如何安装和开始使用?

按实际 Agent 选择方式,安装完整包,不要只复制页面中的 SKILL.md。 基线转化率、绝对或相对 MDE、流量、分流比例、alpha、功效和业务护栏。 开启新 Agent 会话,明确要求使用 experiment-designer。先用小型样本尝试下方一个场景,并检查输出。

适合哪些使用场景?

估算结账转化实验样本量;根据明确证据与成本排列测试想法;在实验开始前写明判定条件和护栏

使用前需要了解哪些限制?

计算器适用于文档规定的两比例假设,不是通用连续指标或多变量实验引擎,也不会启动实验。

本页核对了什么?

2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。

社区评分结果

任务有效性
安装与使用难度
稳定性与边界
文档清晰度
首次获得有效结果

暂无评论。

发表评论

请先为每一项打分,再分享你的真实使用体验。

任务有效性
安装与使用难度
稳定性与边界
文档清晰度
首次获得有效结果
作者 / 维护者

Alireza Rezvani

2026 年 10 月 25 日核对源码及随包文件:GitHub 6d2f02ea077e。本次为静态审查,不代表已完成安装运行或业务效果测试。

内容核验日期: