verify

作者: facebook

对React贡献的预提交验证,包含并行类型检查与测试。按顺序运行格式化和代码检查,在首次失败时停止以尽早发现问题。使用子代理并行执行类型检查及双重测试套件(源码和www),提升效率。支持可选的测试模式参数以筛选运行的测试。当任何步骤失败时,提供详细的失败报告及建议修复方案。

npx skills add https://github.com/facebook/react --skill verify

Verification

Run all verification steps.

Arguments:

  • $ARGUMENTS: Test pattern for the test step

Instructions

Run these first in sequence:

  1. Run yarn prettier - format code (stop if fails)
  2. Run yarn linc - lint changed files (stop if fails)

Then run these with subagents in parallel:

  1. Use /flow to type check (stop if fails)
  2. Use /test to test changes in source (stop if fails)
  3. Use /test www to test changes in www (stop if fails)

If all pass, show success summary. On failure, stop immediately and report the issue with suggested fixes.