flags — Claude Code skill: React flags and installation
This skill runs React's feature-flag command and explains the results. Use it to compare release channels when a feature behaves differently between them.
npx skills add react/react --skill flags -a claude-codeWhat flags does
On request, the skill runs yarn flags and explains the output. With no arguments, the command shows flags across all channels. Use --diff <ch1> <ch2> to compare two channels, --cleanup to group flags by cleanup status, or --csv to get CSV output.
The listed channels are www, www-modern, canary, next, experimental, rn, rn-fb, and rn-next. Pay attention to __VARIANT__ flags: in www, they are tested in both variants. That matters when investigating differences. Running the check requires the yarn flags command in the React project.
What it helps with
- show flags across all channels
- compare flag states between two channels
- group flags by cleanup status
- export the check results as CSV
- investigate why a flag behaves differently across channels
Example prompts for the agent
- Show the React feature flags across all channels.
- Compare flags in `canary` and `next` with `--diff`.
- Group flags by cleanup status and return the results as CSV.
How to install flags
1Skills CLI (Vercel)
npx skills add react/react --skill flags -a claude-code2Manually: put the files in place
~/.claude/skills/flags/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/flags/
1Skills CLI (Vercel)
npx skills add react/react --skill flags -a codex2Manually: put the files in place
.agents/skills/flags/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add react/react --skill flags -a cursor2Manually: put the files in place
.cursor/skills/flags/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install react/react flags2Manually: put the files in place
.github/skills/flags/SKILL.md1Skills CLI (Vercel)
npx skills add react/react --skill flags -a gemini-cli2Platform CLI
gemini skills install https://github.com/react/react --path .claude/skills/flagsManually: put the files in place
.devin/skills/flags/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add react/react --skill flags -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set4
The whole set →Similar
Questions about flags
How do I install flags in Claude Code?
Run npx skills add react/react --skill flags -a claude-code. The skill is installed at ~/.claude/skills/flags/SKILL.md.
What does the flags skill do?
It runs yarn flags to show React flag states, compare channels, or group flags by cleanup status.
How do I compare feature flags between channels?
Pass --diff <ch1> <ch2>, for example, ask it to compare canary and next. The skill highlights differences in the output.
Source text
SKILL.md · MIT
--- 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
© react · MIT · react/react