From growthbook
Help the user design a well-formed GrowthBook experiment before it's launched. Use when the user asks to "design an A/B test", "set up an experiment", "test X vs Y", "configure an experiment", or "what should we measure". Produces a complete spec — hypothesis, variations, primary metric, guardrails, sample size — ready to hand off. Does not create the experiment in GrowthBook. For launching, use experiment-launch. For ideas grounded in past results, use experiment-brainstorm first.
How this skill is triggered — by the user, by Claude, or both
Slash command
/growthbook:experiment-designThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Help the user produce an experiment spec that's actually launchable. Walk them through hypothesis, variations, metrics, and sample-size sanity. This skill does **not** write to GrowthBook — it ends with a ready-to-launch spec that `experiment-launch` consumes.
Help the user produce an experiment spec that's actually launchable. Walk them through hypothesis, variations, metrics, and sample-size sanity. This skill does not write to GrowthBook — it ends with a ready-to-launch spec that experiment-launch consumes.
All API calls go through the bundled helper: ${CLAUDE_PLUGIN_ROOT}/scripts/gb-call. It needs GB_API_KEY — set in your shell, or written to ~/.config/growthbook/.env by /growthbook:gb-setup. If unset or invalid, gb-call's error message points back at /growthbook:gb-setup.
Frame the hypothesis. Falsifiable, if/then/because format:
If we change X, then Y will improve, because Z.
Push for specificity if the hypothesis is vague. "We think users will like it" doesn't say which metric — engagement could mean five different things. "If we move the CTA above the fold, then click-through will increase, because users decide whether to engage before they scroll" gives the prediction something concrete to land against.
Define variations. Default to two: control (current state) and treatment (the change). Three or more variations are valid but cost statistical power; ask the user whether they really need a third. Number variations from 0 (control) to N.
Pick goal metrics (ideally one, two max). List available templates and available metrics:
gb-call GET /api/v1/api/v1/experiment-templates
gb-call GET /api/v1/metrics
gb-call GET /api/v1/fact-metrics
Help the user choose a template if one exists and applies, otherwise help the user choose metrics based on what the hypothesis predicts will move. Note the metric type (proportion, mean, ratio, quantile) — affects sample-size math. Push back at three or more goal metrics and demote the rest to secondary or guardrail: the GrowthBook decision framework treats goal metrics as plural by design, but each additional goal dilutes power and complicates the ship/kill decision.
Pick guardrails (1–3). Metrics that shouldn't regress. Common examples: signup rate, page error rate, latency. Push back if the user skips guardrails; often it's good for experiments to have at least 1 or 2 guardrails. Guardrails are excluded from multiple-comparison correction by design, so don't over-stack them.
Estimate sample size. Need three inputs from the user:
Use a back-of-envelope estimate to gut-check, then point the user at GrowthBook's in-app Power Calculator for the real number. A common rule-of-thumb GrowthBook documents is ≥ 200 conversions per variation for proportion metrics; the formula n ≈ 16 × p × (1 - p) / (p × MDE)^2 per variation lands in roughly the same place for 80% power. Don't quote three significant figures from either — they're estimates. Round up and surface the inputs.
Compute the expected experiment duration: 2 × n / daily_traffic. Flag the duration on both ends:
Resolve project + datasource. If the user mentions a specific project, get its ID:
gb-call GET /api/v1/projects
List datasources for context (the launch step will pick one, but worth showing the user what's available):
gb-call GET /api/v1/data-sources
Produce the spec. Output a structured block the user can review and feed into experiment-launch:
## Experiment spec — <short name>
**Hypothesis:** If <change>, then <outcome>, because <mechanism>.
**Variations:**
- 0: Control — <description>
- 1: Treatment — <description>
**Primary metric:** <name> (<type>) — baseline <value>
**Guardrails:** <metric a>, <metric b>
**MDE:** <X%>
**Estimated sample size:** <N> per variation
**Estimated duration:** <D> days at <T> visitors/day on the affected surface
**Project:** <project id>
**Tracking key suggestion:** <kebab-case-name>
Ask the user to confirm before handing off to experiment-launch.
flag-discovery or experiment-brainstorm), GrowthBook recommends an A/A test first to validate the implementation before running a real one.experiment-launch. Resist scope creep.trackingKey; it lands in event data and can't be cleanly changed later.GET /api/v1/metrics and /api/v1/fact-metrics — list candidate primary + guardrail metricsGET /api/v1/metrics/<id> — fetch baseline value for sample-size estimationGET /api/v1/projects — resolve project name to IDGET /api/v1/data-sources — list available datasources (used by launch)experiment-launch — consumes the spec and creates the draft experiment in GrowthBook.<host>/metrics (or <host>/fact-tables for fact metrics) before launching. No skill for that yet; derive <host> from GB_API_URL by swapping api. → app..experiment-brainstorm — if the user came in without a specific hypothesis, route back here to ground a new idea in past results.npx claudepluginhub growthbook/skills --plugin growthbookDesigns growth experiments by structuring hypotheses, defining primary metrics, baselines, MDEs, expected lifts, kill conditions, and A/B test details for funnel stages like acquisition and retention.
Growth experiment design — structure a growth hypothesis, define metric, baseline, expected lift, and kill condition for a single experiment. Use when asked to "design a growth experiment", "test this growth idea", "experiment framework", "how do we test if this works", or "growth hypothesis".
Helps design statistically valid A/B tests and build growth experimentation programs. Guides hypothesis formation, sample size calculation, and test types.