feature-arch

Define scalable React project structures by organizing code around features.

3|1|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/thongdn-it/react-agent-skills --skill feature-arch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-arch
Source: https://github.com/thongdn-it/react-agent-skills/tree/main/skills/feature-arch
Command: npx skills add https://github.com/thongdn-it/react-agent-skills --skill feature-arch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Organize complex React codebases by feature boundaries to improve scalability, team autonomy, and maintainability.

Core Features & Use Cases

  • Establish feature-based folders that group components, hooks, APIs, and tests together.
  • Enforce unidirectional imports, explicit contracts, and clear module boundaries to reduce cross-feature coupling.
  • Enable independent testing, deployment, and refactoring by making each feature self-contained.

Quick Start

Use the guidelines to structure new features under src/features, configure the app layer as the sole consumer, and expose a per-feature public API.

Frequently Asked Questions about feature-arch

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

FAQPage Schema
How do I organize a React project structure for scalability?

Organize your React project structure using feature-based folders that group components, hooks, APIs, and tests together. This enforces feature isolation and unidirectional imports, making each feature self-contained and improving team autonomy and maintainability.

What is feature-based architecture in React?

Feature-based architecture in React groups code around features rather than technical types. Each feature is self-contained, colocating related data fetching, UI, and state, and exposes a public API through a per-feature index to enforce explicit module boundaries.

How do I enforce module boundaries and unidirectional imports in React?

Enforce module boundaries and unidirectional imports by configuring the app layer as the sole consumer of features. Each feature exposes a public API via a per-feature index, reducing cross-feature coupling and ensuring explicit contracts across app layers.

Can I refactor an existing React codebase to use feature folders?

Yes, you can refactor an existing React codebase into feature folders. The skill guides both creation and refactor tasks to enforce feature isolation, requiring each feature to colocate related data fetching, UI, and state for independent testing and deployment.

Why should I group React components and hooks by feature instead of technical type?

Grouping React components and hooks by feature instead of technical type improves scalability and team autonomy. It enables independent testing, deployment, and refactoring by making each feature self-contained with clear module boundaries and explicit interfaces.

When do I need a per-feature public API in React?

You need a per-feature public API in React when establishing feature-based folders to ensure explicit contracts across app layers. Exposing an index per feature enforces unidirectional imports, reduces cross-feature coupling, and maintains feature isolation.