feature-flag
Add or evaluate a LaunchDarkly feature flag. Use when implementing a new feature behind a flag or checking flag status.
SKILL.md.claude/skills/feature-flag/SKILL.md
GitHubFeature Flag
Manage LaunchDarkly feature flags.
Adding a new flag
- Define flag key:
SCREAMING_SNAKE_CASE→kebab-casefor LD - Add TypeScript constant to
shared/src/feature-flags.ts - Wrap feature in
if (await ldClient.variation('flag-key', context, false)) - Document flag purpose and expected removal date
Checking flag status
List all flags and whether they're enabled: use LD API or /flags admin endpoint.
Arguments: $ARGUMENTS — flag name or action (list/add/remove)