@facebook/flags

The library for web and native user interfaces.

View in AI SkillSafe app
244425 downloads
0 stars
0 demos
SKILL.md
nameflags
descriptionUse when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

Feature Flags

Arguments:

  • $ARGUMENTS: Optional flags

Options

Option Purpose
(none) Show all flags across all channels
--diff <ch1> <ch2> Compare flags between channels
--cleanup Show flags grouped by cleanup status
--csv Output in CSV format

Channels

  • www, www-modern - Meta internal
  • canary, next, experimental - OSS channels
  • rn, rn-fb, rn-next - React Native

Legend

✅ enabled, ❌ disabled, 🧪 __VARIANT__, 📊 profiling-only

Instructions

  1. Run yarn flags $ARGUMENTS
  2. Explain the output to the user
  3. For --diff, highlight meaningful differences

Common Mistakes

  • Forgetting __VARIANT__ flags - These are tested both ways in www; check both variants
  • Comparing wrong channels - Use --diff to see exact differences

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@facebook/flags/verified)](https://skillsafe.ai/skill/@facebook/flags/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@facebook/flags/installs)](https://skillsafe.ai/skill/@facebook/flags/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@facebook/flags/scan)](https://skillsafe.ai/skill/@facebook/flags/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@facebook/flags/eval)](https://skillsafe.ai/skill/@facebook/flags/)