react-my-patterns

Enforce React conventions for component design, state management, styling, and accessibility.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mnadalc/dotfiles --skill react-my-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-my-patterns
Source: https://github.com/mnadalc/dotfiles/tree/main/.ai/skills/react-my-patterns
Command: npx skills add https://github.com/mnadalc/dotfiles --skill react-my-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers write more maintainable, scalable, and convention-aligned React code by providing clear guidelines and best practices for component structure, state management, styling, and more.

Core Features & Use Cases

  • Component Patterns: Enforces patterns like Compound Components and State Setter Props for better composability and prop management.
  • State Management: Guides users on the priority order for state management solutions, from URL state to external libraries.
  • Styling & Accessibility: Promotes efficient styling with Tailwind CSS and emphasizes web platform-first approaches for accessibility.
  • Use Case: When building a new React feature, consult this Skill to ensure components are structured using the compound pattern, state is managed efficiently, and accessibility best practices are followed from the start.

Quick Start

Use the react-my-patterns skill to refactor a React component to follow the compound component pattern.

Frequently Asked Questions about react-my-patterns

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

FAQPage Schema
What are the best practices for React component design and state management?

React best practices for component design involve using compound components and state setter props, while state management follows a priority order from URL state to external libraries to ensure maintainable and scalable code.

How do I refactor a React component to use the compound component pattern?

To refactor a React component using the compound component pattern, structure your parent component to manage shared state and expose child components statically, ensuring better composability and simplified prop management across your React feature.

What is the recommended priority order for React state management?

The recommended React state management priority starts with URL state, moves to React context or local state, and finally uses external state management libraries, ensuring efficient and scalable state handling across your application.

Does this React convention guidance include accessibility and styling best practices?

Yes, this React convention guidance includes accessibility and styling best practices by promoting web platform-first approaches for accessibility and efficient styling with Tailwind CSS to ensure components are accessible and maintainable.

Why should I use compound components in React?

You should use compound components in React to achieve better composability and prop management, allowing you to build more maintainable and convention-aligned component structures that scale effectively across different projects.

How do I maintain code consistency across multiple React projects?

Maintain code consistency across multiple React projects by enforcing standardized patterns and best practices for component structure, state management priority, styling, and accessibility, ensuring all teams follow the same conventions.