launchdarkly/first-flag

Créez un premier indicateur booléen, ajoutez une évaluation, activez/désactivez pour une preuve de bout en bout. Étape 6 de l'intégration parente ; utilise MCP, API ou ldcli ; compétence optionnelle de création d'indicateur.

Qu'est-ce que first-flag ?

Cette compétence guide un agent IA (comme Claude Code, Cursor ou Codex) dans la création d'un premier indicateur (flag) booléen dans LaunchDarkly, l'ajout d'une évaluation dans le code, et l'activation/désactivation de l'indicateur pour une validation de bout en bout. Elle s'inscrit dans le cadre d'un parcours d'intégration parent (étape 6) et peut être exécutée via le protocole MCP, l'API REST de LaunchDarkly ou l'outil en ligne de commande `ldcli`. La compétence présuppose que l'agent peut interagir avec LaunchDarkly pour créer un indicateur, puis avec le système de fichiers pour modifier le code source (par exemple ajouter un bloc `if/else` évaluant l'indicateur), et enfin basculer l'état de l'indicateur sur le tableau de bord ou par programme. L'utilisation de la compétence `flag-create` est optionnelle ; si elle n'est pas présente, l'agent peut créer manuellement l'indicateur via l'API ou l'interface utilisateur. Cela permet de démontrer rapidement le workflow complet de gestion de feature flags dans LaunchDarkly.

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

Installed? Explore more Productivité et collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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 first-flag ?

Créez un premier indicateur booléen, ajoutez une évaluation, activez/désactivez pour une preuve de bout en bout. Étape 6 de l'intégration parente ; utilise MCP, API ou ldcli ; compétence optionnelle de création d'indicateur.

Utilisation

Cette compétence est destinée à être utilisée dans le cadre du parcours d'intégration LaunchDarkly. Elle vous guide à travers les étapes suivantes :

  1. Créer l'indicateur : Créez un indicateur booléen nommé par exemple mon-premier-flag via MCP, l'API REST ou ldcli.
  2. Ajouter une évaluation : Modifiez le code source de votre application pour évaluer ce nouvel indicateur (par exemple, en utilisant le SDK LaunchDarkly).
  3. Activer/Désactiver : Basculez l'état de l'indicateur sur « Activé » ou « Désactivé » et vérifiez que le comportement de l'application change en conséquence.

Prérequis

  • Un compte LaunchDarkly avec un projet et un environnement.
  • Un SDK LaunchDarkly installé dans votre application.
  • (ldcli si vous utilisez l'outil en ligne de commande).

Notes

  • La compétence flag-create est optionnelle ; si elle n'est pas disponible, vous pouvez créer l'indicateur manuellement via l'interface utilisateur ou l'API.
  • Cette compétence fait partie d'une série d'étapes d'intégration ; assurez-vous d'avoir terminé les étapes précédentes avant de l'exécuter.

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/launchdarkly-experiment-setup

Set up and run experiments in LaunchDarkly. Create experiments with metrics, treatments, and flag config, start iterations to collect data, swap design between iterations, and stop with a winner.

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