React 升级代码扫描
原名:react-audit-grep-patterns
使用经过整理的检索模式发现 React 18 与 19 升级前的兼容风险。
中文 Skills 技能说明
适合 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 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.
上游 SKILL.md 主要章节(保留原文标题):
- Usage
- Base Patterns Used Across All Scans
使用边界
先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/react-audit-grep-patterns
适用范围
平台:linux、macos、windows;标签:测试与质量、React 升级代码扫描
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。