react-best-practices
Pass
Audited by Gen Agent Trust Hub on Mar 6, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill is a collection of 45 performance optimization rules designed to guide AI agents in writing efficient React code. All code examples demonstrate standard architectural patterns for modern web development.
- [SAFE]: The skill includes explicit security-focused guidelines. Rule 3.1 correctly identifies that Server Actions are public endpoints and must be authenticated and authorized internally. Rule 7.9 demonstrates the use of an
escapeRegexutility when creating dynamic regular expressions to prevent injection or Regular Expression Denial of Service (ReDoS) attacks. - [SAFE]: External resource references, such as the
better-allpackage and Next.js documentation, originate from trusted organizations (Vercel) or well-known open-source contributors associated with the React ecosystem. - [SAFE]: The use of
dangerouslySetInnerHTMLin Rule 6.5 is presented as a specific technical pattern to prevent hydration flickering. In the context of the provided static template, it does not pose a security risk as it does not incorporate unsanitized user input.
Audit Metadata