
feature-flags
Feature flag tests fail, flags need updating, understanding @gate pragmas
by reactFree
Description
feature-flags is an agent skill from the React core repository, listed on skills.sh. It helps contributors work with React's feature flags. It explains the flag files: the default flags for the canary channel, with experimental overrides; the www fork with variant overrides; the React Native fork; and the test renderer. It covers gating tests, including the @gate pragma at test level for features that are unavailable without a flag. The skill applies when feature flag tests fail, when flags need updating, when someone needs to understand @gate pragmas, when channel-specific test failures need debugging, or when a new flag is added to React. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Flag files for each React channel
- @gate pragma for tests
- Channel-specific failure debugging
- Adding new flags
Ratings & Reviews
No ratings yet
Be the first to rate feature-flags.
People also visit

extract-errors
Adding new error messages to React, or seeing "unknown error code" warnings

webapp-testing
Test local web applications using Playwright for UI verification and debugging

migrate-to-shoehorn
Migrate test files from `as` type assertions to @total-typescript/shoehorn
feature-flags FAQ
What does the feature-flags skill do?
It guides contributors through React's feature flag files, the @gate test pragma and channel-specific test failures.
What is the @gate pragma?
A test-level marker used when a feature is entirely unavailable without its flag.
Which channels does it cover?
Canary defaults, www, React Native and the test renderer, through their flag files.
How do I install it?
Run: npx skills add https://github.com/react/react --skill feature-flags
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best feature-flags alternatives?
Popular alternatives to feature-flags include test, react-testing and extract-errors. See all feature-flags alternatives
