react-engineering

Enforce React component architecture, state boundaries, and UI code standards.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/arvindbattula/my-agent-config --skill react-engineering-arvindbattula
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-engineering
Source: https://github.com/arvindbattula/my-agent-config/tree/main/skills/react-engineering
Command: npx skills add https://github.com/arvindbattula/my-agent-config --skill react-engineering-arvindbattula

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fragmented React guidance leads to inconsistent architecture, scattered state management practices, and UI code that's hard to review or extend. This skill provides a cohesive blueprint for component structure, state boundaries, and quality gates to streamline development across teams.

Core Features & Use Cases

  • One-component-per-file discipline to keep code modular and navigable.
  • Clear rules for component size, data fetching separation, and explicit loading, empty, and error states.
  • State management decision tree to guide when to use local state, context, or a global store, plus guidance for accessibility and testing.
  • Use Case: when starting a new React feature, apply these patterns to design architecture, write maintainable components, and perform effective UI code reviews.

Quick Start

Apply the component-architecture guidelines to a new React feature and perform a rapid review of existing components against the rules.

Frequently Asked Questions about react-engineering

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

FAQPage Schema
How do I structure React components to avoid prop drilling and keep files maintainable?

Maintainable React component architecture enforces one-component-per-file discipline, separates data fetching from UI logic, and limits prop drilling by defining clear state management boundaries. This approach keeps code modular, navigable, and easier to review across teams.

What is the best way to decide between local state, context, or a global store in React?

A state management decision tree guides React developers on when to use local state, context, or a global store. It evaluates component boundaries and data flow requirements to establish clear separation of concerns and prevent scattered state practices.

How do I perform a UI code review for a React project?

A React UI code review checks component structure guidelines, loading state coverage, empty state handling, and error state boundaries. It audits existing codebases against one-component-per-file rules and separation of concerns to ensure design quality.

When should I use explicit loading and empty states in React components?

Explicit loading, empty, and error states are required in React components whenever data fetching occurs. Defining these states during component architecture design ensures complete UI state coverage and prevents unhandled rendering scenarios.

Does this React architecture guidance work for auditing existing codebases?

Yes, these React component architecture rules apply to performing design-quality audits on existing codebases. You can review existing components against size limits, state boundaries, and separation of concerns rules to identify structural inconsistencies.

Why does my React feature architecture become hard to extend over time?

React feature architecture becomes hard to extend due to fragmented guidance, inconsistent component structure, and scattered state management practices. Applying a cohesive blueprint with quality gates and explicit state boundaries streamlines development and maintainability.