frontend-dev-guidelines

Codify React/TypeScript guidelines for components, data fetching, and routing.

5|3|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/PedroGiudice/Claude-Code-Projetos --skill frontend-dev-guidelines-pedrogiudice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/PedroGiudice/Claude-Code-Projetos/tree/main/.claude/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/PedroGiudice/Claude-Code-Projetos --skill frontend-dev-guidelines-pedrogiudice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Frontend development can be complex, inconsistent, and slow, leading to maintainability issues and poor user experience. This skill provides a comprehensive guide to modern React/TypeScript patterns, ensuring consistency, performance, and best practices across your applications.

Core Features & Use Cases

  • Modern React Patterns: Implement Suspense-based data fetching, lazy loading, and efficient component structures to create highly responsive user interfaces.
  • Optimized Performance: Leverage useMemo, useCallback, React.memo, and debouncing to prevent unnecessary re-renders and improve application responsiveness.
  • Structured Development: Follow clear guidelines for file organization (features vs. components), MUI v7 styling, TanStack Router, and TypeScript standards for maintainable and scalable codebases.
  • Use Case: When starting a new React feature, use this skill to get a checklist for component creation, data fetching with useSuspenseQuery, and proper file organization, ensuring your code is performant and maintainable from day one.

Quick Start

I need to create a new React component that fetches data. Provide a quick start checklist and a modern component template using useSuspenseQuery and SuspenseLoader.

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

Organize your React TypeScript codebase using feature-oriented file structure with dedicated feature folders, separate component directories, and strict typing conventions. This approach improves scalability, reduces merge conflicts, and ensures consistent patterns across components, pages, data fetching, styling, and routing layers.

How do I implement data fetching in React with Suspense and useSuspenseQuery?

Use Suspense-based data fetching by leveraging useSuspenseQuery from TanStack Query to handle asynchronous data loading with built-in error boundaries and loading states. This pattern eliminates callback hell, simplifies component logic, and provides automatic request management with proper TypeScript typing.

What's the best way to optimize React component performance and prevent unnecessary re-renders?

Apply React.memo, useMemo, and useCallback hooks alongside debouncing techniques to prevent unnecessary re-renders. Combined with Suspense-based lazy loading and proper component structure, these patterns significantly reduce computational overhead and improve application responsiveness.

How do I style components consistently in React with MUI v7 and TypeScript?

Use MUI v7's sx prop for component styling with full TypeScript support, maintaining consistent theming and responsive design patterns. This approach ensures type-safe styling, reduces CSS-in-JS boilerplate, and integrates seamlessly with your feature-oriented React architecture.

Can I use TanStack Router with React TypeScript for type-safe routing?

TanStack Router provides full TypeScript support for type-safe route definitions, navigation, and parameter passing in React applications. This eliminates routing-related runtime errors and integrates cleanly with your React component hierarchy and lazy-loaded features.

What guidelines should I follow when creating React components with modern patterns?

Follow a checklist covering component creation with useSuspenseQuery, proper file organization under feature folders, MUI v7 styling with sx, TanStack Router navigation, and strict TypeScript typing. These guidelines ensure consistency, performance, and maintainability from initial development.