feature-flags — for Claude Code feature-flags, official, for Claude Code, ide skills, declarative feature flags, React testing, gatekeeper simulations, conditional debugging, feature flag management, React Native testing, Claude Code

v1.0.0

About this Skill

Perfect for React Development Agents needing advanced feature flag management capabilities. feature-flags is a skill for managing conditional feature testing in React applications using declarative flags and gatekeeper simulations.

Features

Implement conditional testing using @gate pragmas
Debug channel-specific test failures with flag state comparisons
Add new flags to React applications with variant simulations
Use gate() inline for assertion-level feature flagging

# Core Topics

facebook facebook
[244.2k]
[50857]
Updated: 3/26/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reviewed Landing Page Review Score: 10/11

Killer-Skills keeps this page indexable because it adds recommendation, limitations, and review signals beyond the upstream repository text.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review Locale and body language aligned
Review Score
10/11
Quality Score
71
Canonical Locale
en
Detected Body Locale
en

Perfect for React Development Agents needing advanced feature flag management capabilities. feature-flags is a skill for managing conditional feature testing in React applications using declarative flags and gatekeeper simulations.

Core Value

Empowers agents to manage and debug feature flags using @gate pragmas, __EXPERIMENTAL__ overrides, and __VARIANT__ overrides, streamlining the testing process for React applications with files like ReactFeatureFlags.js and ReactFeatureFlags.www.js.

Ideal Agent Persona

Perfect for React Development Agents needing advanced feature flag management capabilities.

Capabilities Granted for feature-flags

Debugging channel-specific test failures in React Native and www channels
Updating and adding new flags to React applications using flag files
Analyzing and understanding @gate pragmas for test-level gating
Resolving feature flag test failures and optimizing flag management

! Prerequisites & Limits

  • Requires knowledge of React and feature flag management
  • Limited to React applications with specific flag file structures
  • Needs access to packages/shared/ReactFeatureFlags.js and other flag files

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Curated Collection Review

Reviewed In Curated Collections

This section shows how Killer-Skills has already collected, reviewed, and maintained this skill inside first-party curated paths. For operators and crawlers alike, this is a stronger signal than treating the upstream README as the primary story.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is feature-flags?

Perfect for React Development Agents needing advanced feature flag management capabilities. feature-flags is a skill for managing conditional feature testing in React applications using declarative flags and gatekeeper simulations.

How do I install feature-flags?

Run the command: npx killer-skills add facebook/react/feature-flags. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for feature-flags?

Key use cases include: Debugging channel-specific test failures in React Native and www channels, Updating and adding new flags to React applications using flag files, Analyzing and understanding @gate pragmas for test-level gating, Resolving feature flag test failures and optimizing flag management.

Which IDEs are compatible with feature-flags?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for feature-flags?

Requires knowledge of React and feature flag management. Limited to React applications with specific flag file structures. Needs access to packages/shared/ReactFeatureFlags.js and other flag files.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add facebook/react/feature-flags. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use feature-flags immediately in the current project.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

feature-flags

Streamline feature testing with conditional flags. Discover how AI agent skills for Claude Code, Cursor, or Windsurf can optimize your React development...

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

React Feature Flags

Flag Files

FilePurpose
packages/shared/ReactFeatureFlags.jsDefault flags (canary), __EXPERIMENTAL__ overrides
packages/shared/forks/ReactFeatureFlags.www.jswww channel, __VARIANT__ overrides
packages/shared/forks/ReactFeatureFlags.native-fb.jsReact Native, __VARIANT__ overrides
packages/shared/forks/ReactFeatureFlags.test-renderer.jsTest renderer

Gating Tests

@gate pragma (test-level)

Use when the feature is completely unavailable without the flag:

javascript
1// @gate enableViewTransition 2it('supports view transitions', () => { 3 // This test only runs when enableViewTransition is true 4 // and is SKIPPED (not failed) when false 5});

gate() inline (assertion-level)

Use when the feature exists but behavior differs based on flag:

javascript
1it('renders component', async () => { 2 await act(() => root.render(<App />)); 3 4 if (gate(flags => flags.enableNewBehavior)) { 5 expect(container.textContent).toBe('new output'); 6 } else { 7 expect(container.textContent).toBe('legacy output'); 8 } 9});

Adding a New Flag

  1. Add to ReactFeatureFlags.js with default value
  2. Add to each fork file (*.www.js, *.native-fb.js, etc.)
  3. If it should vary in www/RN, set to __VARIANT__ in the fork file
  4. 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.

__VARIANT__ Flags (GKs)

Flags set to __VARIANT__ simulate gatekeepers - tested twice (true and false):

bash
1/test www <pattern> # __VARIANT__ = true 2/test www variant false <pattern> # __VARIANT__ = false

Debugging Channel-Specific Failures

  1. Run /flags --diff <channel1> <channel2> to compare values
  2. Check @gate conditions - test may be gated to specific channels
  3. Run /test <channel> <pattern> to isolate the failure
  4. Verify flag exists in all fork files if newly added

Common Mistakes

  • Forgetting both variants - Always test www AND www variant false for __VARIANT__ flags
  • Using @gate for behavior differences - Use inline gate() if both paths should run
  • Missing fork files - New flags must be added to ALL fork files, not just the main one
  • Wrong gate syntax - It's gate(flags => flags.name), not gate('name')

Related Skills

Looking for an alternative to feature-flags or another official skill for your workflow? Explore these related open-source skills.

View All

flags

Logo of facebook
facebook

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

244.2k
0
Developer

extract-errors

Logo of facebook
facebook

extract-errors is a React error handling skill that automates the process of extracting and assigning error codes, ensuring accurate and up-to-date error messages in React applications.

244.2k
0
Developer

fix

Logo of facebook
facebook

fix is a code optimization skill that automates formatting and linting using yarn prettier and linc.

244.2k
0
Developer

flow

Logo of facebook
facebook

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

244.2k
0
Developer