frontend-dev-guidelines

Provide React/TypeScript frontend development guidelines with TanStack Query, Router, and MUI v7.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thomas0369/claude_ai --skill frontend-dev-guidelines-thomas0369
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/thomas0369/claude_ai/tree/main/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/thomas0369/claude_ai --skill frontend-dev-guidelines-thomas0369

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react, @mui/material, @tanstack/react-query, @tanstack/react-router, zod, react-hook-form, use-debounce, and includes references (resource) components.

What problem does it solve?

Frontend development can be complex, inconsistent, and error-prone, leading to slow development, performance issues, and difficult maintenance. This Skill standardizes modern React/TypeScript practices, ensuring consistency and quality across your applications.

Core Features & Use Cases

  • Standardized Development: Enforces modern React/TypeScript patterns including Suspense, lazy loading, TanStack Query/Router, and MUI v7 styling for consistent, high-quality code.
  • Performance Optimization: Guides on useMemo, useCallback, React.memo, and debouncing to prevent unnecessary re-renders and memory leaks, ensuring fast and responsive user interfaces.
  • Code Organization: Provides clear guidelines for structuring features/ vs components/, API service layers, and import aliases for maintainable and scalable codebases.
  • Use Case: When starting a new React/TypeScript project or refactoring an existing one, use this skill to ensure all new components, data fetching, routing, and styling adhere to the latest best practices, saving review time and preventing common errors.

Quick Start

Help me create a new React component following the frontend development guidelines. Include lazy loading, Suspense, and useSuspenseQuery for data fetching.

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/TypeScript project with best practices for performance and maintainability?

Organize your React/TypeScript project using a features-based structure that separates feature directories from shared components, implements Suspense-based data fetching with useSuspenseQuery, applies MUI v7 styling via sx props, and uses TanStack Query and Router for data and navigation management to ensure consistency and scalability.

What's the best way to implement data fetching in React with TanStack Query and Suspense?

Use useSuspenseQuery for Suspense-integrated data fetching in React, pair it with React.lazy and SuspenseLoader for lazy-loaded components, and follow TypeScript best practices with React.FC typing to enable automatic loading states and error boundaries without manual loading logic.

How do I prevent unnecessary re-renders and performance issues in React components?

Apply React performance patterns including useMemo, useCallback, and React.memo to memoize values and functions, implement debouncing via use-debounce for input handling, and follow guidelines on component composition to eliminate unnecessary renders and memory leaks.

Can I use MUI v7 with TanStack Router and TanStack Query in the same React application?

Yes, this Skill guides integrating MUI v7 styling with sx configuration, TanStack Query for data management, and TanStack Router for navigation within a single React/TypeScript application, ensuring all three work cohesively in a features-based structure.

What TypeScript patterns should I follow when building React components with hooks?

Use React.FC with TypeScript for type-safe component declarations, apply strict TypeScript typing to hooks like useSuspenseQuery, integrate react-hook-form with zod validation for form handling, and follow feature-based organization to maintain type safety across your codebase.

How do I set up routing in a React application using TanStack Router?

Configure TanStack Router following this Skill's guidelines for route structure, combine it with lazy loading and Suspense for code splitting, and organize routes within a features-based directory structure to keep routing logic modular and maintainable.