/launchdarkly:launchdarkly-flag-createfrom launchdarkly
Guides creating and configuring LaunchDarkly feature flags that match existing codebase patterns. Explores SDK usage, naming conventions, and evaluation patterns before creating flags.
Ships in launchdarkly. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You're using a skill that will guide you through introducing a new feature flag into a codebase. Your job is to explore how flags are already used in this codebase, create the flag in LaunchDarkly in a way that fits, add the evaluation code matching existing patterns, and verify everything is wired up correctly.
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
create-flag: create a new feature flag in a projectget-flags: verify the flag was created correctlyOptional MCP tools (enhance workflow):
get-flags: browse existing flags to understand naming conventions and tagsupdate-flag: update flag metadata (name, description, tags, temporary/permanent status)Before creating anything, understand how this codebase uses feature flags.
Find the SDK. Search for LaunchDarkly SDK imports or initialization:
launchdarkly, ldclient, ld-client, LDClient in importspackage.json, requirements.txt, go.mod, Gemfile, or equivalent for the SDK dependencyFind existing flag evaluations. Search for variation calls to understand the patterns this codebase uses:
variation(), boolVariation(), useFlags(), etc.Understand conventions. Look at existing flags to learn:
kebab-case, snake_case, camelCase?Check LaunchDarkly project conventions. Optionally use get-flags to see existing flags:
Based on what the user needs, choose the appropriate flag configuration. See Flag Types and Patterns for the full guide.
Quick decision:
| User intent | Flag kind | Variations |
|---|---|---|
| "Toggle a feature on/off" | boolean | true / false |
| "Gradually roll out a feature" | boolean | true / false |
| "A/B test between options" | multivariate (string) | User-defined values |
| "Configure a numeric threshold" | multivariate (number) | User-defined values |
| "Serve different config objects" | multivariate (JSON) | User-defined values |
Defaults to apply:
temporary: true unless the user explicitly says this is a permanent/long-lived flag. Most flags are release flags that should eventually be cleaned up.key from the name if not provided (e.g., "New Checkout Flow" -> new-checkout-flow), but match the codebase's naming convention if one exists.Use create-flag with the configuration determined in Step 2.
After creation:
offVariation to everyone until targeting is turned on.Now add the code to evaluate the flag, matching the patterns you found in Step 1.
See SDK Evaluation Patterns for implementation examples by language and framework.
Confirm the flag is properly set up:
get-flags to confirm it was created with the right configuration.If the user wants to change flag metadata (not targeting), use update-flag. Supported changes:
| Change | Instruction |
|---|---|
| Rename | {kind: "updateName", value: "New Name"} |
| Update description | {kind: "updateDescription", value: "New description"} |
| Add tags | {kind: "addTags", values: ["tag1", "tag2"]} |
| Remove tags | {kind: "removeTags", values: ["old-tag"]} |
| Mark as temporary | {kind: "makeFlagTemporary"} |
| Mark as permanent | {kind: "makeFlagPermanent"} |
Multiple instructions can be batched in a single call. These changes are project-wide, not environment-specific.
Important: Metadata updates (above) are separate from targeting changes (toggle, rollout, rules). If the user wants to change who sees what, direct them to the flag targeting skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
56 skills in this plugin
/agent-graphsCreate and manage agent graphs — directed graphs of configs connected by edges with handoff logic. Use when building multi-agent workflows where configs route to each other./aiconfig-agent-graphsDEPRECATED redirect — this skill was renamed to agent-graphs. Do not use this skill; invoke agent-graphs instead. Kept only so old references to aiconfig-agent-graphs still point users to the new name./aiconfig-ai-metricsDEPRECATED redirect — this skill was renamed to built-in-metrics. Do not use this skill; invoke built-in-metrics instead. Kept only so old references to aiconfig-ai-metrics still point users to the new name.npx claudepluginhub launchdarkly/ai-tooling --plugin launchdarklyOther plugins' skills for the same job