github avatar

React Audit Grep Patterns

If you're auditing a React codebase before upgrading to 18.3.1 or 19, this is your grep command reference library. It catalogs every scan pattern you need to find deprecated APIs, unsafe lifecycle methods, async setState patterns, and React 19 specific removals. The skill emphasizes not relying on memory for grep syntax, especially for tricky multi-line patterns that need context flags. It's organized into four reference files covering React 18 scans, React 19 scans, test-specific issues, and dependency conflicts. Essentially a cheat sheet to avoid fumbling with grep flags while running migration audits.

skills.sh installs
884
GitHub stars
41K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Frontend Development, Testing & QA, Git & Pull Requests, Documentation, AI & Agent Building, Rust
First seen
May 16, 2026

More from github/awesome-copilot

All 318
1mindrally avatarangularmindrally/skillsExpert in Angular TypeScript development with scalable, high-performance patterns852skills.sh installs
2wot-ui avatarwot-ui-unocss-preset-guidewot-ui/open-wot指导安装、配置并使用 @wot-ui/unocss-preset。Invoke when 用户询问该预设的接入、配置、使用示例或常见问题排查。848skills.sh installs
3bitjaru avatarss-componentbitjaru/styleseedGenerate a new UI component following the StyleSeed design conventions836skills.sh installs
4aradotso avatarjkvideo-bilibili-react-nativearadotso/trending-skillsjkvideo bilibili react native835skills.sh installs
5signerlabs avataradd-componentsignerlabs/shipswift-skillsAdd a SwiftUI component from ShipSwift recipes. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants 834skills.sh installs
6softaworks avatarbackend-to-frontend-handoff-docssoftaworks/agent-toolkitCreate API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'c821skills.sh installs