verify
作成者: facebook
Reactコントリビューション向けのプリコミット検証で、型チェックとテストを並行実行します。フォーマットとリンティングは逐次実行し、最初の失敗で停止して早期に問題を検出します。型チェックと2つのテストスイート(ソースとwww)をサブエージェントで並行実行し効率化します。実行するテストをフィルタリングするオプションのテストパターン引数を受け付けます。いずれかのステップが失敗した場合、詳細な失敗レポートと修正案を提供します。
npx skills add https://github.com/facebook/react --skill verifyVerification
Run all verification steps.
Arguments:
- $ARGUMENTS: Test pattern for the test step
Instructions
Run these first in sequence:
- Run
yarn prettier- format code (stop if fails) - Run
yarn linc- lint changed files (stop if fails)
Then run these with subagents in parallel:
- Use
/flowto type check (stop if fails) - Use
/testto test changes in source (stop if fails) - Use
/test wwwto test changes in www (stop if fails)
If all pass, show success summary. On failure, stop immediately and report the issue with suggested fixes.