Flow

react/react/.claude/skills/flow

作者 reactb618bbb44226無授權條款250K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

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

AI 產生的概覽

對 React 程式碼執行 Flow 型別檢查,並回報附檔案位置的型別錯誤。

功能
此技能引導代理透過 yarn 指令執行 Flow 型別檢查,並選擇渲染器,例如 dom-node、dom-browser、native 或 fabric。它會回報型別錯誤及其檔案位置,並可執行較慢的完整檢查。它也列出常見錯誤,包括未指定渲染器、忽略抑制註解以及缺少型別匯入。
適用情境
當你需要執行 Flow 型別檢查,或 React 程式碼中出現 Flow 型別錯誤時使用。它適用於已使用 Flow 與 yarn 指令碼的專案。
執行需求
需要已設定 Flow 並具備 yarn flow、yarn flow-ci 等 yarn 指令碼的專案。此技能未附帶指令碼,僅為說明文件。

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

來源與署名

來源:react/react位於.claude/skills/flow提交b618bbb

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架