Back to Skills

flags

verified

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

View on GitHub

Repository
Verified Org

facebook/react
242.8kstars

.claude/skills/flags/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/facebook/react/blob/64b4605cb82367fa78a08b99bbee1c800e6af21a/.claude/skills/flags/SKILL.md -a claude-code --skill flags

Installation paths:

Claude
.claude/skills/flags/
Powered by add-skill CLI

Instructions

# 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

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
828 chars