
Configs Targeting
This handles the targeting side of LaunchDarkly's AI configs, letting you set up rules for who gets which model configuration. You can do percentage rollouts, attribute-based targeting, segment rules, and individual overrides. The workflow is get current targeting to grab variation UUIDs, then send semantic patch instructions to add rules or update the fallthrough. One gotcha worth knowing: the usual turnTargetingOn instruction doesn't work for configs, you have to use updateFallthroughVariationOrRollout instead. The Python implementation shows the pattern pretty clearly. Useful if you're running controlled experiments with different model settings or rolling out prompt changes gradually.
- skills.sh installs
- 1.3K
- GitHub stars
- 19
- last updated
- Jul 14, 2026
Install
$ npx -y skills add launchdarkly/agent-skills --skill configs-targeting --agent claude-codeInstalls into .claude/skills of the current project.
Files
Config Targeting
Configure targeting rules for configs to control which variations serve to different contexts. Works the same for both completion and agent mode.
Prerequisites
- LaunchDarkly account with AgentControl enabled
- Project key and environment key
- Existing config with variations (use
configs-createskill)
API Access
Use the LaunchDarkly MCP server tools: they authenticate via OAuth and need no token. The REST examples under Scripting without MCP are for code that runs without the agent; if the user wants one run in this session, ask them to paste an API access token and substitute it for {api_token}. Do not search environment variables, .env files, or agent/MCP config files for credentials.
Core Concepts
Evaluation Order
Targeting rules evaluate in this order (same as feature flags):
- Individual targets - Specific context keys (highest priority)
- Segment rules - Pre-defined segments
- Custom rules - Attribute-based conditions (evaluated in order)
- Default rule - Fallthrough for all others
- Off variation - When targeting is disabled
Key Concepts
Sponsors
Details
- Repository
- github.com/launchdarkly/agent-skills
- Category
- AI & Agent Building
- First seen
- Jul 14, 2026
More from launchdarkly/agent-skills
All 41- Configs Update1.3K
- Configs Variations1.3K
- Custom Metrics1.3K
- Migrate1.3K
- Online Evals1.3K
- Projects1.3K
- Snippets1.3K
- Tools1.3K
- Launchdarkly Flag Command1K
- Onboarding3.3K
- Launchdarkly Flag Cleanup2.5K
- Launchdarkly Flag Create2.5K
- Launchdarkly Flag Discovery2.5K
- Launchdarkly Flag Targeting2.5K
- Aiconfig Create2.3K
- Aiconfig Projects2.3K
- Aiconfig Tools2.3K
- Aiconfig Update2.3K
- Aiconfig Variations2.3K
- Launchdarkly Metric Choose2.3K
- Launchdarkly Metric Create2.3K
- Launchdarkly Metric Instrument2.3K
- Aiconfig Online Evals2.2K
- Aiconfig Targeting2.2K