An Agent Skill for creating and managing reusable audience segments in LaunchDarkly, so teams define targeting criteria once and reuse them across multiple feature flags.
This skill teaches agents how to:
- Check for existing segments before creating duplicates
- Choose the right segment type: rule-based (attribute matching) vs list-based (explicit keys)
- Create a segment in a specific environment with the right key, name, and tags
- Configure segment membership via targeting rules or individual context targets
- Wire a segment into a feature flag's targeting rules using the
segmentMatchoperator
Once installed, the skill activates when you ask about segments:
Create a beta-testers segment in staging for users whose email ends in @example.com
Add the enterprise-accounts segment to the new-dashboard flag so enterprise users get the true variation
Set up an internal-qa segment in production with these specific user keys: [key1, key2, key3]
launchdarkly-segment-create/
├── SKILL.md
├── README.md
└── references/
├── segment-types.md
└── segment-rule-patterns.md
- LaunchDarkly Flag Targeting — Wire segments into flag targeting rules after creating them
- LaunchDarkly Flag Create — Create the flags that segments will be wired into
- LaunchDarkly MCP Server
- LaunchDarkly Segments Docs
Apache-2.0