frontend-dev-guidelines

Guide React/TypeScript frontend development with structured patterns for components, data, styling, routing, and performance.

Updated Feb 25, 2025
One-click install
npx skills add https://github.com/VuNguyenVietTien/task-scheduler --skill frontend-dev-guidelines-vunguyenviettien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/VuNguyenVietTien/task-scheduler/tree/main/.opencode/skills/frontend-development
Command: npx skills add https://github.com/VuNguyenVietTien/task-scheduler --skill frontend-dev-guidelines-vunguyenviettien

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines for developing, organizing, and styling React/TypeScript frontends, helping developers adopt best practices.

Core Features & Use Cases

  • Component Development: Guides on creating type-safe, lazy-loaded React components with Suspense boundaries.
  • State and Data Management: Instructions on fetching, caching, and updating data with TanStack Query.
  • Styling and Layout: Best practices for styling with MUI, responsive grid layouts, and theme integration.
  • Routing and Navigation: Folder-based routing using TanStack Router with lazy-loaded route components.
  • Performance Optimization: Techniques like memoization, debouncing, and code splitting to enhance app speed and responsiveness.
  • Error Handling & UX: Standardized loading states, error boundaries, and user notification methods.
  • Security & Safety: Guidance on secure code practices, preventing toxic code, and safe component architecture.

Quick Start

Use this skill to set up a new React component that fetches data with Suspense and styles it using MUI's sx prop.

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 React components with lazy loading and Suspense boundaries?

Structure React components with lazy loading by wrapping dynamic imports in Suspense boundaries to handle loading states. This approach enforces type-safe component creation while optimizing performance through code splitting.

What is the best way to fetch and cache data in a React TypeScript application?

Fetch and cache data in React TypeScript applications using TanStack Query patterns. This method provides structured instructions for fetching, caching, and updating data while maintaining type safety and scalable state management.

How do I set up folder-based routing with lazy-loaded components in React?

Set up folder-based routing using TanStack Router with lazy-loaded route components. This navigation approach supports scalable codebases by splitting route code to enhance application speed and responsiveness.

Can I use MUI styling and responsive grid layouts for React component development?

Use MUI styling with the sx prop and responsive grid layouts for React component development. This method integrates theme capabilities to enforce organization and maintainable user interface architecture.

What's the best way to optimize React frontend performance with memoization and code splitting?

Optimize React frontend performance using memoization, debouncing, and code splitting techniques. These practices enhance app speed and responsiveness while maintaining scalable, maintainable codebases.

Why does my React application need error boundaries and standardized loading states?

React applications need error boundaries and standardized loading states to ensure reliable user experience and error handling. This architecture prevents toxic code and supports safe component structures.