ab-testing

ab-testing is a skill for Codex from san-npm/skills-ws. It costs 80 tokens per session (4,379 once invoked), scanned A, original, MIT.

A guide to A/B testing, a method of comparing two versions of a product or feature with separate groups of users.

In plain words
What is it for?
Use it to form hypotheses, choose experiments, calculate the required number of users, check data quality, analyze results, and decide whether to release a change.
Why use it?
It helps determine whether a measured difference is likely caused by the change rather than random variation or flawed experiment setup.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to form hypotheses, choose experiments, calculate the required number of users, check data quality, analyze results, and decide whether to release a change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/san-npm/skills-ws/ab-testing
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 san-npm/skills-ws --skill ab-testing
Clone the repo
git clone --depth 1 https://github.com/san-npm/skills-ws

Made for: 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/san-npm/skills-ws/ab-testing/github.svg)](https://agentmods.dev/skills/san-npm/skills-ws/ab-testing)
Your own site
<a href="https://agentmods.dev/skills/san-npm/skills-ws/ab-testing"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/ab-testing/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/san-npm/skills-ws/ab-testing"><img src="https://agentmods.dev/badge/skills/san-npm/skills-ws/ab-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,379 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.00080 $0.04379
Opus 5.5 $0.00032 $0.01752
Sonnet 5.5 $0.00016 $0.00876
Haiku 4.5 $0.00008 $0.00438

Measured 2mo ago against content hash b8e4e676f54b, 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 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.

skills/ab-testing/SKILL.md · 282 lines

How it starts

The opening of the file, as written. The whole thing — 282 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A/B Testing

Workflow

1. Hypothesis Generation

Format: If we [change], then [metric] will [improve/decrease] by [amount], because [rationale].

Example: If we shorten the signup form from 5 fields to 3, then signup completion rate will increase by 15%, because friction reduction at high-intent moments increases conversion.

2. Prioritization

ICE framework (quick):

Factor Score 1-10 Definition
Impact 1-10 How much will it move the metric?
Confidence 1-10 How sure are we it'll work?
Ease 1-10 How fast/cheap to implement?
ICE Score (I + C + E) / 3

RICE framework (more rigorous):

Factor Definition
Reach How many users affected per quarter?
Impact Expected effect size (0.25, 0.5, 1, 2, 3)
Confidence % sure (100%, 80%, 50%)
Effort Person-weeks to implement
RICE Score (R × I × C) / E

3. Sample Size Calculation

Formula:

n = (Z_α/2 × √(2p̄(1-p̄)) + Z_β × √(p₁(1-p₁) + p₂(1-p₂)))² / (p₂ - p₁)²

Where:
  p₁ = baseline conversion rate
  p₂ = expected conversion rate (baseline × (1 + MDE))
  p̄  = (p₁ + p₂) / 2
  Z_α/2 = 1.96 (for 95% confidence)
  Z_β   = 0.84 (for 80% power)

Quick reference table:

Baseline rate MDE (relative) Sample per variant
2% 10% 78,000
2% 20% 20,000
5% 10% 30,000
5% 20% 7,700
10% 10% 14,300
10% 20% 3,700
20% 10% 6,300
20% 20% 1,600

Test duration:

Days needed = (Sample per variant × 2) / Daily traffic to test page

Minimum: run ≥ 1 full business cycle (usually 7 or 14 days) so every day-of-week and any weekly purchase/payday rhythm is represented; never stop mid-week even if the sample target is hit early.

Run length is driven by power and cycles, not a fixed cap. There is no universal "stop at 4 weeks" rule — B2B, marketplace, pricing, retention, and low-traffic tests routinely need 6–12+ weeks. The real risks in a long test are exposure/sample drift (the population changes — new acquisition channels, seasonality, holidays) and novelty/primacy effects (returning users react to the change for a few weeks, then revert). Mitigate by:

  • Decide the fixed horizon up front from the sample-size calc (or use a sequential design, below). Do not let "it's been a month" become the stopping rule.
  • Plot the daily cumulative lift; a stable, flattening curve signals novelty has worn off, a still-trending one means keep running.
  • For novelty-prone changes (UI redesigns, new features), report new-user vs returning-user segments separately (pre-registered — see segmentation in §6) and consider a long-running holdback to measure the durable effect.
  • If you must change the experiment design or population mid-flight, stop and restart as a new test rather than reinterpreting the old one.

Read the full file on GitHub · 282 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 282 lines · 80 tokens per session scan A b8e4e676f54b

Subscribe to this mod's changes

ab-testing is a skill published in the GitHub repository san-npm/skills-ws (4 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 4,379 once invoked, about $0.0003 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-08-31.

Related

ab-testing compared with skills from other repositories

ab-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ab-testingsan-npm/skills-wsSkill41mo agoMITA80Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code