Communitygithub.com

launchdarkly/launchdarkly-experiment-setup

Configurer et exécuter des expériences dans LaunchDarkly. Créez des expériences avec des métriques, des traitements et une configuration de drapeau, démarrez des itérations pour collecter des données, échangez la conception entre les itérations et arrêtez avec un gagnant.

Qu'est-ce que launchdarkly-experiment-setup ?

Cette compétence permet de configurer et gérer des expériences A/B ou multivariées directement depuis LaunchDarkly, en utilisant des indicateurs de performance, des traitements alternatifs et des configurations de feature flags. Elle est idéale pour les ingénieurs produit ou les data scientists souhaitant valider des hypothèses de manière contrôlée et reproductible. La compétence prend en charge les étapes clés du cycle expérimental : définition des métriques, création des traitements, lancement des itérations pour collecter des données, modification de la conception entre les itérations, et arrêt de l’expérience avec sélection du gagnant. Elle s’intègre nativement avec les environnements LaunchDarkly et peut être utilisée via des agents comme Claude Code, Cursor ou Codex. Le flux de travail repose sur des fichiers de configuration structurés (YAML/JSON) et des API LaunchDarkly, sans nécessiter de codage manuel répétitif. En automatisant la gestion des expériences, cette compétence réduit les risques d’erreur humaine et accélère la prise de décision basée sur les données.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/launchdarkly/agent-skills/tree/main/skills/launchdarkly-experiment-setup

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait launchdarkly-experiment-setup ?

Configurer et exécuter des expériences dans LaunchDarkly. Créez des expériences avec des métriques, des traitements et une configuration de drapeau, démarrez des itérations pour collecter des données, échangez la conception entre les itérations et arrêtez avec un gagnant.

Utilisation

Cette compétence permet de gérer le cycle complet d'une expérience dans LaunchDarkly sans écrire de code manuellement. Elle est conçue pour être utilisée avec des agents IA comme Claude Code, Cursor ou Codex.

Prérequis

  • Un compte LaunchDarkly avec accès à la fonctionnalité d'expérimentation
  • Token d'API LaunchDarkly configuré dans votre environnement
  • Feature flags déjà créés dans LaunchDarkly

Workflow

  1. Créer une expérience
    • Définissez les métriques de succès (ex : clics, conversions)
    • Spécifiez les traitements (variantes A/B)
    • Configurez le flag associé
  2. Démarrer une itération
    • Lancez la collecte de données
    • Surveillez les résultats en temps réel
  3. Modifier la conception
    • Ajustez les traitements entre les itérations
    • Mettez à jour les métriques si nécessaire
  4. Arrêter et déclarer un gagnant
    • Analysez les résultats statistiques
    • Sélectionnez le traitement gagnant

Commandes

# Exemple de configuration d'expérience
# (les commandes exactes dépendent de l'implémentation de l'agent)

Fichiers de configuration

Les expériences sont définies dans des fichiers structurés (YAML/JSON) qui spécifient :

  • name : Nom de l'expérience
  • flagKey : Clé du feature flag
  • treatments : Liste des traitements avec descriptions
  • metrics : Indicateurs de performance
  • iterations : Plan des itérations

Ressources

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

launchdarkly/aiconfig-agent-graphs

DEPRECATED 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.

launchdarkly/aiconfig-ai-metrics

DEPRECATED 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.

launchdarkly/aiconfig-create

DEPRECATED redirect — this skill was renamed to configs-create. Do not use this skill; invoke configs-create instead. Kept only so old references to aiconfig-create still point users to the new name.

launchdarkly/aiconfig-custom-metrics

DEPRECATED redirect — this skill was renamed to custom-metrics. Do not use this skill; invoke custom-metrics instead. Kept only so old references to aiconfig-custom-metrics still point users to the new name.

launchdarkly/aiconfig-migrate

DEPRECATED redirect — this skill was renamed to migrate. Do not use this skill; invoke migrate instead. Kept only so old references to aiconfig-migrate still point users to the new name.

launchdarkly/aiconfig-online-evals

DEPRECATED redirect — this skill was renamed to online-evals. Do not use this skill; invoke online-evals instead. Kept only so old references to aiconfig-online-evals still point users to the new name.

launchdarkly/aiconfig-projects

DEPRECATED redirect — this skill was renamed to projects. Do not use this skill; invoke projects instead. Kept only so old references to aiconfig-projects still point users to the new name.

launchdarkly/aiconfig-snippets

DEPRECATED redirect — this skill was renamed to snippets. Do not use this skill; invoke snippets instead. Kept only so old references to aiconfig-snippets still point users to the new name.

launchdarkly/aiconfig-targeting

DEPRECATED redirect — this skill was renamed to configs-targeting. Do not use this skill; invoke configs-targeting instead. Kept only so old references to aiconfig-targeting still point users to the new name.

launchdarkly/aiconfig-tools

DEPRECATED redirect — this skill was renamed to tools. Do not use this skill; invoke tools instead. Kept only so old references to aiconfig-tools still point users to the new name.

launchdarkly/aiconfig-update

DEPRECATED redirect — this skill was renamed to configs-update. Do not use this skill; invoke configs-update instead. Kept only so old references to aiconfig-update still point users to the new name.

launchdarkly/aiconfig-variations

DEPRECATED redirect — this skill was renamed to configs-variations. Do not use this skill; invoke configs-variations instead. Kept only so old references to aiconfig-variations still point users to the new name.

launchdarkly/apply

Apply LaunchDarkly SDK onboarding: install dependency (or dual-SDK pair), configure env and secrets with consent, add init at entrypoint(s), verify compile. Nested under sdk-install; next is run.

launchdarkly/detect

Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested under sdk-install; next is plan.

launchdarkly/first-flag

Create a boolean first flag, add evaluation, toggle on/off for end-to-end proof. Parent onboarding Step 6; uses MCP, API, or ldcli; optional flag-create skill.

launchdarkly/launchdarkly-flag-cleanup

Safely remove a feature flag from code while preserving production behavior. Use when the user wants to remove a flag from code, delete flag references, or create a PR that hardcodes the winning variation after a rollout is complete.

launchdarkly/launchdarkly-flag-create

Create and configure LaunchDarkly feature flags in a way that fits the existing codebase. Use when the user wants to create a new flag, wrap code in a flag, add a feature toggle, or set up an experiment. Guides exploration of existing patterns before creating.

launchdarkly/launchdarkly-flag-discovery

Audit your LaunchDarkly feature flags to understand the landscape, find stale or launched flags, and assess removal readiness. Use when the user asks about flag debt, stale flags, cleanup candidates, flag health, or wants to understand their flag inventory.

launchdarkly/launchdarkly-flag-targeting

Control LaunchDarkly feature flag targeting including toggling flags on/off, percentage rollouts, targeting rules, individual targets, and copying flag configurations between environments. Use when the user wants to change who sees a flag, roll out to a percentage, add targeting rules, or promote config between environments.

launchdarkly/launchdarkly-guarded-rollout

Configure guarded rollouts with progressive traffic increases, metric monitoring, and automatic rollback. Use when releasing features gradually with safety thresholds.

Skills associés