omgskills Get the Mac app
Skill

feature-flags

@facebook 247k stars Updated 2026-07-27 Author match: High

Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.

declarativefrontendjavascriptlibraryreactui

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

Install command
git clone https://github.com/react/react /tmp/react && ln -s /tmp/react/.claude/skills/feature-flags ~/.claude/skills/feature-flags

View on GitHub

From README

React Feature Flags Flag Files | File | Purpose | |------|---------| | packages/shared/ReactFeatureFlags.js | Default flags (canary), EXPERIMENTAL overrides | | packages/shared/forks/ReactFeatureFlags.www.js | www channel, VARIANT overrides | | packages/shared/forks/ReactFeatureFlags.native-fb.js | React Native, VARIANT overrides | | packages/shared/forks/ReactFeatureFlags.test-renderer.js | Test renderer | Gating Tests @gate pragma (test-level) Use when the feature is completely unavailable without the flag: gate() inline (assertion-level) Use when the feature exists but behavior differs based on flag: Adding a New Flag Add to ReactFeatureFlags.js with default value Add to each fork file (.www.js, .native-fb.js, etc.) If it should vary in www/RN, set to VARIANT in the fork file Gate tests with @gate flagName or inline gate() Checking Flag States Use /flags to view states across channels. See the flags skill for full command options.

More from this repo