Verify

react/react/.claude/skills/verify

作者 reactb618bbb44226无许可证250K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

Use when you want to validate changes before committing, or when you need to check all React contribution requirements.

AI 生成的概览

按固定顺序执行格式化、代码检查、类型检查和测试,以在提交前验证改动。

功能
该技能定义了一套验证流程:先依次运行格式化和代码检查步骤,再通过子代理并行执行类型检查与测试。任一步骤失败即立即停止,并报告问题及建议的修复方式;全部通过则显示成功摘要。它产出的是通过或失败的验证报告,而不是代码改动。
适用场景
适用于在提交前验证改动,或需要检查全部 React 贡献要求时。
运行要求
需要 yarn 包管理器,并可使用项目中的 prettier 和 linc 脚本,以及子代理使用的 /flow 和 /test 命令。该技能不附带脚本,仅为说明文档。

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.

来源与署名

来源:react/react位于.claude/skills/verify提交b618bbb

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架