facebook

flow

242,571
50,472
# Install this skill:
npx skills add facebook/react --skill "flow"

Install specific skill from multi-skill repository

# Description

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

# SKILL.md


name: flow
description: Use when you need to run Flow type checking, or when seeing Flow type errors in React code.


Flow 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

  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

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.