launchdarkly-guarded-rollout
Skill141 starsChanged 8 days agoApache-2.0View on GitHub
Configure guarded rollouts with progressive traffic increases, metric monitoring, and automatic rollback. Use when releasing features gradually with safety thresholds.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- launchdarkly/ai-toolingedited, first seen Feb 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- launchdarkly/ai-tooling★ 2996% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository102 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- agentcore-observability-setupSkill
- agentcore-ops-reviewSkill
- aiml-access-diagnosticsSkill
- aiml-gpu-training-cluster-investigationSkill
- analytics-opensearch-expertiseSkill
- aws-backup-coverage-reviewSkill
- aws-eks-healthdashboardSkill
- aws-eks-operations-reviewSkill
- aws-fsxn-operations-reviewSkill
- aws-health-eventsSkill
- aws-natgw-traffic-analysisSkill
- aws-routingSkill
- aws-vpc-dns-investigationSkill
- bedrock-adoption-readinessSkill
- bedrock-operation-reviewSkill
- bluebox-observabilitySkill
- bronto-dataset-discoverySkill
- bronto-error-investigationSkill
- bronto-log-searchSkill
- clickstack-investigationSkill
- cloudtrail-cost-optimizationSkill
- config-cost-optimizationSkill
- coralogix-ai-centerSkill
- coralogix-alertsSkill
- coralogix-case-analyticsSkill
- coralogix-case-managementSkill
- coralogix-casesSkill
- coralogix-dashboardsSkill
- coralogix-dataprimeSkill
- coralogix-datasetsSkill
- coralogix-data-usageSkill
- coralogix-docsSkill
- coralogix-infrastructureSkill
- coralogix-logsSkill
- coralogix-metrics-querySkill
- coralogix-ollySkill
- coralogix-rumSkill
- coralogix-service-catalogSkill
- coralogix-single-caseSkill
- coralogix-spansSkill
- coralogix-viewsSkill
- cribl-investigationSkill
- crm-production-investigation-guidelinesSkill
- database-migration-service-expertiseSkill
- database-rds-devopsSkill
- devops-agent-cost-insightsSkill
- dx-vif-resilienceSkill
- ecs-operation-reviewSkill
- eks-upgrade-readinessSkill
- elastic-csp-investigationSkill
- elastic-k8s-investigationSkill
- elastic-llm-obsSkill
- elastic-onboardingSkill
- elastic-service-reliabilitySkill
- elastic-sre-triageSkill
- enrich-with-aws-security-agentSkill
- eos-cost-analysisSkill
- firehose-operation-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 68
Have a Rollback Plan: Always configure at least notification on regression
- Distinctive: line 74
Before starting a guarded rollout:
- Very specific: line 76
Use get-flags with flagKey and env to inspect the flag — note the variation IDs for test and control
- Very specific: line 77
Use get-metrics to find metrics suitable for monitoring
- Very specific: line 78
Ensure the flag is on in the target environment (if needed, call toggle-flag with on: true and confirm: true)
- Very specific: line 129
Use get-flags with flagKey and env to confirm the guarded rollout is active
- Distinctive: line 130
Check that the flag shows the rollout configuration in the environment
- Very specific: line 140
If issues arise or you need to halt the rollout, call stop-guarded-rollout:
- Distinctive: line 164
Don't start a guarded rollout on a flag that's turned off
- Distinctive: line 165
Don't skip the monitoring window design — rushing through stages defeats the purpose
- Distinctive: line 166
Don't forget to configure at least one metric — a rollout without monitoring is just a regular rollout
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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, choose which regressions roll back automatically, 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-flags-- inspect the flag and its variationsget-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.) |
| Auto-rollback | Per metric: whether a regression rolls back automatically or only notifies |
Rollout Weight Units
Rollout weights use thousandths (basis points):
1000= 1%10000= 10%50000= 50%, the maximum for a guarded stage
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
- Choose Rollback Deliberately: Auto-roll back on metrics that signal real harm; notify only on noisy ones
- 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-flagswithflagKeyandenvto inspect the flag — note the variation IDs for test and control - Use
get-metricsto find metrics suitable for monitoring - Ensure the flag is on in the target environment (if needed, call
toggle-flagwithon: trueandconfirm: true) - 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 |
Each stage's rolloutWeight is capped at 50000 (50%). Do not add a 100% stage: after the last stage passes, LaunchDarkly completes the rollout.
Step 3: Configure Metrics
Select metrics that indicate problems. Each metric entry takes exactly key (a metric or metric group key), isGroup, and autoRollback (roll back automatically on regression, or only notify):
| Metric Type | Example | autoRollback |
| Error rate | api-error-rate | true |
| Latency | p99-response-time | false (notify only) |
| Conversion | checkout-completed | true |
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}
],
"metrics": [
{"key": "api-error-rate", "isGroup": false, "autoRollback": true},
{"key": "checkout-completed", "isGroup": false, "autoRollback": true}
]
}Step 5: Verify
- Use
get-flagswithflagKeyandenvto 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, call stop-guarded-rollout:
{
"projectKey": "my-project",
"flagKey": "new-checkout-flow",
"environmentKey": "production",
"confirm": true
}Without outcome, stopping rolls back: the flag serves the control variation. To keep the new variation instead, pass outcome: "rollForward"; that can fail if the rollout has already moved past that phase. For a rollout on a targeting rule rather than the default rule, add its ruleId.
Edge Cases
| Situation | Action |
| Flag is off | Turn it on first with toggle-flag (on: true, confirm: true) — 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 | The tool returns requiresApproval: true and how to submit the change with create-approval-request; share that request's approvalRequest.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 forget to configure at least one metric — a rollout without monitoring is just a regular rollout
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

