React Architecture
Use when the user asks about React project structure, feature-based folders, a React component that re-renders too often, how to structure state and custom hooks, error boundaries or the React Compiler. Produces a React 19 app architecture with component and hook conventions. Not for Next.js App Router (use react-nextjs) or picking a state library (use frontend-state-management).
Install
npx skills add j4flmao/agent-skills --skill react-architecturegit clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/react/architecture ~/.claude/skills/react-architecturePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# React Architecture
## Purpose
Organize React applications by feature, not by type. Each feature is a self-contained module with its own components, hooks, API calls, and types. No circular imports between features.
## Agent Protocol
### Trigger
Exact user phrases: "React structure", "React architecture", "React folder", "React component pattern", "React hooks architecture", "React clean arch", "feature-based React", "React project layout".
### Input Context
Before activating, verify:
- package.json has react dependency.
- Whether the project uses Vite, CRA, or custom setup.
### Output Artifact
No file output. Produces folder structure and code examples as text.
### Response Format
Folder structure:
```
src/
app/
features/{feature}/
api/, components/, hooks/, stores/, types/
shared/components/
```
Code: show component and hook definitions. No import statements.
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
### Completion Criteria
- [ ] Folder structure is feature-based (src/features/{feature}).
- [ ] Smart components fetch data and manage state. Dumb components receive props.
- [ ] Custom hooks encapsulate all stateful logic.
- [ ] Barrel exports (index.ts) exist only at feature boundaries, not in every folder.
- [ ] No data fetching in dumb/presentational components.
- [ ] Error boundaries wrap each feature route.
- [ ] Components are under 150 lines.Details
- Skill name
react-architecture- Repository
- j4flmao/agent-skills
- Path
skills/frontend/react/architecture/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the React Architecture skill do?
Use when the user asks about React project structure, feature-based folders, a React component that re-renders too often, how to structure state and custom hooks, error boundaries or the React Compiler. Produces a React 19 app architecture with component and hook conventions. Not for Next.js App Router (use react-nextjs) or picking a state library (use frontend-state-management).
How do I install the React Architecture skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill react-architecture. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is React Architecture popular?
It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.
Related skills
Agent Observability
45j4flmao/agent-skills
Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).
AI Agent Architectures
45j4flmao/agent-skills
Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).
AI Agent Core Loop
45j4flmao/agent-skills
Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).
React Fiber Architecture
45j4flmao/agent-skills
Use when the user asks about React Fiber, reconciliation, render vs commit phase, lanes, concurrent rendering, time slicing, the React scheduler or why a component rendered twice. Produces an explanation of reconciler internals to debug render behaviour. Not for app architecture (use react-architecture) or React Three Fiber (use web3d-webgl).
Preact
45j4flmao/agent-skills
Use when the user asks about Preact, Preact signals, preact/compat, Preact vs React, Preact SSR or cutting bundle size with a React-compatible library. Produces Preact components, signal-based state and compat aliasing. Not for React-specific architecture (use react-architecture).
React Nextjs
45j4flmao/agent-skills
Use when the user asks about Next.js, App Router, Server and Client Components, 'use client', Server Actions, layouts, loading.tsx/error.tsx, caching and revalidation, proxy/middleware or Next.js data fetching. Produces Next.js 15/16 App Router code and route structure. Not for render/caching internals or why a route is dynamic (use nextjs-internals).
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.