frontend-dev-guidelines

Standardize React/TypeScript frontend development with modern patterns and file organization.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/mthienDev/cipher-talk --skill frontend-dev-guidelines-mthiendev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/mthienDev/cipher-talk/tree/main/.claude/skills/frontend-development
Command: npx skills add https://github.com/mthienDev/cipher-talk --skill frontend-dev-guidelines-mthiendev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines to prevent inconsistent, unoptimized, and hard-to-maintain React/TypeScript applications. It helps teams avoid technical debt and ensures efficient, standardized development practices for modern frontend projects.

Core Features & Use Cases

  • Modern React Patterns: Guides on Suspense-based data fetching, lazy loading, useSuspenseQuery, and proper component structuring.
  • Structured File Organization: Establishes clear features/ vs components/ distinctions and subdirectories for API, hooks, and types.
  • Performance & TypeScript Best Practices: Covers useMemo, useCallback, React.memo, debouncing, strict TypeScript standards, and type-safe styling with MUI v7.
  • Use Case: A team needs to standardize their React development. This skill provides a comprehensive guide for building new features, components, and data fetching logic, ensuring consistency and high performance.

Quick Start

Generate a new React component following the modern checklist, including lazy loading and useSuspenseQuery for data fetching.

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 to maintain consistency across components and features?

Establish a features-based file organization with clear distinctions between reusable components and feature-specific code. Organize each feature with dedicated subdirectories for API calls, custom hooks, types, and styling, ensuring all developers follow the same structure and naming conventions.

What's the best way to handle data fetching in modern React applications?

Use Suspense-based data fetching with `useSuspenseQuery` from TanStack Query for declarative async state management. This approach enables proper error boundaries, loading states, and lazy loading while keeping components clean and type-safe.

How do I optimize React component performance and prevent unnecessary re-renders?

Apply `useMemo`, `useCallback`, and `React.memo` strategically to memoize expensive computations and callbacks. Implement debouncing for event handlers and lazy load components with `React.lazy` to reduce bundle size and improve initial render performance.

Can I use Material-UI v7 with strict TypeScript for type-safe styling?

Yes. MUI v7 supports strict TypeScript practices for type-safe styling. Use MUI's theming and styling APIs with TypeScript to enforce type safety across your design system and component styling layer.

What TypeScript practices should I follow for React component development?

Use strict TypeScript settings for all React components and hooks. Define explicit prop types, return types, and generic constraints; avoid `any` types and leverage TypeScript's type inference to catch errors at compile time rather than runtime.

How do I set up routing and lazy loading for large React applications?

Use TanStack Router with code-splitting and lazy route loading to split your application into smaller chunks. Combine with `React.lazy` and Suspense boundaries to load route components on-demand and improve initial page load performance.