react-audit-grep-patterns について
React Audit Grep Patternsは、React 18.3.1およびReact 19への移行を監査するコマンドライブラリです。フレームワークの変更、テストファイル、依存関係の競合を調べるスキャン資料を提供します。
主な機能
- 01React 16/17から18.3.1へのスキャンパターン
- 02React 18から19へのスキャンパターン
- 03テストファイル向けスキャン
- 04依存関係とpeer競合のスキャン
活用シーン
- 01React 18.3.1への更新前のコードベーススキャン
- 02React 18プロジェクトのReact 19移行監査
- 03更新時のテストと依存関係の確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ github/ awesome-copilot --skill react-audit-grep-patternsインストール後、Claude Code で/react-audit-grep-patternsを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
references/test-scans.mddep-scans.mdreact19-scans.mdreact18-scans.md詳細
React 監査用 Grep パターン
React 18.3.1 および React 19 への移行監査に使えるスキャンコマンドの完全なライブラリです。
使い方
対象に応じて、該当するセクションを参照してください。
references/react18-scans.md- React 16/17 → 18.3.1 の監査用スキャン一式references/react19-scans.md- React 18 → 19 の監査用スキャン一式references/test-scans.md- テストファイル固有のスキャン(両方の監査で使用)references/dep-scans.md- 依存関係とピア競合のスキャン
すべてのスキャンで使われる基本パターン
# Standard flags used throughout:
# -r = recursive
# -n = show line numbers
# -l = show filenames only (for counting affected files)
# --include="*.js" --include="*.jsx" = JS/JSX files only
# | grep -v "\.test\.\|\.spec\.\|__tests__" = exclude test files
# | grep -v "node_modules" = safety (usually handled by not scanning node_modules)
# 2>/dev/null = suppress "no files found" errors
# Source files only (exclude tests):
SRC_FLAGS='--include="*.js" --include="*.jsx"'
EXCLUDE_TESTS='grep -v "\.test\.\|\.spec\.\|__tests__"'
# Test files only:
TEST_FLAGS='--include="*.test.js" --include="*.test.jsx" --include="*.spec.js" --include="*.spec.jsx"'
コメント
Markdown 対応