launchdarkly avatar

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-code

Installs 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-create skill)

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):

  1. Individual targets - Specific context keys (highest priority)
  2. Segment rules - Pre-defined segments
  3. Custom rules - Attribute-based conditions (evaluated in order)
  4. Default rule - Fallthrough for all others
  5. 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
1launchdarkly avatarcustom-metricslaunchdarkly/agent-skillscustom metrics1.3Kskills.sh installs
2launchdarkly avataronline-evalslaunchdarkly/agent-skillsonline evals1.3Kskills.sh installs
3launchdarkly avatarprojectslaunchdarkly/agent-skillsprojects1.3Kskills.sh installs
4charleswiltgen avataraxiom-securitycharleswiltgen/axiomUse when storing credentials securely, encrypting data, implementing passkeys, securing AI/agentic features against prompt injection, code signing, or managing 1.3Kskills.sh installs
5neolabhq avatardo-and-judgeneolabhq/context-engineering-kitExecute a task with sub-agent implementation and LLM-as-a-judge verification with automatic retry loop1.3Kskills.sh installs
6nvidia avatarnemoclaw-user-guidenvidia/skillsGuides human users' AI agents to the NemoClaw docs MCP server and canonical Fern documentation in Markdown form. Use when users ask how to install, configure, o1.3Kskills.sh installs