react-best-practices

Guide enterprise React project setup with pnpm, Turborepo, and strict coding standards.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/aleeM42/crm-2jmcmedios --skill react-best-practices-aleem42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/aleeM42/crm-2jmcmedios/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/aleeM42/crm-2jmcmedios --skill react-best-practices-aleem42

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes rules (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of standards and best practices for developing React applications, ensuring consistency, maintainability, and quality across projects. It addresses common issues like inconsistent coding styles, poor project structure, and lack of standardized workflows.

Core Features & Use Cases

  • Standardized Tech Stack: Defines preferred libraries and versions for React, TypeScript, state management, testing, etc.
  • Monorepo Architecture: Guides the setup and structure of monorepos using pnpm and Turborepo.
  • Coding Standards: Enforces strict TypeScript, React component patterns, and specific library usage (Zustand, TanStack Query).
  • Git Conventions: Implements Conventional Commits for clear and consistent commit messages.
  • Testing Strategy: Outlines a robust testing approach with Vitest, Testing Library, and Playwright.
  • Documentation Management: Provides templates and guidelines for PRDs, HLDs, LLDs, and ADRs.
  • Use Case: When starting a new React project or onboarding a new developer, this Skill ensures everyone adheres to the same high standards, leading to a more robust and scalable codebase.

Quick Start

Use the react-best-practices skill to help me set up a new React project following all defined standards.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I structure an enterprise React monorepo using pnpm and Turborepo?

Structure an enterprise React monorepo by using pnpm workspaces and Turborepo to manage feature-based modules. This architecture isolates features into distinct packages, ensuring maintainable boundaries and scalable code organization across your applications.

What are the recommended coding standards for TypeScript and React in large projects?

Recommended coding standards enforce strict TypeScript usage and specific React component patterns. This standardization ensures type safety, consistent component architecture, and predictable behavior when managing state with Zustand or fetching server data with TanStack Query.

How do I set up a React testing strategy with Vitest and Playwright?

Set up a React testing strategy by using Vitest and Testing Library for component unit tests, alongside Playwright for end-to-end testing. This combination provides comprehensive execution coverage across both isolated UI logic and full user workflows.

Can I use my existing state management libraries with these React coding standards?

These React coding standards specifically dictate using Zustand for state management and TanStack Query for data fetching. To fully comply with the enterprise guidelines, you should transition your existing state libraries to these standardized solutions.

What documentation templates are needed for enterprise React development?

Enterprise React development requires standardized documentation templates for Product Requirement Documents, High-Level Designs, Low-Level Designs, and Architecture Decision Records. These templates ensure consistent technical communication and architectural tracking.