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 從公開儲存庫中收錄這些內容。

檢舉或申請下架