frontend-dev-guidelines

Provide React/TypeScript frontend development guidelines covering Suspense, lazy loading, and TanStack Query.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/AndyAnh174/BanThuoc-SEO --skill frontend-dev-guidelines-andyanh174
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/AndyAnh174/BanThuoc-SEO/tree/main/.agent/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/AndyAnh174/BanThuoc-SEO --skill frontend-dev-guidelines-andyanh174

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of guidelines and patterns to ensure consistency, maintainability, and performance in modern React/TypeScript frontend development.

Core Features & Use Cases

  • Standardized Development: Enforces best practices for component structure, data fetching, styling, and routing.
  • Performance Optimization: Guides on using Suspense, lazy loading, and memoization to create fast, responsive UIs.
  • Use Case: When starting a new feature, consult this Skill for the correct way to structure directories, fetch data using useSuspenseQuery, and implement loading states with SuspenseLoader.

Quick Start

Use the frontend-dev-guidelines skill to create a new React component following the standard template.

Frequently Asked Questions about frontend-dev-guidelines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for React data fetching and loading states?

React performance optimization relies on Suspense for asynchronous loading states, lazy loading to split bundle code, and component memoization to prevent unnecessary re-renders. These practices collectively create fast, responsive user interfaces in modern React applications.

How do I structure files and directories for a modern React and TypeScript project?

To structure a React and TypeScript project, follow standardized file organization patterns that enforce consistency and maintainability across component structure, styling, and routing. This ensures directories are cleanly separated by feature and component type.

Does this frontend development guideline cover routing and styling with MUI v7?

Yes, the frontend development guidelines cover styling with MUI v7 and routing using TanStack Router. They provide standardized patterns to ensure your React application maintains consistency across both UI design and navigation logic.

When should I use Suspense and lazy loading in React frontend development?

You should use Suspense and lazy loading in React frontend development when you need to optimize performance by deferring component rendering until data or code is ready. This minimizes initial bundle size and improves application responsiveness.