/product-engineer:ab-test-designfrom product-engineer
Designs A/B tests with hypothesis, primary metric, guardrails, randomization unit, MDE, sample size, and duration. Includes a bundled calculator and implements variants behind feature-flag tools like GrowthBook, LaunchDarkly, Statsig, PostHog, Optimizely, Unleash, or in-house flags.
Ships in product-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An A/B test is a measuring instrument. Designed badly, it gives a confident answer to the wrong question, or no answer after six weeks of traffic. This skill writes the experiment spec before any code, checks that the test is feasible, and implements it so the data can be trusted.
Because , we believe that for will by at least .
Evidence comes from brief.md, flow-audit.md or adoption-plan.md in the feature folder (docs/product/<feature-slug>/), from research, or from data. Test one idea per experiment: if the variant changes copy, layout and pricing at once, a win can't tell you which change worked. Bundling is fine when you only need the decision and not the learning — say so explicitly.
An experiment fits when the change is reversible, the outcome is genuinely uncertain, and there's enough traffic. Don't run one when:
Run the bundled calculator, in the scripts/ folder next to this file:
# Conversion metric: 12% baseline, detect a +10% relative lift, 3,000 eligible users a day
python3 scripts/sample_size.py --baseline 0.12 --mde 0.10 --daily-users 3000
# Continuous metric: standard deviation 40, detect +3 units
python3 scripts/sample_size.py --std 40 --mde-abs 3 --daily-users 3000
It prints users per variant, the total, and the duration rounded up to whole weeks, because weekdays and weekends behave differently and a test should never stop mid-week. Defaults: α = 0.05 two-sided, 80 % power. With more than two variants it applies a Bonferroni correction; each extra variant costs traffic, so prefer two.
Sanity check by hand for conversions: n per variant ≈ 16 · p(1 − p) / δ², where δ is the absolute difference.
The MDE is a business decision, not a statistical one: the smallest lift worth shipping and maintaining. If the answer is "any lift", no test will ever be big enough.
instrument-feature).Write these down now, before any data arrives:
Write experiment.md to the feature folder: hypothesis, metrics, unit, eligibility, sample size and duration (with the calculator command), implementation notes (flag key, variants, exposure point), and the pre-registered analysis plan. Summarize: duration, MDE, and anything that makes the test risky. When the test ends, experiment-readout analyzes it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/accessibility-auditAudit and fix accessibility in the product's real UI code against WCAG 2.2 AA — contrast, semantics, keyboard and focus, screen-reader names and announcements, forms and errors, motion, target size — combining the automated checks the project supports (axe, lint rules) with a manual review of what tools can't catch. Use when accessibility is questioned, before shipping user-facing UI, for a compliance review, or when ux-review flags accessibility issues./adoption-planPlan how users will discover, try, activate and keep using a feature — map entry points against the moments users need it, define the adoption funnel and the value moment, design empty states and onboarding, plan launch communication, and diagnose low adoption after launch. Use when launching or relaunching a feature, when a shipped feature is under-used, or when asked about discoverability, onboarding, activation or feature adoption./design-system-adoptionMeasure how much of a codebase actually uses its design system — token coverage versus hardcoded colors, spacing and font sizes, design-system components versus local re-implementations and forks — find the hotspots and the repeated patterns that should become components, and plan a ratcheted migration with lint rules and safe codemods. Use when asked whether the design system is used, why the UI is inconsistent, to inventory components, or to plan a design-system migration./design-system-extractExtract design tokens — color, typography, spacing, radii, shadows, motion, breakpoints — from a codebase, brand guide or screenshots into a tokens file in the project's own format (CSS variables, Tailwind theme, TypeScript or DTCG JSON), and report where the product disagrees with itself. Use when a project has no tokens yet, when asked to "extract tokens" or "build a design system from the code", or before measuring design-system adoption./experiment-readoutAnalyze a finished A/B test and recommend a decision — validity checks first (sample ratio mismatch, duration, exposure), then lift, confidence intervals and p-values from a bundled script, guardrails and pre-registered segments, and a ship / iterate / roll back call with a stakeholder summary and flag cleanup. Use when an experiment has ended, or when someone asks "did the test win?", "is this significant?", or to read A/B results./feature-briefFrame a feature before it is built — the user problem, a job story, one success metric with baseline and target, the adoption hypothesis, a click budget for the happy path, scope cuts, and kill criteria. Use when starting a new feature, epic or ticket, when someone says "we should build X", or when a spec has no measurable goal.npx claudepluginhub trystan-sa/product-engineer-skills --plugin product-engineerOther plugins' skills for the same job