react-component-design

Analyze React components to identify design rule violations and propose refactors.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/donghyun1998/eric-react-skills --skill react-component-design-donghyun1998
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-component-design
Source: https://github.com/donghyun1998/eric-react-skills/tree/main/skills/react-component-design
Command: npx skills add https://github.com/donghyun1998/eric-react-skills --skill react-component-design-donghyun1998

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React component design rules guide developers to write or review code by enforcing proper separation of concerns, architecture patterns, and readable JSX.

Core Features & Use Cases

  • Enforces single concern, top-level branching, Suspense/ErrorBoundary patterns, predictable props, and UI-to-structure alignment.
  • Supports clear guidelines for component design, custom hooks, and code-review workflows across typical React architectures.

Quick Start

Analyze a component to identify violations of the design rules and propose targeted refactors.

Frequently Asked Questions about react-component-design

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

FAQPage Schema
How do I apply React component design rules to improve modularity?

To apply React component design rules, analyze your codebase to enforce single concerns, top-level branching, and predictable props, which directly improves component modularity and readability.

What are the best practices for organizing JSX and custom hooks in React?

Best practices for organizing JSX and hooks involve aligning UI-to-structure and enforcing separation of concerns, ensuring custom hooks and component construction follow predictable, readable patterns.

How do I set up Suspense and ErrorBoundary patterns for React component loading?

Setting up Suspense boundaries and ErrorBoundary patterns involves organizing your React component loading and error handling logic to satisfy design rules for predictable UI behavior.

Can I use this approach for React code reviews and hook design?

Yes, you can use these React component design rules during code reviews to assess component construction and custom hook design, applying targeted refactors for better architecture.

How do I identify React architecture violations for targeted refactoring?

Identify React architecture violations by analyzing components against rules for single concerns and top-level branching, then proposing targeted refactors to realign UI-to-structure.