flow

react/react · Agent Skill

使用 Flow 检查 React 代码中的类型,帮助识别和修复类型错误。

前往安裝 ↓

安裝選項

預設為含檢閱步驟的提示。您可以切換到直接指令。

透過 Claude 或 Codex 安裝

複製提示,貼入 Claude、Codex 或其他助手,它會檢視技能頁面並安裝。

I'd like to install this Claude Code skill:
https://github.com/react/react/tree/main/.claude/skills/flow

Please review the SKILL.md file, verify the skill is legitimate, then copy the skill folder into .claude/skills/ of my project.

技能檔案

1 個檔案 下載 ZIP

安裝前請先檢視 SKILL.md 與相關檔案。點擊檔案即可預覽。

SKILL.md 內容

作者原文 · 唯讀

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