react-best-practices

Review React and Next.js TSX components for hooks, accessibility, performance, and TypeScript issues.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/rauell1/safaricharge --skill react-best-practices-rauell1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/rauell1/safaricharge/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/rauell1/safaricharge --skill react-best-practices-rauell1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers review React and Next.js components for common quality issues, reducing bugs, re-renders, accessibility gaps, and TypeScript mistakes during implementation or refactoring.

Core Features & Use Cases

  • Component Structure Review: Checks component organization, props shape, and state boundaries for maintainability.
  • Hooks and Render Safety: Flags risky hook usage, unstable dependencies, and avoidable re-render patterns.
  • Accessibility and Performance: Highlights keyboard, semantic, and rendering concerns that affect user experience.
  • Use Case: After editing several TSX files, use this Skill to quickly audit the changes before merging and catch regressions that are easy to miss in manual review.

Quick Start

Use the react-best-practices skill to review the edited React or Next.js TSX components for hooks, accessibility, performance, and TypeScript issues.

Frequently Asked Questions about react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review React components for hooks, performance, and accessibility issues?

To review React components for hooks, performance, and accessibility issues, audit the TSX files for risky hook usage, unstable dependencies, semantic markup gaps, and avoidable re-render patterns to ensure render safety and structural quality.

What is the best way to check Next.js TSX components for TypeScript mistakes before merging?

The best way to check Next.js TSX components for TypeScript mistakes is to run a post-edit quality audit that flags structural organization problems, incorrect props shapes, and modern TypeScript errors aligned with Vercel-native development.

Can I use this automated code review to catch React re-render and state boundary regressions?

Yes, you can use this automated code review to catch React re-render and state boundary regressions by analyzing component organization and state boundaries during implementation or refactoring to identify structural maintainability issues.

Does this React review process work with standard app and components directory patterns?

Yes, this React review process works with standard app and components directory patterns, applying semantic markup checks, keyboard accessibility highlights, and hooks-safe patterns across common Next.js and React project structures.

Why does my React component review still show accessibility and render optimization warnings?

Your React component review may still show accessibility and render optimization warnings because the component contains semantic markup gaps, keyboard accessibility concerns, or unstable hook dependencies that require refactoring for full compliance.

When do I need to run a TypeScript and hooks safety audit on my React components?

You need to run a TypeScript and hooks safety audit on your React components after editing several TSX files, before merging, to quickly catch regressions like avoidable re-renders, accessibility gaps, and TypeScript mistakes that are easy to miss manually.