frontend-dev-guidelines

Standardize React/TypeScript frontend patterns with Suspense, MUI v7, and TanStack Router.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/vuminhieu/spexor-client --skill frontend-dev-guidelines-vuminhieu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/vuminhieu/spexor-client/tree/main/.agent/skills/skills/frontend-development
Command: npx skills add https://github.com/vuminhieu/spexor-client --skill frontend-dev-guidelines-vuminhieu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides frontend development guidelines for React/TypeScript applications to standardize patterns and best practices.

Core Features & Use Cases

  • Suspense-based data loading patterns: Standardizes usage of Suspense and useSuspenseQuery to simplify UI state and improve user experience.
  • Lazy loading & code-splitting: Recommendations for lazy loading heavy components and route-based code splitting.
  • File organization with features directory: Structured layout under features/ for domain-specific code and scalable architecture.
  • Styling with MUI v7 and sx prop: Consistent styling approach using sx with theme-aware enhancements.
  • Routing with TanStack Router: Folder-based routes with lazy-loaded pages and breadcrumb integration.
  • Performance optimization & TypeScript discipline: Guidelines to minimize re-renders, leverage memoization, and enforce strict TS practices.

Quick Start

To apply this guide, start by creating or updating a component or page following these patterns: define the component with React.FC and TypeScript, lazy-load heavy parts, wrap with a Suspense boundary, and fetch data with useSuspenseQuery.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
How do I structure a React project with a features directory?

Lazy loading in React splits code by dynamically importing heavy components and route-based segments. This pattern reduces initial bundle size and improves application performance by loading resources on demand.

What is the best way to handle data fetching with Suspense in React?

Data fetching with Suspense in React standardizes loading states by wrapping components in Suspense boundaries and using useSuspenseQuery. This simplifies UI state management and improves user experience during asynchronous operations.

How do I implement routing with TanStack Router and lazy loading?

Routing with TanStack Router uses folder-based routes to structure lazy-loaded pages and integrate breadcrumbs. This approach pairs route-based code splitting with file organization to optimize navigation performance.

Does this frontend guideline support styling with MUI v7 and the sx prop?

These frontend guidelines support MUI v7 styling by enforcing consistent usage of the sx prop with theme-aware enhancements. This ensures styling patterns remain uniform and maintainable across all components.

What TypeScript strict practices should I follow for React performance optimization?

TypeScript strict practices for React performance optimization involve defining components with React.FC, enforcing strict type standards, and leveraging memoization. These guidelines minimize unnecessary re-renders and ensure type safety.