AGENT SKILLBY LAUNCHDARKLY
Launchdarkly guarded rollout
AT A GLANCE
Launchdarkly guarded rollout is an agent skill for growth. You're using a skill that will guide you through configuring guarded rollouts in LaunchDarkly. It is published by launchdarkly in the launchdarkly/agent-skills GitHub repository (18 stars) under the Apache-2.0 license. Install it with: npx skills add launchdarkly/agent-skills --skill launchdarkly-guarded-rollout
- SOURCE REPOSITORY
- launchdarkly/agent-skills (opens GitHub in a new tab)
- REPO STARS
- SOURCE REPOSITORY
- LICENSE
- Apache-2.0
- CATEGORIES
- SKILL.MD SIZE
- 5.7 KB164 LINES
QUICK ANSWER
- WHAT IT IS01
- You're using a skill that will guide you through configuring guarded rollouts in LaunchDarkly. Its edge is a particular angle on growth marketing, giving the agent tighter constraints than a plain launchdarkly guarded rollout request.
- INPUTS02
- Context for growth marketing: your goals, audience, constraints, and any source material the skill asks for.
- OUTPUT03
- A ready-to-use result for growth marketing: the analysis, copy, or recommendations the agent produces.
INSTALL
One command adds this skill from its source repository.
npx skills add launchdarkly/agent-skills --skill launchdarkly-guarded-rolloutREAD THE SKILL.MD BELOW BEFORE YOU RUN IT. SKILLS INSTRUCT YOUR AGENT.
SKILL.MD
The full file, as published in the source repository. Copy it, download it or open it on GitHub.
ON THIS PAGE · 16
LaunchDarkly Guarded Rollouts#
You're using a skill that will guide you through configuring guarded rollouts in LaunchDarkly. Your job is to design rollout stages, select monitoring metrics, configure regression thresholds, and start the rollout.
Prerequisites#
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
start-guarded-rollout-- start a progressive rollout with monitoringget-flag-- inspect the flag and its variationslist-metrics-- find metrics to monitor during the rollout
Optional MCP tools:
stop-guarded-rollout-- halt an active rollout immediatelytoggle-flag-- ensure the flag is turned on before startingcreate-metric-- create metrics if they don't exist
Core Concepts#
What Are Guarded Rollouts?#
A guarded rollout progressively increases traffic to a new feature flag variation through a series of stages. At each stage, LaunchDarkly monitors selected metrics for regressions. If a regression is detected, the rollout can automatically pause and notify the team — or even roll back.
Key Components#
| Component | Description |
|---|---|
| Test variation | The new variation being rolled out |
| Control variation | The existing/baseline variation |
| Stages | Steps with increasing traffic percentage and monitoring windows |
| Metrics | What to monitor for regressions (error rate, latency, etc.) |
| Regression threshold | How much a metric can degrade before triggering action |
| On regression | Whether to notify, rollback, or both when a threshold is breached |
Rollout Weight Units#
Rollout weights use thousandths (basis points):
1000= 1%10000= 10%50000= 50%100000= 100%
Monitoring Window#
The monitoring window is specified in milliseconds:
3600000= 1 hour86400000= 24 hours604800000= 7 days
Core Principles#
- Start Small: Begin with a low percentage (1-5%) to catch issues early
- Monitor What Matters: Choose metrics that reflect user experience
- Set Realistic Thresholds: Too tight = false alarms; too loose = missed regressions
- Allow Time: Each stage needs enough monitoring time for signal to emerge
- Have a Rollback Plan: Always configure at least notification on regression
Workflow#
Step 1: Prepare#
Before starting a guarded rollout:
- Use
get-flagto inspect the flag — note the variation IDs for test and control - Use
list-metricsto find metrics suitable for monitoring - Ensure the flag is on in the target environment (use
toggle-flagif needed) - Confirm there's no active guarded rollout on this flag already
Step 2: Design Stages#
Plan the rollout progression. A typical pattern:
| Stage | Traffic | Monitoring Window | Purpose |
|---|---|---|---|
| 1 | 1% | 1 hour | Smoke test — catch obvious crashes |
| 2 | 10% | 24 hours | Early signal on metrics |
| 3 | 50% | 24 hours | Confidence building |
| 4 | 100% | 24 hours | Full rollout with monitoring |
Step 3: Configure Metrics#
Select metrics that indicate problems:
| Metric Type | Example | Threshold | Action |
|---|---|---|---|
| Error rate | api-error-rate | 0.05 (5% increase) | Rollback |
| Latency | p99-response-time | 0.2 (20% increase) | Notify |
| Conversion | checkout-completed | 0.1 (10% decrease) | Notify + Rollback |
Step 4: Start the Rollout#
Use start-guarded-rollout:
{
"projectKey": "my-project",
"flagKey": "new-checkout-flow",
"environmentKey": "production",
"testVariationId": "variation-id-for-new-flow",
"controlVariationId": "variation-id-for-current-flow",
"randomizationUnit": "user",
"stages": [
{"rolloutWeight": 1000, "monitoringWindowMilliseconds": 3600000},
{"rolloutWeight": 10000, "monitoringWindowMilliseconds": 86400000},
{"rolloutWeight": 50000, "monitoringWindowMilliseconds": 86400000},
{"rolloutWeight": 100000, "monitoringWindowMilliseconds": 86400000}
],
"metrics": [
{
"metricKey": "api-error-rate",
"onRegression": {"notify": true, "rollback": true},
"regressionThreshold": 0.05
},
{
"metricKey": "checkout-completed",
"onRegression": {"notify": true, "rollback": false},
"regressionThreshold": 0.1
}
]
}Step 5: Verify#
- Use
get-flagto confirm the guarded rollout is active - Check that the flag shows the rollout configuration in the environment
- Monitor for any immediate regression notifications
Report results:
- Guarded rollout started with N stages
- M metrics being monitored
- First stage at X% traffic for Y hours
Stopping a Rollout#
If issues arise or you need to halt the rollout:
{
"projectKey": "my-project",
"flagKey": "new-checkout-flow",
"environmentKey": "production"
}This immediately stops the progressive rollout and locks the flag at its current state.
Edge Cases#
| Situation | Action |
|---|---|
| Flag is off | Turn it on first with toggle-flag — rollouts require the flag to be on |
| Active rollout exists | Stop it first with stop-guarded-rollout before starting a new one |
| No suitable metrics | Create metrics first with create-metric |
| Approval required | If the environment requires approvals, the tool will return an approval URL |
What NOT to Do#
- Don't start a guarded rollout on a flag that's turned off
- Don't skip the monitoring window design — rushing through stages defeats the purpose
- Don't set regression thresholds to 0 — small fluctuations are normal
- Don't forget to configure at least one metric — a rollout without monitoring is just a regular rollout
FAQ
07 QUESTIONS
01What is the Launchdarkly guarded rollout agent skill?
You're using a skill that will guide you through configuring guarded rollouts in LaunchDarkly. It is listed under growth in the 100xLab agent skills directory.
02How do I install Launchdarkly guarded rollout in Cursor, Claude Code, or Codex?
Run npx skills add launchdarkly/agent-skills --skill launchdarkly-guarded-rollout in the project where you want it, then ask your agent for the skill by name. The --skill flag installs only Launchdarkly guarded rollout, not every skill in the repository.
03What does the Launchdarkly guarded rollout SKILL.md cover?
The SKILL.md includes sections on Prerequisites, Core Concepts, What Are Guarded Rollouts?, Key Components, Rollout Weight Units and Monitoring Window. Read the full text on this page or in plain markdown at /resources/agent-skills/launchdarkly-agent-skills--launchdarkly-guarded-rollout--1tl6gtx/raw.
04Which agents can use Launchdarkly guarded rollout?
Launchdarkly guarded rollout installs with the cross-agent skills installer (npx skills add), which sets it up for agents such as Claude Code, Cursor and Codex. Each agent loads the SKILL.md when you ask for the skill by name.
05What license is Launchdarkly guarded rollout under?
The launchdarkly/agent-skills repository declares the Apache-2.0 license. Read the license file in the repository before you copy or redistribute the skill.
06Is Launchdarkly guarded rollout free to use?
Reading, copying and installing Launchdarkly guarded rollout costs nothing: it is published in a public GitHub repository under the Apache-2.0 license. Reuse and redistribution follow that license.
07Where is the source of Launchdarkly guarded rollout?
Launchdarkly guarded rollout comes from https://github.com/launchdarkly/agent-skills, which has 18 GitHub stars. The SKILL.md is at https://github.com/launchdarkly/agent-skills/blob/HEAD/skills/feature-flags/launchdarkly-guarded-rollout/SKILL.md. The author is launchdarkly.
Need an agent workflow built around your stack?
Tell us the workflow you want automated. We reply within 4 working hours (IST).
ATTRIBUTION
Launchdarkly guarded rollout was written by its original authors and is published in launchdarkly/agent-skills (opens GitHub in a new tab) under the Apache-2.0 license. All rights stay with the original authors.
100xLab did not write, maintain or endorse this skill. This page lists it for discovery. Repo stars belong to the source repository, not to the skill. Review any skill before you install it.