frontend-architecture

Guide scalable frontend architecture with component patterns and state management decisions.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/olli107x/claude-code-starter-kit --skill frontend-architecture-olli107x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-architecture
Source: https://github.com/olli107x/claude-code-starter-kit/tree/main/skills/development/frontend/frontend-architecture
Command: npx skills add https://github.com/olli107x/claude-code-starter-kit --skill frontend-architecture-olli107x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides systematic guidance for creating scalable, maintainable, and performant frontend architectures, addressing challenges in component organization, state management, and data flow.

Core Features & Use Cases

  • Component Patterns: Explains Container/Presentational, Compound Components, and Headless Component patterns with code examples.
  • State Management: Offers a decision tree and rules for choosing the right state management solution (local state, Context, global stores, server state).
  • Data Fetching: Details patterns like React Query, optimistic updates, and Server Components.
  • File Organization: Recommends feature-based structure and barrel exports.
  • Performance: Covers code splitting, memoization, and list virtualization.
  • Use Case: When starting a new React/Next.js project, use this Skill to establish a robust component hierarchy and decide on the optimal state management strategy to avoid future refactoring.

Quick Start

Review the component hierarchy patterns and state management decision tree to design a scalable frontend architecture.

Frequently Asked Questions about frontend-architecture

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

FAQPage Schema
How do I structure a scalable frontend architecture in React?

Structure a scalable frontend architecture using feature-based file organization and component patterns like Container/Presentational, Compound Components, and Headless Components to establish a robust hierarchy and isolate feature logic for maintainability.

What is the best way to manage state in a Next.js application?

Manage state in Next.js by applying a decision tree to select between local state, Context, global stores, and server state, ensuring the correct data fetching strategy is matched to your specific data flow requirements.

How does React Query handle data fetching and optimistic updates?

React Query handles data fetching by managing server state separately from client state, supporting optimistic updates to immediately reflect UI changes before server confirmation. This data fetching strategy ensures responsive interfaces while maintaining synchronization with the backend.

Can I use frontend component patterns like Compound Components with Vue?

Yes, component patterns like Compound Components and Headless Components can be applied to Vue projects. The Skill addresses state management decisions and architectural patterns for React, Next.js, and Vue projects to ensure scalable frontend architectures across frameworks.

What performance optimization techniques should I use for large frontend lists?

Use performance optimization techniques including code splitting, memoization, and list virtualization for large frontend lists. These methods reduce rendering overhead and improve application load times by only rendering visible items and splitting bundles.

When should I use barrel exports in frontend file organization?

Use barrel exports in frontend file organization when implementing a feature-based structure to create clean import paths across modules. This technique aggregates module exports, simplifying component hierarchy references and maintaining scalable architecture boundaries.