frontend-dev-guidelines

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

15|27|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill frontend-dev-guidelines-kevinnguyen271090
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/kevinnguyen271090/claudekit-engineering/tree/main/frontend-development
Command: npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill frontend-dev-guidelines-kevinnguyen271090

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes and optimizes modern React/TypeScript development, eliminating inconsistent code, performance issues, and the steep learning curve for adopting new patterns. It ensures all frontend code adheres to high-quality, maintainable, and performant standards.

Core Features & Use Cases

  • Modern React Patterns: Guides on Suspense-based data fetching (useSuspenseQuery), lazy loading, and component organization to prevent layout shifts and improve UX.
  • Structured File Organization: Enforces a features/ directory structure with api/, components/, hooks/, helpers/, and types/ subdirectories for scalable codebases.
  • Styling & Routing Best Practices: Provides guidelines for MUI v7 styling (sx prop, responsive grids) and TanStack Router for type-safe, folder-based routing.
  • Use Case: A new team member needs to build a complex data table. This Skill provides a checklist for component creation, data fetching with useSuspenseQuery, and styling with MUI v7, ensuring their code integrates seamlessly and performs optimally.

Quick Start

Generate a new React component following the modern patterns, including data fetching with useSuspenseQuery and proper styling.

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 scalability?

Organize code using a features-based directory structure with `features/` containing subdirectories for `api/`, `components/`, `hooks/`, `helpers/`, and `types/`. This approach isolates functionality, improves maintainability, and scales as your codebase grows while supporting import aliases for cleaner imports.

What's the best way to fetch data in React without layout shifts?

Use `useSuspenseQuery` with React Suspense for declarative data fetching that prevents layout shifts and loading spinners. Combine with lazy loading via `React.lazy()` to defer component rendering until data arrives, improving perceived performance and user experience.

How do I style components consistently in MUI v7?

Use the `sx` prop for styling with MUI v7, which supports responsive grids and component-level customization. This approach ensures consistent styling across your application while maintaining type safety with TypeScript.

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

Yes, TanStack Router provides type-safe, folder-based routing that integrates seamlessly with TypeScript. It enables compile-time route validation and better IDE support compared to traditional React routing solutions.

What React component pattern works best with TypeScript?

Use `React.FC` (Functional Component) with TypeScript for strongly-typed component props and better IntelliSense. This pattern aligns with modern React best practices and ensures type safety throughout your component hierarchy.

Why organize frontend code by features instead of file type?

Feature-based organization co-locates related logic—components, hooks, types, and API calls—reducing imports across folders and making features self-contained. This structure simplifies refactoring, improves team collaboration, and reduces bugs from scattered dependencies.