experiment-launch
Installation
SKILL.md
experiment-launch
Launch a GrowthBook A/B test end-to-end: create the experiment in draft, prep or reuse the feature flag, add the experiment-ref rule on a fresh draft revision, then call /start to publish the rule and flip the experiment to running. Handles the approval-required and pre-launch-checklist failure paths.
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 it's missing or invalid, gb-call's error message points back at /growthbook:gb-setup.
Required inputs
Collect from the user (or earlier skill output) before starting. Prompt for what's missing.
- Feature flag name — kebab-case key, regex
[a-zA-Z0-9_-] - Experiment name — human-readable
- Variations — array of
{name, value}, length ≥ 2. The first entry is the control. Values are serialized as strings on the rule (booleans →"false"/"true", numbers →"42", JSON → JSON-encoded string). - Project ID (optional) — pins the experiment and flag to a specific project
Optional inputs
- Hypothesis — falsifiable; if/then/because format
- Template description — English description matched against
templateMetadata.name/descriptionreturned by/v1/experiment-templates. If omitted and templates exist, ask the user to pick one or skip.