New advertisers: 50% off your first month with code FIRSTMONTHSee slots
github avatar

React Audit Grep Patterns

Grep scan command library for auditing React codebases before React 18.3.1 or React 19 upgrades.

skills.sh installs
886
GitHub stars
41.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers scans for React 16/17 to 18.3.1, React 18 to 19, test files, and dependency conflicts across four reference files
  • Includes standard grep flags and reusable source-only and test-only include patterns shared by all scans
  • Provides multi-line async setState patterns that require context flags, so auditors avoid writing grep syntax from memory
  • Designed for the react18-auditor and react19-auditor agents when writing migration audit scan commands

Install

$ npx -y skills add github/awesome-copilot --skill react-audit-grep-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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"'

Details

Repository
github.com/github/awesome-copilot
Categories
Frontend & UI Code, Code Review & Quality
First seen
May 16, 2026

More from github/awesome-copilot

All 293

Similar to React Audit Grep Patterns

More Frontend & UI Code