aiconfig-targeting

Configure LaunchDarkly AI Config targeting rules via API.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/launchdarkly-labs/aiconfigs-skills --skill aiconfig-targeting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiconfig-targeting
Source: https://github.com/launchdarkly-labs/aiconfigs-skills/tree/main/aiconfig-targeting
Command: npx skills add https://github.com/launchdarkly-labs/aiconfigs-skills --skill aiconfig-targeting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure LaunchDarkly AI Config targeting rules via API to control which variations are served to different contexts, enabling precise experimentation and controlled feature delivery.

Core Features & Use Cases

  • API-driven targeting: manage AB tests, percentage-based traffic splits, segment-based rules, and multi-context targeting for AI Configs.
  • Flexible rule composition: order-specific rules, individual targets, segment matches, and context-based clauses to tailor variation delivery.
  • Use Case: A product team wants to run an AB test across premium vs standard customers and across organizations, adjusting which variation each group sees in production.

Quick Start

Use the aiconfig-targeting skill to programmatically fetch current targeting configuration and apply a new targeting rule via PATCH to the relevant project config.

Frequently Asked Questions about aiconfig-targeting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure AI Config targeting rules via API in LaunchDarkly?

Use the aiconfig-targeting skill to fetch current targeting configuration and apply targeting rules via PATCH request to your LaunchDarkly project. You'll need an API access token with write permissions, your project key, and environment keys to programmatically manage AB tests, percentage splits, and segment-based rules.

Can I run AB tests across different customer segments and organizations with LaunchDarkly?

Yes, AI Config targeting supports multi-context rules that let you segment by customer type, organization, and other contexts. Order individual targeting rules, apply segment matches, and define context-based clauses to control which variation each group receives in production.

What permissions and setup do I need to target AI Configs via API?

You need a LaunchDarkly API access token with write permissions, your project key, and your environment keys. The aiconfig-targeting skill uses these credentials to authenticate requests and modify targeting configuration for your AI Configs across projects and environments.

How do percentage-based traffic splits work in AI Config targeting?

Percentage-based traffic splits let you allocate portions of your user base to different variations. The aiconfig-targeting skill lets you compose rules that split traffic by percentage, combined with segment targeting and multi-context conditions, to control precise variation delivery.

Can I order multiple targeting rules for AI Configs or target individual users?

Yes, the aiconfig-targeting skill supports order-specific rule composition, individual user targets, and segment matches. Rules are evaluated in sequence, letting you layer individual targeting, segment-based rules, and context clauses for fine-grained control over variation delivery.