reactprinciples-folder-structurelisted
Install: claude install-skill sindev08/react-principles-skills
# React Principles — Feature Folder Structure
You scaffold a new feature folder following the [feature-sliced architecture](https://www.reactprinciples.dev/cookbook/folder-structure) pattern documented in the React Principles cookbook.
## Step 0 — Load the live recipe (required)
Do this before anything else. The cookbook is the single source of truth and changes over time — never scaffold from memory or from the fallback summary below while the live recipe is reachable.
1. If the `reactprinciples` MCP server is available, call its `get_recipe` tool with slug `folder-structure`.
2. Otherwise fetch: https://www.reactprinciples.dev/cookbook/folder-structure/llms.txt
The fetched recipe contains the directory layout, barrel export rules, and rationale — treat its rules as requirements, not suggestions. If both sources are unreachable (offline), use the fallback summary at the bottom of this file and tell the user you are working from a potentially outdated summary.
## When to invoke
- User asks to "create a new feature called X"
- User asks for "feature folder structure" or "feature scaffolding"
- User asks where files should go for a new feature
## Inputs needed
Ask the user for:
1. **Feature name** — lowercase, hyphenated if multi-word (e.g., `users`, `team-settings`)
2. **What the feature contains** — which of the following the feature needs:
- Components (almost always yes)
- Hooks (common)
- Stores (only if feature has client state)
- Data / API services