react-code-review-patterns

Apply React/TypeScript code-review checklists for components, hooks, and accessibility.

24|5|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/thapaliyabikendra/ai-artifacts --skill react-code-review-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-code-review-patterns
Source: https://github.com/thapaliyabikendra/ai-artifacts/tree/main/.claude/skills/react-code-review-patterns
Command: npx skills add https://github.com/thapaliyabikendra/ai-artifacts --skill react-code-review-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Checklists and patterns to guide code reviews for React/TypeScript projects, ensuring correctness, accessibility, performance, and maintainability.

Core Features & Use Cases

  • TypeScript Checklist: Explicit types, generics, null handling, type guards, API types, and enums.
  • React Components Checklist: Component type, props typing, default props, keys, and semantic structure.
  • Hooks Checklist: Rules, dependencies, cleanup, and custom hook usage.
  • State Management & API Patterns: Server vs client state, data fetching, and caching patterns.
  • Performance & Accessibility: Memoization, virtualization, semantic HTML, ARIA labels.
  • Testing & General: Test quality, code comments, and anti-patterns.

Quick Start

Use the checklists to review a React component file; consult the references/examples for concrete scenarios.

Frequently Asked Questions about react-code-review-patterns

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

FAQPage Schema
How do I structure React code reviews to catch TypeScript and accessibility issues?

Use checklists covering TypeScript type safety, React component patterns, hooks rules, and accessibility compliance. This Skill provides structured patterns for enforcing explicit types, validating hook dependencies, ensuring semantic HTML, and ARIA labels during reviews to maintain code quality across your team.

What TypeScript patterns should I enforce when reviewing React components?

Enforce explicit prop types over any, use proper generics for type safety, validate null handling with type guards, and define API types as enums. The Skill includes checklists for these patterns to ensure components remain maintainable and type-safe across your codebase.

How do I review React hooks to avoid common mistakes?

Validate hook rules compliance, check dependency arrays for completeness, ensure cleanup functions are defined, and confirm custom hooks follow naming conventions. This Skill provides a hooks checklist to catch issues like missing dependencies or incorrect hook ordering during code review.

Can I use these code review patterns for performance and accessibility audits?

Yes. The Skill includes patterns for memoization strategies, virtualization for large lists, semantic HTML structure, and ARIA label usage. Apply these checklists during reviews to identify performance bottlenecks and accessibility gaps before they reach production.

What's the best way to review state management and data fetching in React?

Distinguish between server and client state, validate data-fetching patterns, and check caching strategies. The Skill provides patterns to ensure your team follows consistent approaches to state management and API integration across React components.