
Launchdarkly Guarded Rollout
Configure LaunchDarkly guarded rollouts with staged traffic, metric thresholds, and automatic pause or rollback via the hosted MCP server.
Overview
LaunchDarkly Guarded Rollout is an agent skill for the Ship phase that configures progressive feature flag rollouts with metric monitoring and automatic rollback through LaunchDarkly MCP.
Install
npx skills add https://github.com/launchdarkly/agent-skills --skill launchdarkly-guarded-rolloutWhat is this skill?
- Progressive rollout stages with increasing traffic to a flag variation
- Metric monitoring and regression thresholds at each stage
- MCP tools: start-guarded-rollout, get-flag, list-metrics (stop, toggle-flag, create-metric optional)
- Automatic pause or rollback when regressions are detected
- Requires remotely hosted LaunchDarkly MCP server (Apache-2.0 skill, v0.1.0 metadata)
- 3 required MCP tools: start-guarded-rollout, get-flag, list-metrics
- 3 optional MCP tools: stop-guarded-rollout, toggle-flag, create-metric
Adoption & trust: 1k installs on skills.sh; 16 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need to release a feature gradually but lack a guided way to set rollout stages, pick metrics, and define regression thresholds in LaunchDarkly.
Who is it for?
Indie SaaS teams already on LaunchDarkly with MCP configured who want agent-assisted progressive releases instead of manual percentage tweaks.
Skip if: Projects without LaunchDarkly, releases with no metrics to watch, or one-shot kill-switch toggles that do not need staged traffic.
When should I use this skill?
Releasing features gradually with safety thresholds—configure guarded rollouts with progressive traffic increases and metric monitoring.
What do I get? / Deliverables
A guarded rollout is started with defined stages and monitoring so traffic increases only while metrics stay within safety bounds.
- Rollout stage plan with traffic increments
- Selected metrics and regression thresholds
- Started guarded rollout via MCP
Recommended Skills
Journey fit
Gradual feature release with safety gates sits in Ship because it controls how new behavior reaches production users. Launch subphase matches progressive exposure and release orchestration rather than pre-release unit testing.
How it compares
Use for LaunchDarkly progressive delivery with MCP—not a generic feature-flag tutorial and not a replacement for pre-ship test suites.
Common Questions / FAQ
Who is launchdarkly-guarded-rollout for?
Solo builders and small teams using LaunchDarkly who release behind flags and want MCP-driven guarded rollouts with metric safety rails.
When should I use launchdarkly-guarded-rollout?
Use it in Ship/Launch when turning on a new variation gradually, after the flag exists and you have metrics to monitor during staged traffic increases.
Is launchdarkly-guarded-rollout safe to install?
It orchestrates production flag changes via MCP; review the Security Audits panel on this page and confirm MCP scopes before starting rollouts.
SKILL.md
READMESKILL.md - Launchdarkly Guarded Rollout
# 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 monitoring - `get-flag` -- inspect the flag and its variations - `list-metrics` -- find metrics to monitor during the rollout **Optional MCP tools:** - `stop-guarded-rollout` -- halt an active rollout immediately - `toggle-flag` -- ensure the flag is turned on before starting - `create-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 hour - `86400000` = 24 hours - `604800000` = 7 days ## Core Principles 1. **Start Small**: Begin with a low percentage (1-5%) to catch issues early 2. **Monitor What Matters**: Choose metrics that reflect user experience 3. **Set Realistic Thresholds**: Too tight = false alarms; too loose = missed regressions 4. **Allow Time**: Each stage needs enough monitoring time for signal to emerge 5. **Have a Rollback Plan**: Always configure at least notification on regression ## Workflow ### Step 1: Prepare Before starting a guarded rollout: 1. Use `get-flag` to inspect the flag — note the variation IDs for test and control 2. Use `list-metrics` to find metrics suitable for monitoring 3. Ensure the flag is **on** in the target environment (use `toggle-flag` if needed) 4. 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`: ```json { "projectKey": "my-project", "flagKey": "new-checkout-flow", "