mcpField
R
react-audit-grep-patterns

react-audit-grep-patterns

github.com/githubテスト・品質40.5k856 回インストール1 日前に更新
リポジトリ

react-audit-grep-patterns について

React Audit Grep Patternsは、React 18.3.1およびReact 19への移行を監査するコマンドライブラリです。フレームワークの変更、テストファイル、依存関係の競合を調べるスキャン資料を提供します。

主な機能

  1. 01React 16/17から18.3.1へのスキャンパターン
  2. 02React 18から19へのスキャンパターン
  3. 03テストファイル向けスキャン
  4. 04依存関係とpeer競合のスキャン

活用シーン

  1. 01React 18.3.1への更新前のコードベーススキャン
  2. 02React 18プロジェクトのReact 19移行監査
  3. 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.md
dep-scans.md
react19-scans.md
react18-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"'

コメント