frontend-dev-guidelines

Codify React/TypeScript frontend practices for data fetching, routing, and styling.

1|1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/SkogAI/skillsandknowledge --skill frontend-dev-guidelines-skogai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/SkogAI/skillsandknowledge/tree/main/.skogix/infrastructure/.claude/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/SkogAI/skillsandknowledge --skill frontend-dev-guidelines-skogai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies frontend best practices for React/TypeScript projects.

It covers data fetching, code-splitting, routing, styling, and project structure for component development, page composition, and feature organization.

Core Features & Use Cases

  • Suspense-based data fetching: encourage useSuspenseQuery and suspense boundaries to simplify loading states.
  • Lazy loading & code-splitting: promote React.lazy and Suspense boundaries for heavy routes/components.
  • Project structure: organize under features/ and components/ with clear subdirectories for API, hooks, components, and types.
  • Styling with MUI v7: use the sx prop for consistent styling and proper Grid usage.
  • Routing with TanStack Router: folder-based routes and createFileRoute patterns.
  • Performance & TypeScript discipline: emphasize memoization, strict types, and consistent import aliases.

Quick Start

Start by aligning new components and pages with the guidelines: wrap heavy UI with SuspenseLoader and adopt useSuspenseQuery for data, organize code under features/ and components/, and apply MUI v7 styling and TanStack Router patterns.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
What is the best way to structure a React and TypeScript project for component development and feature organization?

The best way to structure React and TypeScript projects is organizing code under features/ and components/ directories with clear subdirectories for API, hooks, components, and types. This enforces strict TypeScript conventions and consistent import aliases for scalable feature organization.

How do I handle data fetching and loading states in React using Suspense?

Handle data fetching in React by implementing useSuspenseQuery alongside suspense boundaries to simplify loading states. This approach wraps heavy UI components with SuspenseLoader to manage asynchronous data fetching without manual loading state tracking.

How do I implement code-splitting and lazy loading for heavy routes in a React application?

Implement code-splitting by using React.lazy and Suspense boundaries to lazy load heavy routes and components. This promotes performance optimization by wrapping dynamically imported UI sections with SuspenseLoader to defer loading until needed.

Does this frontend guideline support TanStack Router for folder-based routing?

Yes, these frontend guidelines support TanStack Router by enforcing folder-based routes and createFileRoute patterns. This routing approach integrates with the React and TypeScript project structure to manage page composition effectively.

How do I apply consistent styling in React using MUI v7?

Apply consistent styling in React using MUI v7 by utilizing the sx prop for styling and ensuring proper Grid usage. This enforces a unified styling approach across component development without relying on external stylesheets.

When should I use useSuspenseQuery instead of standard React Query hooks?

Use useSuspenseQuery instead of standard hooks when you want to simplify loading states by leveraging React Suspense boundaries. This enforces a suspense-based data fetching pattern that integrates seamlessly with lazy-loaded components.