flow

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

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

Skill251k starsChanged 9 months ago

What's in it

  1. Flow Type Checking
  2. Renderers
  3. Instructions
  4. Common Mistakes
---
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

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
  • flags.claude/skills/flags/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.

No reports yet. Be the first to say whether it worked.

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.