frontend-dev-guidelines

Automates frontend development across React 18+, Vue 3, Svelte 5, and Angular frameworks.

10|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/samhvw8/dot-claude --skill frontend-dev-guidelines-samhvw8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/samhvw8/dot-claude/tree/main/skills/frontend-development
Command: npx skills add https://github.com/samhvw8/dot-claude --skill frontend-dev-guidelines-samhvw8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Modern React development can be complex, leading to inconsistent code, performance bottlenecks, and difficult-to-maintain applications. This skill provides comprehensive guidelines and patterns to build high-quality, performant, and scalable React/TypeScript frontend applications, ensuring consistency and reducing development friction.

Core Features & Use Cases

  • Suspense-First Data Fetching: Implement useSuspenseQuery and Suspense boundaries to eliminate loading spinners and prevent layout shifts, significantly improving user experience and perceived performance.
  • Optimized Performance: Leverage React.lazy(), useMemo, useCallback, and React.memo to ensure fast initial loads, smooth interactions, and efficient component rendering.
  • Structured Codebase: Organize features with clear api/, components/, hooks/, and types/ directories, promoting maintainability, team collaboration, and easier navigation.
  • Use Case: You're building a new dashboard feature. This skill guides you through setting up the feature directory, implementing data fetching with useSuspenseQuery, styling with MUI v7, and ensuring lazy loading for optimal performance, all while adhering to TypeScript best practices.

Quick Start

I need to create a new React component that fetches user data. Provide the template for a modern component using 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 implement Suspense-based data fetching in React to eliminate loading spinners?

Suspense-based data fetching uses `useSuspenseQuery` from TanStack Query to handle data loading within React's Suspense boundaries. This approach prevents layout shifts and eliminates manual loading spinners by letting components declare their data dependencies upfront, improving perceived performance and user experience.

What's the best way to structure a React TypeScript project for maintainability and team collaboration?

Organize your React TypeScript codebase into feature directories with clear `api/`, `components/`, `hooks/`, and `types/` subdirectories. This structured layout promotes maintainability, simplifies navigation, reduces naming conflicts, and enables team members to locate and modify code consistently across the project.

How do I optimize React component performance with lazy loading and memoization?

Optimize React performance by combining `React.lazy()` for code splitting, `useMemo` and `useCallback` for expensive computations, and `React.memo` for preventing unnecessary re-renders. These techniques ensure fast initial loads, smooth interactions, and efficient rendering without performance degradation.

Can I apply these React guidelines to Vue 3, Svelte 5, or Angular projects?

Yes, this guidance covers cross-framework frontend development patterns applicable to React 18+, Vue 3, Svelte 5, and Angular. Core principles like component patterns, state management, performance optimization, and TypeScript integration translate across frameworks for consistent, scalable development.

How do I style components with MUI v7 while maintaining TypeScript best practices?

MUI v7 integrates with TypeScript to provide typed styling through the sx prop and makeStyles API. Combine MUI components with TypeScript interfaces for props, use theme customization for consistency, and leverage alias imports to organize style dependencies cleanly alongside component logic.

What should I consider when migrating existing React code to follow these modern patterns?

Migration involves refactoring data fetching to `useSuspenseQuery`, organizing code into feature directories, adding TypeScript types, implementing lazy loading, and adopting centralized API services. Plan incrementally by migrating one feature at a time to avoid breaking changes and ensure smooth adoption of new patterns.