本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)40k · #7381

react-audit-grep-patterns

できること

このツールは、React のコードを新しいバージョン(18.3.1 または 19)に更新する前に確認するためのコマンド群です。調整が必要になりそうな箇所を探し出します。

使う場面

  • ✓React プロジェクトを更新する計画があるとき。
  • ✓古いコードが新しいバージョンでも動くかどうかを確かめたいとき。
  • ✓テストファイルの中で特定の問題を見つけたいとき。

スキルのリンク

https://github.com/github/awesome-copilot/blob/main/skills/react-audit-grep-patterns/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/react-audit-grep-patterns/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“React のコードを バージョン19 にアップグレードするため、監査するにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

「grep」というプログラムを使い、すべてのコードファイルから特定のパターンを検索します。古い関数や互換性の問題など、調べるべきパターンはあらかじめわかっているので、それらを見つけ出します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

React Audit Grep Patterns

Complete scan command library for React 18.3.1 and React 19 migration audits.

Usage

Read the relevant section for your target:

  • references/react18-scans.md - all scans for React 16/17 → 18.3.1 audit
  • references/react19-scans.md - all scans for React 18 → 19 audit
  • references/test-scans.md - test file specific scans (used by both auditors)
  • references/dep-scans.md - dependency and peer conflict scans

Base Patterns Used Across All Scans

# 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"'
よくある質問

「grep スキャン」とは何ですか?

多数のコードファイルの中から、特定の文字列を一度にまとめて検索する方法のことです。

更新の前にコードを確認する必要があるのはなぜですか?

新しいソフトウェアのバージョンでは、古い部分が変更されたり削除されたりすることがあります。対応しないと、コードが動かなくなる原因になります。

「API」とは何ですか?

React が提供している、コードの中で使える「命令」や「道具」のようなものです。新しいバージョンでは、一部が削除されたり変更されたりすることがあります。

詳細

作者による元の説明

Provides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever running a migration audit - for both the react18-auditor and react19-auditor agents. Contains every grep pattern needed to find deprecated APIs, removed APIs, unsafe lifecycle methods, batching vulnerabilities, test file issues, dependency confli

repo: github/awesome-copilot

人気

GitHubのスター
40k
ランキング
#7381
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル