All skills
launchdarkly avatar

/launchdarkly-flag-drift

@bfbcd29 official

Detect and reconcile drift between a feature flag's in-code SDK fallback default and its LaunchDarkly default rule (fallthrough). Use when a flag's default rule changed, when the user asks to detect flag drift, check whether a hardcoded default still matches LaunchDarkly, sync an in-code default, or open a PR reconciling a fallback value, without removing the flag or its evaluation.

Use this Skill: https://skilld.dev/gh/launchdarkly/agent-skills/launchdarkly-flag-drift

This session only. Nothing lands on disk.

README.md

≈622 tokens on demand. Your agent reads this file only when SKILL.md points to it.

LaunchDarkly Flag Drift Skill

An Agent Skill for detecting and reconciling drift between a feature flag's in-code SDK fallback default and its LaunchDarkly default rule, keeping outage behavior consistent with production.

Overview

This skill teaches agents how to:

  • Resolve a flag's current default rule (fallthrough) value from LaunchDarkly in every critical environment the build serves
  • Detect cross-environment divergence (e.g. EU vs. Federal serving different defaults), where a single in-code default cannot match every environment
  • Locate the fallback default argument in every SDK evaluation and declaration in code
  • Compare the two and detect drift
  • Reconcile only the in-code default when it has drifted, without removing the flag or changing its evaluation
  • Open a well-scoped pull request that documents the change

Installation (Local)

For now, install by placing this skill directory where your agent client loads skills.

Examples:

  • Generic: copy skills/feature-flags/launchdarkly-flag-drift/ into your client's skills path

Prerequisites

This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment. The remote server provides higher-level, agent-optimized tools that orchestrate multiple API calls and return pruned, actionable responses.

Refer to your LaunchDarkly account settings for instructions on connecting to the remotely hosted MCP server.

Usage

Once installed, the skill activates automatically when you ask about flag default drift:

The default rule for `new-checkout-flow` changed in production. Check if the code default drifted
Does the hardcoded default for `dark-mode` still match LaunchDarkly?
Open a PR to sync the in-code default for `enable-new-billing` with its fallthrough

Structure

launchdarkly-flag-drift/
├── SKILL.md
├── marketplace.json
├── README.md
└── references/
    ├── sdk-default-patterns.md
    └── pr-template.md

Related

License

Apache-2.0

Source: SKILL.md on GitHub

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is an official utility from LaunchDarkly designed to help developers keep their in-code feature flag defaults in sync with their LaunchDarkly configuration. It uses the official LaunchDarkly MCP server to safely fetch flag settings and automates the identification and reconciliation of code-side fallback values. The workflow includes standard safety steps like running existing project tests and linting before proposing changes via a pull request.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at bfbcd29. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 months ago
compatibility
Requires the remotely hosted LaunchDarkly MCP server
metadata
{
  "author": "launchdarkly",
  "version": "0.1.0"
}

README badge

README badge for launchdarkly/agent-skills/launchdarkly-flag-drift