React Gauntlet
Comprehensive review of React code for accessibility and performance best practices.
Setup
Load these skills before starting the review:
- •accessibility — WCAG 2.1 AA compliance checks
- •vercel-react-best-practices — React/Next.js performance optimization rules
Review Process
- •Identify the scope — the user may specify files, directories, or components to review. If not specified, find all JSX/TSX files in the codebase.
- •Load the accessibility skill and review the code against its checklist and critical rules.
- •Load the vercel-react-best-practices skill and review the code against its rule categories, prioritized by impact (waterfalls and bundle size first).
- •Report findings grouped by file, with each issue referencing the specific rule or WCAG criterion violated.
- •For each finding, include:
- •The file and line
- •The rule or criterion
- •A brief explanation of the issue
- •A suggested fix
Output Format
One line per issue, grouped by file. Omit files with no issues.
code
**<file path>** - [WCAG X.X.X] <issue> (line N) - [rule-name] <issue> (line N)
After outputting all results, ask the user if they'd like to fix the issues.