Coding & Refactoringlow risk

react-audit-grep-patterns

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 conflicts, and React 19 specific removals. Always use this skill when writing audit scan commands - do not rely on memory for grep syntax, especially for the multi-line async setState patterns which require context flags.

github/awesome-copilot·skills/react-audit-grep-patterns/SKILL.md
100/ 100质量分

导入这个 Skill

选择你的 coding agent,复制项目级或个人级安装命令。

固定到平台收录的 commit
导入当前项目.agents/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a codex -y
导入个人环境~/.agents/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a codex -g -y
手动放置目录.agents/skills/react-audit-grep-patternsOfficial docs ↗
导入当前项目.claude/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a claude-code -y
导入个人环境~/.claude/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a claude-code -g -y
手动放置目录.claude/skills/react-audit-grep-patternsOfficial docs ↗
导入当前项目.agents/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a github-copilot -y
导入个人环境~/.copilot/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a github-copilot -g -y
手动放置目录.agents/skills/react-audit-grep-patternsOfficial docs ↗
导入当前项目.agents/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a cursor -y
导入个人环境~/.cursor/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a cursor -g -y
手动放置目录.agents/skills/react-audit-grep-patternsOfficial docs ↗
导入当前项目.agents/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a gemini-cli -y
导入个人环境~/.gemini/skills/react-audit-grep-patterns
npx skills add https://github.com/github/awesome-copilot/tree/0aaced533251f5b86c69dfbc5e55db74c4b4d1af/skills/react-audit-grep-patterns -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/github/awesome-copilot.git --scope workspace --path skills/react-audit-grep-patterns
手动放置目录.agents/skills/react-audit-grep-patternsOfficial docs ↗
⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
# 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

```bash
# 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"'
```