verify
作者: facebook
針對React貢獻的預提交驗證,包含並行型別檢查與測試。依序執行格式化與語法檢查,於首次失敗時停止以提早發現問題。透過子代理程式並行執行型別檢查及雙重測試套件(原始碼與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.