flags

作者: facebook

检查并比较React发布渠道中的特性标志状态。查看所有渠道(www、www-modern、canary、next、experimental、rn变体)的标志,或使用--diff比较特定渠道。输出格式包括默认表格视图、CSV导出和清理状态分组。标志状态由符号表示:启用(✅)、禁用(❌)、变体测试(🧪)、仅性能分析(📊)。常见陷阱:__VARIANT__标志在www上以两种状态进行测试;使用--diff发现有意义的变化...

npx skills add https://github.com/facebook/react --skill flags

Feature Flags

Arguments:

  • $ARGUMENTS: Optional flags

Options

OptionPurpose
(none)Show all flags across all channels
--diff <ch1> <ch2>Compare flags between channels
--cleanupShow flags grouped by cleanup status
--csvOutput 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