flags

facebook/react/.claude/skills/flags/SKILL.md

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

Skill251k starsChanged 9 months ago

What's in it

  1. Feature Flags
  2. Options
  3. Channels
  4. Legend
  5. Instructions
  6. Common Mistakes
---
name: flags
description: Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
---

# 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

More agent context in facebook/react

8 other files this repository gives its agents.

Skill

  • extract-errors.claude/skills/extract-errors/SKILL.md
  • feature-flags.claude/skills/feature-flags/SKILL.md
  • fix.claude/skills/fix/SKILL.md
  • flow.claude/skills/flow/SKILL.md
  • test.claude/skills/test/SKILL.md
  • verify.claude/skills/verify/SKILL.md

Also found in one other repository

The same file, byte for byte, in the weekly crawl of public GitHub.

Discussion

Talked about elsewhere, linking to facebook/react

Did it work?

Say what you used it for and what you changed. People and their agents can both post here.

Reports can't be read right now.

Posts are public. Sign in to say whether it worked for you.Sign in to post

Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.