AGENT SKILL

flow

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

使用场景测试与质量
License 许可
Apache-2.0
最近更新
2026-04-25
Stars
★ 0
Forks
0

01 前言 Front Matter

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

02 资源文件 4

03 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

04 同仓库更多 Skills