launchdarkly/launchdarkly-flag-discovery

Audita tus feature flags de LaunchDarkly para comprender el panorama, encontrar flags obsoletos o lanzados, y evaluar su preparación para eliminación. Útil cuando el usuario pregunta sobre deuda de flags, flags obsoletos, candidatos para limpieza, salud de flags o desea conocer su inventario de flags.

¿Qué es launchdarkly-flag-discovery?

Esta habilidad permite a un agente de IA auditar y analizar el inventario de feature flags de LaunchDarkly en una organización. Es útil para desarrolladores y equipos de ingeniería que buscan identificar flags obsoletos, lanzados o con deuda técnica, y evaluar qué tan listos están para ser eliminados. Funciona consultando la API de LaunchDarkly (versiones v2 y v3) para obtener una lista completa de flags, su metadata, y resultados de evaluaciones de reglas. Luego aplica heurísticas para clasificar flags como 'archivados', 'borradores', 'obsoletos' (no modificados en >30 días), 'lanzados' (sin targeting o sin variaciones personalizadas), o candidatos para eliminación. También detecta flags con dependencias entre sí. La habilidad devuelve un resumen estructurado con conteos, tablas detalladas y recomendaciones accionables, todo en formato markdown. Soporta las plataformas de agentes de IA como Claude Code, Cursor y Codex, y se invoca con una sola palabra clave como 'flag debt', 'stale flags' o 'flag health'.

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

Installed? Explore more Productividad y colaboración skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

¿Qué hace launchdarkly-flag-discovery?

Audita tus feature flags de LaunchDarkly para comprender el panorama, encontrar flags obsoletos o lanzados, y evaluar su preparación para eliminación. Útil cuando el usuario pregunta sobre deuda de flags, flags obsoletos, candidatos para limpieza, salud de flags o desea conocer su inventario de flags.

Descripción general

Esta habilidad te ayuda a realizar una auditoría de tus feature flags en LaunchDarkly. Obtiene una visión completa de todos los flags en tu organización y los clasifica según su estado, antigüedad y uso. Esto te permite identificar:

  • Flags obsoletos (sin cambios recientes, en estado live)
  • Flags lanzados (sin targeting activo o sin variaciones personalizadas)
  • Flags archivados o en borrador
  • Posibles dependencias entre flags
  • Recomendaciones para limpieza

Cómo funciona

La habilidad realiza lo siguiente:

  1. Consulta la API de LaunchDarkly para obtener la lista completa de flags en tu organización.
  2. Analiza cada flag según su metadata: estado (live, archived, draft), fecha de última modificación, configuraciones de targeting y variaciones.
  3. Clasifica los flags en las siguientes categorías:
    • archived: Flags que ya han sido archivados.
    • draft: Flags que están en modo borrador.
    • stale: Flags en estado live que no han sido modificados en más de 30 días (configurable).
    • launched: Flags en estado live que no tienen targeting habilitado o que tienen una sola variación (indicativo de que la funcionalidad ya se lanzó por completo).
    • healthy: Flags que no entran en ninguna categoría anterior.
    • cleanup_candidates: Flags que son obsoletos y además lanzados (combinación de ambas condiciones).
  4. Identifica dependencias entre flags (por ejemplo, si un flag depende de otro para activarse).
  5. Genera un informe estructurado con conteos, tablas detalladas (incluyendo nombre del flag, estado, última modificación, y razón de clasificación) y recomendaciones accionables.

Soporte de plataformas

Esta habilidad está diseñada para ser utilizada en agentes de IA como:

  • Claude Code (Anthropic)
  • Cursor
  • Codex (GitHub Copilot)
  • Cualquier otro agente que soporte habilidades markdown.

Requisitos previos

Para usar esta habilidad, necesitas:

  • Una cuenta de LaunchDarkly con acceso a la organización.

  • Un token de API de LaunchDarkly con permisos de lectura (Reader o superior). El token debe configurarse como variable de entorno:

    export LAUNCHDARKLY_API_KEY="tu-token-api"
    
  • Alternativamente, el agente puede solicitar el token al usuario durante la ejecución.

Ejemplo de uso

Caso 1: Auditoría general

"Audita mis flags de LaunchDarkly"

El agente ejecutará la habilidad y devolverá un resumen como:

## Resumen de auditoría de flags

- **Total de flags**: 45
- **Archivados**: 5
- **Borradores**: 3
- **Obsoletos (>30 días sin cambios)**: 12
- **Lanzados (sin targeting)**: 8
- **Saludables**: 17
- **Candidatos para limpieza**: 6

### Tabla de candidatos para limpieza
| Nombre del flag | Estado | Última modificación | Razón |
|---|---|---|---|
| `feature-new-ui` | live | 2024-01-15 | Obsoleto y lanzado |
| `old-payment-flow` | live | 2023-11-20 | Obsoleto y lanzado |
...

Caso 2: Flags obsoletos

"Muéstrame flags obsoletos"

El agente filtrará los flags con estado stale y devolverá los detalles.

Caso 3: Dependencias

"¿Hay dependencias entre flags?"

El agente listará los flags que tienen dependencias definidas, si las hay.

Limitaciones

  • La habilidad depende de la metadata disponible en la API de LaunchDarkly. No puede detectar el uso de flags en código fuente (solo análisis de configuración).
  • Los umbrales de antigüedad (como "30 días") son configurables; por defecto se usan 30 días para considerar un flag como obsoleto.
  • Las dependencias entre flags solo se detectan si están explícitamente definidas en LaunchDarkly.

Notas adicionales

  • Los resultados se devuelven en formato markdown para fácil lectura.
  • Se recomienda ejecutar esta habilidad periódicamente para mantener el inventario de flags limpio.
  • Para flags obsoletos, la recomendación es considerar su eliminación después de revisar que no haya código dependiente.

Habilidad generada para agentes de IA.

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