react-audit-grep-patterns
$
npx mdskill add github/awesome-copilot/react-audit-grep-patternsGenerate verified grep scan commands to audit React codebases for major version upgrades.
- Identifies deprecated APIs, unsafe lifecycle methods, and React 19 removals during migration.
- Provides comprehensive patterns for auditing React codebases, supporting both React 18.3.1 and React 19.
- Executes scans by providing specific, context-aware grep patterns for various code sections.
- Delivers structured command libraries, organized by target version and scan type, for direct execution.
SKILL.md
.github/skills/react-audit-grep-patternsView on GitHub ↗
--- name: react-audit-grep-patterns description: '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.' --- # 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"' ```
More from github/awesome-copilot
- acquire-codebase-knowledgeUse this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.
- acreadiness-assessRun the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when asked to assess, audit, or score the AI readiness of a repo.
- acreadiness-generate-instructionsGenerate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in the AI Tooling pillar.
- acreadiness-policyHelp the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.
- add-educational-comments'Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.'
- adobe-illustrator-scriptingWrite, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model, coordinate system, measurement units, export workflows, and scripting best practices.
- agent-governance|
- agent-owasp-compliance|
- agent-supply-chain|
- agentic-eval|