launchdarkly/launchdarkly-flag-erstellen

Erstellen und konfigurieren Sie LaunchDarkly-Feature-Flags passend zur bestehenden Codebasis. Verwenden Sie dieses Skill, wenn ein neues Flag erstellt, Code in ein Flag eingebettet, ein Feature-Toggle hinzugefügt oder ein Experiment eingerichtet werden soll. Es leitet die Erkundung vorhandener Muster vor der Erstellung an.

Was ist launchdarkly-flag-erstellen?

Dieser Skill ermöglicht es Ihnen, LaunchDarkly-Feature-Flags direkt aus Ihrem KI-Entwicklungstool (z. B. Claude Code, Cursor, Codex) zu erstellen und zu konfigurieren. Er analysiert die bestehende Codebasis, um konsistente Benennungs-, Typ- und Konfigurationsmuster sicherzustellen. Der Skill unterstützt die Generierung von Flag-Definitionen für verschiedene Programmiersprachen und Frameworks, wobei etablierte Konventionen wie Flag-Namenspräfixe, Standard-Auswertungskontexte und Platzhalter-Code-Snippets berücksichtigt werden. Er führt den Benutzer durch den gesamten Workflow: Erkundung vorhandener Flags, Auswahl des richtigen Flag-Typs (z. B. Boolesch, Multivariate), Generierung von SDK-Client-Initialisierungscode und Einfügen von Flag-Auswertungslogik in Ziel-Dateien. Ideal für Entwickler-Teams, die Feature-Management-Workflows standardisieren und menschliche Fehler bei der Flag-Erstellung vermeiden möchten.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/launchdarkly/agent-skills/tree/main/skills/launchdarkly-flag-create

Installed? Explore more Produktivität & Zusammenarbeit skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht launchdarkly-flag-erstellen?

Erstellen und konfigurieren Sie LaunchDarkly-Feature-Flags passend zur bestehenden Codebasis. Verwenden Sie dieses Skill, wenn ein neues Flag erstellt, Code in ein Flag eingebettet, ein Feature-Toggle hinzugefügt oder ein Experiment eingerichtet werden soll. Es leitet die Erkundung vorhandener Muster vor der Erstellung an.

Funktionsweise

  1. Durchsuchen Sie die Codebasis nach bestehenden Flags und SDK-Client-Initialisierungen.
  2. Wählen Sie den geeigneten Flag-Typ (Boolesch, String, Numerisch, JSON) basierend auf dem Anwendungsfall.
  3. Generieren Sie einen konsistenten Flag-Namen gemäß den Projektkonventionen.
  4. Erstellen Sie den Flag-Code mit SDK-Aufrufen (variation(), boolVariation(), etc.).
  5. Fügen Sie Platzhalter für Standardwerte und Fehlerbehandlung ein.

Unterstützte Plattformen

  • Claude Code
  • Cursor
  • Codex

Verwendung

Beispielanfrage: "Erstelle ein Boolesches Feature-Flag namens new-checkout-flow für das React-Projekt im Ordner src."

Der Skill wird:

  • Vorhandene Flags in src/launchdarkly-config.js nach Namensmustern durchsuchen.
  • Einen eindeutigen Flag-Key generieren (z. B. new-checkout-flow-react).
  • Eine boolVariation() in der Zielkomponente src/components/Checkout.jsx einfügen.
  • Die Flag-Erstellung mit launchDarklyClient.variation('new-checkout-flow-react', context, false) abschließen.

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

Verwandte Skills