mcpField
F
flow

flow

github.com/reactTesting & quality251.8k1.1k installsUpdated today
Repository

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

  1. 01Choose a DOM or React Native renderer
  2. 02Run type checks with yarn flow
  3. 03Run comprehensive checks with yarn flow-ci
  4. 04Report type errors with file locations

Use cases

  1. 01Check types in DOM code
  2. 02Validate browser-specific DOM code
  3. 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 flow

After installing, type/flowin Claude Code to confirm it loaded.

Details

From the project README

Flow Type Checking

Arguments:

  • $ARGUMENTS: Renderer to check (default: dom-node)

Renderers

RendererWhen to Use
dom-nodeDefault, recommended for most changes
dom-browserBrowser-specific DOM code
nativeReact Native
fabricReact Native Fabric

Instructions

  1. Run yarn flow $ARGUMENTS (use dom-node if no argument)
  2. Report type errors with file locations
  3. 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 $FlowFixMe comments are masking real issues
  • Missing type imports - Ensure types are imported from the correct package

Comments

Markdown supported