frontend-dev-guidelines

Define React and TypeScript frontend standards with Suspense and TanStack Query.

2|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/gajjalaashok75-UI/GakrCLI --skill frontend-dev-guidelines-gajjalaashok75-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/gajjalaashok75-UI/GakrCLI/tree/main/assets/skills/frontend-atlas/frontend-dev-guidelines
Command: npx skills add https://github.com/gajjalaashok75-UI/GakrCLI --skill frontend-dev-guidelines-gajjalaashok75-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps engineers build React applications that stay predictable, type-safe, and performant as they grow. It prevents common frontend mistakes like ad hoc data fetching, loading-state flicker, loose typing, and tangled feature structure.

Core Features & Use Cases

  • Suspense-first data fetching: Use TanStack Query with Suspense boundaries instead of manual loading flags for cleaner UI flow.
  • Feature-based architecture: Organize code into feature folders with clear API, hook, type, and component boundaries.
  • Performance-safe patterns: Apply lazy loading, memoization, and cache-aware query strategies to reduce bundle and render cost.
  • Production examples: Build route-level pages, dialogs, data grids, forms, and mutation flows with consistent error handling and snackbar feedback.

Quick Start

Use this skill to design or refactor a React feature so it follows the project’s Suspense-first, strict TypeScript, and feature-based conventions.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
How do I use TanStack Query with Suspense boundaries in React?

TanStack Query pairs with React Suspense boundaries to suspend component rendering until data resolves. This pattern replaces manual loading flags, eliminating UI loading-state flicker and streamlining asynchronous data fetching workflows.

What is feature-based architecture in a React and TypeScript codebase?

Feature-based architecture organizes code into distinct feature folders containing isolated API, hook, type, and component boundaries. This structure keeps strict TypeScript codebases predictable and prevents tangled feature dependencies as applications scale.

How do I implement lazy loading for React routes to improve performance?

Implement lazy loading by dynamically importing route-level components to reduce initial bundle size. This performance-safe pattern requires Suspense boundaries to manage the asynchronous loading state, ensuring smooth transitions without manual loading flags.

Does this frontend architecture work for mutation workflows and data grids?

Yes, this architecture applies to building route-level pages, dialogs, data grids, forms, and mutation workflows. It ensures consistent error handling and snackbar feedback across complex production React components using strict typing.

What is the best way to prevent loading state flicker in React applications?

The best way to prevent loading state flicker is adopting a Suspense-first data fetching strategy. By suspending component rendering until data is ready, React handles asynchronous states declaratively, avoiding manual loading flag management.

Why use strict typing for React feature organization?

Strict typing enforces clear API boundaries within feature-based file organization. It prevents common frontend mistakes by ensuring type safety across data fetching, hooks, and component props, keeping large React codebases predictable as they grow.