ab-testing-guide

ab-testing-guide is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 93 tokens per session (1,115 once invoked), scanned A, original, Apache-2.0.

A guide to comparing two versions of a product or experience with an A/B test, where different user groups see different versions. It covers experiment setup, sample size, fairness checks, statistical tests, and rollout decisions.

In plain words
What is it for?
Use it to define a hypothesis, assign users to groups, estimate required sample sizes, monitor guardrail measures such as refunds, check group balance, test results, and decide whether to roll out.
Why use it?
It reduces the risk of treating random variation or an uneven split as a real improvement. It sets rules for when results are reliable enough to release and when to stop or revise a change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define a hypothesis, assign users to groups, estimate required sample sizes, monitor guardrail measures such as refunds, check group balance, test results, and decide whether to roll out.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/ab-testing-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill ab-testing-guide
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ab-testing-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ab-testing-guide/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ab-testing-guide)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ab-testing-guide"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ab-testing-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ab-testing-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/ab-testing-guide"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/ab-testing-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,115 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01115
Opus 5.5 $0.00037 $0.00446
Sonnet 5.5 $0.00019 $0.00223
Haiku 4.5 $0.00009 $0.00112

Measured 2mo ago against content hash 4dbff8e8c524, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ab-testing-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

expert-teams/teams/data-analysis-team/skills/ab-testing-guide/SKILL.md · 52 lines

What it actually says

A/B 实验设计与判定指南

本 skill 是 A/B 实验的工作手册。核心原则:先定假设和样本量再上线,跑够时间再读数,不看一天就下结论。 实验的价值在于因果判定,样本量不够、分桶不均,再好看的数字也是噪声。

这是什么

一套从实验设计到显著性判定到放量决策的流程。设计阶段定假设、分桶、样本量、护栏;上线后监控 SRM 与样本量;结束后做显著性检验并给能否放量结论。

何时使用

  • data-experiment-designer 接到"设计 A/B 实验"时必须加载。
  • data-statistician 做实验显著性判定时,按本指南选检验方法。
  • data-qa-reviewer 复核实验报告时,按本指南检查 SRM/样本量/多重比较。
  • data-analysis-team-lead 判断"能不能放量"时使用。

核心步骤

  1. 定假设:写出原假设/备择假设,明确核心指标(如转化率从 5% 提到 5.5%)与最小可检测效应 MDE。
  2. 算样本量:给定基线转化率、MDE、显著性水平 α=0.05、功效 1-β=0.8,用样本量公式算每组所需样本量;按日均 UV 折算需要跑几天,通常 ≥7 天覆盖一个完整周。
  3. 分桶与随机化:按用户 ID(非会话)哈希分桶,保证同一用户始终进同组;分流比例常见 50/50 或小流量 10/90 灰度。
  4. 设护栏指标:选定不能变差的护栏(如客诉率、退款率、加载时长),护栏恶化即使核心指标涨也不放量。
  5. 跑 SRM 检查:实际两组样本比是否符合预期分流比,卡方检验 p>0.05 才算分流正常;SRM 异常则实验作废。
  6. 显著性判定:比例用两比例 z 检验,均值用 t 检验;报告 p 值与 95% 置信区间;置信区间跨过 0 则差异不显著。
  7. 放量决策:核心指标显著正向、护栏不恶化、无 SRM 问题 → 放量;否则回滚或迭代。

清单

  • 写了原假设/备择假设与核心指标、MDE。
  • 算了每组最小样本量并折算所需天数(≥7 天)。
  • 按用户 ID 哈希分桶,同一用户不跨桶。
  • 设定了护栏指标。
  • 跑了 SRM 检查且 p>0.05。
  • 报告了 p 值与 95% 置信区间。
  • 检查了多重比较(多指标/多分组时做了校正或声明探索性)。
  • 给了明确的放量/回滚结论,不是"好像有提升"。

易错点

  • 样本量不够就停:跑了 2 天看到涨就宣布胜利,实际是噪声。必须跑够预估天数。
  • 偷看数据反复停:每天看一次 p 值,显著了就停,会抬高假阳性。要么预设时长,要么做序贯检验校正。
  • SRM 不查:分流比实际 52/48 但预期 50/50,说明分桶有 bug,结论不可信。先查 SRM。
  • 会话级分桶:同一用户今天 A 组明天 B 组,污染实验。必须用户级哈希。
  • 只看核心指标:转化率涨了但退款率翻倍,这是负优化。护栏指标必须一起看。
  • 多重比较不校正:同时看 10 个指标,总有一个 p<0.05 是运气。声明哪些是探索性的。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 52 lines · 93 tokens per session scan A 4dbff8e8c524

Subscribe to this mod's changes

ab-testing-guide is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,115 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

ab-testing-guide compared with skills from other repositories

ab-testing-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ab-testing-guideMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A93Claude Code, Codex
safe-refactorJuliusBrussee/cavemanSkill124ktodayApache-2.0A29Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
auditing-subgroup-fairnessmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A148Claude Code
memoryopensquilla/opensquillaSkill7.2k4d agoApache-2.0A44Claude Code, Codex
infographic-template-updaterantvis/InfographicSkill7.2k1mo agoMITA43Claude Code
pulse-configureSnowflake-Labs/cocoplusSkill72923d agoMITA12Claude Code, Codex