ck:frontend-development

Generate React/TypeScript frontend blueprints with Suspense, lazy loading, TanStack Router, and MUI v7.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/mafvietnam/mafapp --skill ck-frontend-development-mafvietnam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:frontend-development
Source: https://github.com/mafvietnam/mafapp/tree/main/.claude/skills/frontend-development
Command: npx skills add https://github.com/mafvietnam/mafapp --skill ck-frontend-development-mafvietnam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Frontend teams often struggle to consistently apply modern React patterns across projects, leading to inconsistent architectures, performance issues, and maintenance overhead. This Skill consolidates proven approaches into a reusable blueprint for building scalable frontends with React/TypeScript.

Core Features & Use Cases

  • Unified patterns for components, Suspense boundaries, lazy loading, useSuspenseQuery, TanStack Router, and MUI v7 styling.
  • Clear file organization guidance (features/ vs components/, aliases, and modular structure).
  • Performance and maintainability best practices with lazy loading, caching strategies, and error handling examples.

Quick Start

Create a new React component following these guidelines to implement a lazy-loaded, Suspense-bound UI using useSuspenseQuery and MUI v7 styling.

Frequently Asked Questions about ck:frontend-development

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

FAQPage Schema
Why avoid early returns in React components when using Suspense?

Avoiding early returns in React components ensures consistent rendering logic when using Suspense boundaries and useSuspenseQuery, preventing conditional rendering bugs and maintaining predictable component lifecycle behavior.

How do I structure a scalable React project with TanStack Router and MUI v7?

Structure scalable React projects by separating features/ and components/ directories, using alias-based imports, and applying modular routing with TanStack Router alongside MUI v7 styling to ensure maintainable codebases.

What is the best way to implement lazy loading and Suspense boundaries in React?

Implement lazy loading in React by wrapping components with React.lazy and enclosing them in Suspense boundaries to handle loading states efficiently while enforcing strict patterns like no early returns in your components.

How does useSuspenseQuery work with React Suspense for server state?

useSuspenseQuery integrates server-state caching directly with React Suspense, automatically suspending component rendering until data resolves, which streamlines asynchronous data fetching and error handling patterns.

Can I use this React and TypeScript blueprint for large codebases?

Yes, this React and TypeScript blueprint targets large codebases by enforcing consistent component organization, alias-based imports, code-splitting, and strict architectural patterns to reduce maintenance overhead.

Why avoid early returns in React components when using Suspense?

Avoiding early returns in React components ensures consistent rendering logic when using Suspense boundaries and useSuspenseQuery, preventing conditional rendering bugs and maintaining predictable component lifecycle behavior.