| name | feature-flag |
| description | Add or evaluate a LaunchDarkly feature flag. Use when implementing a new feature behind a flag or checking flag status. |
Feature Flag
Manage LaunchDarkly feature flags.
Adding a new flag
- Define flag key:
SCREAMING_SNAKE_CASE → kebab-case for 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)