ck:frontend-development

Guide React/TypeScript frontend development with Suspense, lazy loading, and MUI v7.

1|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill ck-frontend-development-thanh-apero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:frontend-development
Source: https://github.com/Thanh-apero/apero-kit-cli/tree/main/.claude/skills/frontend-development
Command: npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill ck-frontend-development-thanh-apero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires react, react-query, @mui/material, @tanstack/react-router, typescript, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide for modern React/TypeScript frontend development, focusing on best practices, performance optimization, and best-in-class tools and patterns.

Core Features & Use Cases

  • Component Patterns: Utilizes React.FC<Props> for type safety and consistency.
  • Lazy Loading: Implements lazy loading for heavy components and routes to improve performance.
  • Suspense Boundaries: Wraps lazy components in SuspenseLoader for smooth loading experiences.
  • Data Fetching: Leverages useSuspenseQuery for efficient data fetching with cache-first strategies.
  • Styling: Offers guidelines for inline vs. separate styles and MUI v7 styling.
  • Routing: Utilizes TanStack Router for folder-based routing and lazy loading of components.
  • Performance Optimization: Provides patterns for performance optimization, including useMemo, useCallback, and React.memo.
  • TypeScript: Enforces TypeScript standards and best practices.
  • Use Cases: Ideal for developers looking to build modern, performant, and maintainable React/TypeScript applications.

Quick Start

Initialize a new project with the frontend development kit by running: ak init my-app --kit frontend-development

Frequently Asked Questions about ck:frontend-development

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

FAQPage Schema
What's the best way to implement lazy loading and Suspense boundaries in React?

React lazy loading defers heavy component rendering by wrapping dynamic imports in Suspense boundaries. This pattern uses SuspenseLoader to provide smooth loading experiences while splitting route chunks for better initial performance.

How do I use useSuspenseQuery with React Query for data fetching?

useSuspenseQuery enables cache-first data fetching strategies in React Query by integrating with Suspense. It suspends component rendering until data resolves, ensuring efficient fetching while maintaining a synchronous data flow in your React components.

Does this frontend development kit require TanStack Router and MUI v7?

Yes, the frontend development kit requires TanStack Router and MUI v7, alongside React, React Query, and TypeScript. These dependencies establish the environment needed to enforce styling, routing, and performance best practices.

When should I use useMemo, useCallback, and React.memo for React performance optimization?

Apply useMemo, useCallback, and React.memo for React performance optimization when expensive calculations execute frequently or child components re-render unnecessarily. These patterns prevent redundant computations and memoize components to optimize render cycles.

How do I organize files and structure routes with TanStack Router?

TanStack Router organizes files using folder-based routing, structuring routes to match your directory hierarchy. This approach allows automatic route generation and supports lazy loading of route components to enhance application performance.