frontend-dev-guidelines

Guide React/TypeScript frontend development with MUI v7 and TanStack Router.

4|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/weirdgme/claude-code-infrastructure-showcase --skill frontend-dev-guidelines-weirdgme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/weirdgme/claude-code-infrastructure-showcase/tree/main/.claude/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/weirdgme/claude-code-infrastructure-showcase --skill frontend-dev-guidelines-weirdgme

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Frontend development can be complex, inconsistent, and prone to performance issues. This Skill provides a comprehensive, opinionated guide to modern React/TypeScript patterns, ensuring developers build high-quality, performant, and maintainable applications efficiently. It eliminates guesswork, reduces the learning curve for best practices, and promotes consistency across teams.

Core Features & Use Cases

  • Modern React Patterns: Guides on Suspense-based data fetching, lazy loading, and component organization to optimize performance and user experience.
  • Comprehensive Best Practices: Covers everything from MUI v7 styling and TanStack Router to TypeScript standards and performance optimization, ensuring consistent, high-quality code.
  • Use Case: When starting a new React/TypeScript project or refactoring an existing one, use this Skill to quickly establish a robust architecture, implement efficient data fetching, and ensure all team members follow the same high-quality coding standards, saving countless hours in code reviews and refactoring.

Quick Start

Help me create a new React component following the modern patterns, including lazy loading and useSuspenseQuery for data fetching. Provide a code template.

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 for performance and maintainability?

Modern React projects benefit from organizing code into features/ and components/ directories, using TypeScript for type safety, and following standardized patterns for styling, routing, and data fetching. This Skill provides an opinionated guide covering MUI v7 styling, TanStack Router, and component organization best practices to establish a robust, consistent architecture across your team.

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

Suspense-based data fetching with useSuspenseQuery from TanStack Query eliminates callback-based patterns and enables cleaner component logic. This Skill covers implementing Suspense for lazy loading, streaming data, and error boundaries, ensuring your React app renders efficiently without blocking the UI.

How do I create typed React components with TypeScript best practices?

Use React.FC with explicit prop typing and Zod for validation to catch errors at compile time and runtime. This Skill guides you through typed prop patterns, component structure, and file naming conventions that reduce bugs and make refactoring safer across your frontend codebase.

Can I use TanStack Router and React Query together in a modern React app?

Yes. TanStack Router and TanStack Query (React Query) work synergistically for routing and data fetching. This Skill shows how to integrate both with TypeScript, lazy-loaded components, and Suspense to build fast, maintainable React applications with minimal boilerplate.

What frontend patterns prevent performance issues and code review bottlenecks?

Lazy loading, Suspense-based data fetching, consistent file structure, and explicit TypeScript typing reduce refactoring cycles and review friction. This Skill consolidates these patterns into a unified guide so teams follow the same high-quality standards from day one.

Does this guide work for existing React projects or only new ones?

This Skill applies to both new projects and refactoring efforts. Whether starting fresh or upgrading an existing React/TypeScript app, you can adopt its patterns incrementally—component organization, MUI v7 styling, TanStack tooling, and Suspense-based data fetching—to gradually improve code quality and performance.