About flow
A skill for running Flow type checks on React code. Contributors can choose a DOM or React Native renderer and report errors with file locations.
Key features
- 01Choose a DOM or React Native renderer
- 02Run type checks with yarn flow
- 03Run comprehensive checks with yarn flow-ci
- 04Report type errors with file locations
Use cases
- 01Check types in DOM code
- 02Validate browser-specific DOM code
- 03Check React Native or Fabric code
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ react/ react --skill flowAfter installing, type/flowin Claude Code to confirm it loaded.
Details
From the project READMEFlow Type Checking
Arguments:
- $ARGUMENTS: Renderer to check (default: dom-node)
Renderers
| Renderer | When to Use |
|---|---|
dom-node | Default, recommended for most changes |
dom-browser | Browser-specific DOM code |
native | React Native |
fabric | React Native Fabric |
Instructions
- Run
yarn flow $ARGUMENTS(usedom-nodeif no argument) - Report type errors with file locations
- For comprehensive checking (slow), use
yarn flow-ci
Common Mistakes
- Running without a renderer - Always specify or use default
dom-node - Ignoring suppressions - Check if
$FlowFixMecomments are masking real issues - Missing type imports - Ensure types are imported from the correct package
Comments
Markdown supported