react-nx-patterns

Organize large-scale React and Next.js projects within Nx monorepos.

28|6|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/Hive-Academy/ptah-extension --skill react-nx-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-nx-patterns
Source: https://github.com/Hive-Academy/ptah-extension/tree/main/apps/ptah-extension-vscode/assets/plugins/ptah-react/skills/react-nx-patterns
Command: npx skills add https://github.com/Hive-Academy/ptah-extension --skill react-nx-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on structuring modern React and Next.js projects within Nx monorepos, enabling scalable, maintainable, and efficient development workflows.

Core Features & Use Cases

  • Standardized Architecture: Implements domain-based organization with clear separation of features, UI components, and data-access layers.
  • Component Patterns: Offers best practices for feature, UI, and server/client components, including data fetching and state management.
  • Use Case: When setting up a large Nx-based React project, use this Skill to organize code, enforce boundaries, and streamline development.

Quick Start

Create a new Nx workspace for React with Next.js, then add libraries for features, UI, and data access, following the provided commands and structure.

Frequently Asked Questions about react-nx-patterns

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

FAQPage Schema
How do I structure a large-scale React and Next.js project in an Nx monorepo?

Structure large-scale React and Next.js projects in an Nx monorepo using domain-based organization that separates features, UI components, and data-access layers to ensure scalable frontend development.

What are the best practices for organizing component patterns in an Nx workspace?

Organizing component patterns in an Nx workspace involves implementing distinct feature, UI, and server/client components, applying best practices for data fetching and state management to maintain clear boundaries.

How do I enforce module boundaries in an Nx workspace for React?

Enforce module boundaries in an Nx workspace for React by configuring workspace rules and library constraints, ensuring features and data-access layers remain decoupled for maintainable architecture.

How do I set up a new Nx workspace for React and Next.js?

Set up a new Nx workspace for React and Next.js by creating the workspace, then adding specific libraries for features, UI, and data access, following structured commands to streamline development.

Does this Nx architecture approach work for Next.js server and client components?

This Nx architecture approach works for Next.js server and client components by providing targeted patterns for data fetching and state management, ensuring clear separation of server-side and client-side logic.

When should I use a domain-based organization in an Nx monorepo?

Use a domain-based organization in an Nx monorepo when setting up large-scale projects, as it enforces clear separation of features and data-access layers to maintain scalable and efficient workflows.