ab-test-design

ab-test-design is a skill for Claude Code from RBraga01/builder-product. It costs 57 tokens per session (1,862 once invoked), scanned A, original, MIT.

A planning skill for A/B tests, which compare two versions with different groups of users to measure a product change.

In plain words
What is it for?
Use it to define the hypothesis, metric, sample size, duration, stopping rule, and decision rule before an experiment starts.
Why use it?
It prevents teams from stopping a test when the results happen to look favorable and making unreliable decisions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the builder-product plugin — 7 skills, 3 agents shipped together

Good fit Use it to define the hypothesis, metric, sample size, duration, stopping rule, and decision rule before an experiment starts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rbraga01/builder-product/ab-test-design
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 RBraga01/builder-product --skill ab-test-design
Clone the repo
git clone --depth 1 https://github.com/RBraga01/builder-product

Made for: Claude Code.

Or install builder-product, the plugin that ships this one along with the rest of its 7 skills, 3 agents.

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-test-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/rbraga01/builder-product/ab-test-design/github.svg)](https://agentmods.dev/skills/rbraga01/builder-product/ab-test-design)
Your own site
<a href="https://agentmods.dev/skills/rbraga01/builder-product/ab-test-design"><img src="https://agentmods.dev/badge/skills/rbraga01/builder-product/ab-test-design/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-test-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/rbraga01/builder-product/ab-test-design"><img src="https://agentmods.dev/badge/skills/rbraga01/builder-product/ab-test-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,862 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.00057 $0.01862
Opus 5 $0.00028 $0.00931
Sonnet 5 $0.00011 $0.00372
Haiku 4.5 $0.00006 $0.00186

Measured 9d ago against content hash 95b8751f4adc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ab-test-design 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 9d 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-test-design/SKILL.md · 186 lines

How it starts

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

A/B Test Design

The Law

A TEST WITHOUT A STOPPING RULE RUNS UNTIL THE RESULT LOOKS GOOD.
"We'll stop when we see something significant" is peeking — it inflates false positive rates until the next meaningless spike ships to production.
Hypothesis + metric + sample size + duration + stopping rule + decision rule IS an experiment.

When to Use

Trigger before:

  • Running any A/B or multivariate test that will produce a ship/no-ship decision
  • Adding feature flag logic that will split users into groups
  • Launching any "let's try this and see what happens" experiment

When NOT to Use

  • Observational studies with no control group (not an A/B test — use a different analysis method)
  • Rollouts to < 1% of users as a smoke test (no statistical inference intended — label it as such)
  • Shadow mode tests where both groups see the same experience (monitoring, not experimentation)

The Six Required Elements

1 — Hypothesis

One testable claim in the form: If [change], then [metric] will [increase/decrease] by [magnitude] because [mechanism].

If we [specific change to control],
then [primary metric] will [direction] by [minimum detectable effect],
because [causal mechanism].

What does NOT count:

  • "We think this will improve conversion" — no direction, no magnitude, no mechanism
  • "Let's test it and see" — not a hypothesis; a hypothesis is a prediction, not an openness to observation

The mechanism matters. A hypothesis without a mechanism cannot be learned from even if it's correct — you won't know why.

2 — Primary Metric

The single metric that defines success or failure for this test.

  • One primary metric only — multiple primary metrics require Bonferroni correction and usually indicate an unclear hypothesis
  • Must be measurable at the session or user level (not aggregated)
  • Must have a baseline from at least the last 14 days of data

Secondary metrics (guardrails and diagnostics — max 5): watched but do not determine the decision.

Read the full file on GitHub · 186 lines

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. 9d ago First seen · 186 lines · 57 tokens per session scan A 95b8751f4adc

Subscribe to this mod's changes

ab-test-design is a skill published in the GitHub repository RBraga01/builder-product (2 stars, last pushed 2mo ago), licensed MIT. It adds 57 tokens to every session and 1,862 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

promptfoo-provider-setup

Configure promptfoo providers or redteam targets for hosted models, live HTTP APIs, Python/JavaScript local scripts, agent SDKs, or multi-input systems. Use when connecting promptfoo to the system under test, mapping vars, auth env vars, request bodies, response transforms, or static-code-derived provider wrappers. Do…

promptfoo/promptfoo · 91 tokens

avoid-ai-writing

Audit and rewrite content to remove AI writing patterns ("AI-isms"). Use this skill when asked to "remove AI-isms," "clean up AI writing," "edit writing for AI patterns," "audit writing for AI tells," or "make this sound less like AI." Supports a detect-only mode, an edit-in-place mode for files, an optional voice…

conorbronsdon/avoid-ai-writing · 97 tokens

unlazy

Enforces completion discipline for substantial autonomous work by writing acceptance gates before execution, decomposing work with the Depth Tree, running approved checks, and re-verifying evidence before reporting. Use when an agent faces a long or multi-part task, work that has returned half-done, an exhaustive…

Leonxlnx/unlazy · 100 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

avoid-ai-writing-router

Use when a request combines AI-writing audit, rewrite, file editing, voice preservation, false-positive interpretation, verification, or when the user invokes Avoid AI Writing without naming a mode.

conorbronsdon/avoid-ai-writing · 41 tokens