launchdarkly-experiment-setup
Set up and run experiments in LaunchDarkly. Create experiments with metrics, treatments, and flag config, start iterations to collect data, swap design between iterations, and stop with a winner.
Security Assessment
Detected risks:
About launchdarkly-experiment-setup
Guides the end-to-end setup and operation of experiments in LaunchDarkly, where feature-flag variations are measured against key metrics. It covers designing the experiment, creating it with the right treatments and metrics, starting data collection, evolving the design across iterations, and stopping with a declared winner. It depends on the remotely hosted LaunchDarkly MCP server and its tools such as create-experiment, start-experiment-iteration, get-experiment, and stop-experiment-iteration, plus optional helpers for listing and updating experiments and managing metrics.
An experiment is built from treatments (the flag variations being compared, each with an allocationPercent that should sum to 100), metrics (one designated primary), a flag config (flagKey, ruleId, flagConfigVersion), and iterations (data-collection windows that move through not_started, running, and stopped). Optional holdouts exclude a group of users for baseline measurement. The documented lifecycle is: prepare metrics, identify the targeting rule, create the experiment with its first iteration, start data collection, monitor via get-experiment, evolve the design mid-flight if needed, then stop and ship the winner.
Use it when you want statistically grounded feature rollouts rather than guesswork. Core principles it enforces include metrics-first (ensure referenced metrics exist before creating the experiment), a clear hypothesis per iteration, exactly one baseline treatment, sufficient sample size, and testing one change at a time. Because most structural fields lock while an iteration is running, changing treatments, metrics, or methodology mid-experiment is done through save-and-start-experiment-iteration, which stops the current iteration, creates a new draft with the changes, and starts it in one call. Stopping requires declaring a winningTreatmentId (and winningReason); if nothing outperformed, the baseline is chosen as winner. Supported methodologies include bayesian (default), frequentist, and export_only, with optional Snowflake or Databricks data sources.
FAQ
What does this skill require to run?
It requires the remotely hosted LaunchDarkly MCP server to be configured, exposing tools like create-experiment, start-experiment-iteration, and get-experiment. Optional tools handle listing, updating, and metric management.
How do I change treatments or metrics after an iteration has started?
Most structural fields are locked while running, so use save-and-start-experiment-iteration, which stops the current iteration, creates a new draft with your changes, and starts it in one call.
What is required before I can start data collection?
The flag must be toggled on, the iteration must have a randomizationUnit, and at least one treatment must have a non-zero allocationPercent.
What happens when I stop an experiment iteration?
You must declare a winner by passing winningTreatmentId (and a winningReason). If no variation outperformed, you pick the baseline/control as the winner.
Which statistical methodologies and data sources are supported?
Methodology can be bayesian (default), frequentist, or export_only, and the data source can be launchdarkly (default), snowflake, or databricks.
Install launchdarkly-experiment-setup
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
launchdarkly/agent-skills