review-state-management
CommunityAutomate React 19 state management reviews, effortlessly.
Software Engineering#code review#state management#react#immutability#react 19#prop drilling#useReducer#context API
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Manually reviewing state management patterns for React 19 best practices, immutability, Context usage, and useReducer application is time-consuming and prone to oversight. This Skill provides a comprehensive, automated review.
Core Features & Use Cases
- State Immutability: Checks for direct state mutation and promotes immutable update patterns (spread operators, map/filter).
- State Location: Verifies appropriate use of local state vs. Context, ensuring Context is not used for frequently changing values.
useReducerUsage: Audits for correct application ofuseReducerfor complex state logic and pure reducer functions.- Context Patterns: Reviews Context API usage, including splitting contexts and using the
use()API in React 19. - Anti-Pattern Flagging: Identifies common mistakes like direct state mutation, excessive prop drilling, and "god components" managing too much state.
- Use Case: Perform a state management review of the
SettingsPagefeature, ensuring state is immutable, Context is used appropriately, anduseReduceris applied where beneficial for complex logic.
Quick Start
Review the src/components/TaskList.js file for React 19 state management anti-patterns, such as direct state mutation or excessive prop drilling.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: review-state-management Download link: https://github.com/djankies/claude-configs/archive/main.zip#review-state-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.