Loading...
Loading...
Set up and run experiments in LaunchDarkly. Create experiments with metrics and treatments, start iterations to collect data, and monitor results.
npx skill4agent add launchdarkly/agent-skills launchdarkly-experiment-setupcreate-experimentstart-experiment-iterationget-experimentlist-experimentsupdate-experimentcreate-metriclist-metricslist-metricscreate-metric| Goal | Metric Type | Example |
|---|---|---|
| Conversion | Custom conversion | |
| Performance | Custom numeric | |
| Engagement | Custom conversion | |
| Revenue | Custom numeric | |
create-experimentprojectKeyenvironmentKeynameflagKeymetricskeyisGrouptreatmentsnamebaselineparametersholdout{
"projectKey": "my-project",
"environmentKey": "production",
"name": "Checkout Flow v2 Experiment",
"flagKey": "checkout-flow-v2",
"metrics": [
{"key": "checkout-completed", "isGroup": false},
{"key": "checkout-time-seconds", "isGroup": false}
],
"treatments": [
{
"name": "Control",
"baseline": true,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-a-id"
}
},
{
"name": "New Checkout",
"baseline": false,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-b-id"
}
}
]
}start-experiment-iteration{
"projectKey": "my-project",
"environmentKey": "production",
"experimentKey": "checkout-flow-v2-experiment"
}reshuffle: trueget-experiment| Situation | Action |
|---|---|
| Metric doesn't exist | Create it first with |
| Flag has no variations | Create flag variations before setting up treatments |
| Experiment already exists | Use |
| Need to change metrics mid-experiment | Stop the current iteration, update, then start a new one |
baseline: true