moai-domain-frontend

Implements React 19, Next.js 16, and Vue 3.5 component patterns for web UI development.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/h102-log/pdfrag --skill moai-domain-frontend-h102-log
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-domain-frontend
Source: https://github.com/h102-log/pdfrag/tree/main/.claude/skills/moai-domain-frontend
Command: npx skills add https://github.com/h102-log/pdfrag --skill moai-domain-frontend-h102-log

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building modern web interfaces requires keeping up with rapidly evolving frameworks like React 19, Next.js 16, and Vue 3.5, and developers often struggle to apply correct patterns for server components, server actions, state management, and performance optimization. ## Core Features & Use Cases - Framework Patterns: Provides implementation guidance for React 19 server components, cache() API, Suspense, Next.js 16 App Router, Server Actions, ISR, and Vue 3.5 Composition API with Pinia. - Component Architecture: Covers design tokens, CVA variants, compound components, and accessible components with focus management and ARIA attributes. - Performance Optimization: Includes code splitting, dynamic imports, image optimization, memoization, virtualization, and Web Vitals tracking. - Use Case: When building a dashboard page, use this Skill to structure async server components with Suspense boundaries, wire up a form with useActionState and Zod validation, and lazy-load heavy chart components. ## Quick Start Ask the AI to build a Next.js page with a server action form and an accessible dialog component following modern React patterns.

Frequently Asked Questions about moai-domain-frontend

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

FAQPage Schema
How do I use React 19 server components with data fetching?▼

Define an async server component and wrap data fetching functions with React's cache() for request deduplication. Fetch data in parallel with Promise.all, and wrap sections in Suspense boundaries so content streams in independently.

How to handle forms with Next.js server actions?▼

Create a file with the 'use server' directive, validate FormData with Zod safeParse, and return field errors on failure. On the client, use useActionState to track form state and call revalidatePath after mutations.

What is the difference between Zustand, Redux Toolkit, and Pinia for state management?▼

Zustand and Redux Toolkit are React state libraries, with Zustand offering a minimal hook-based API and Redux Toolkit providing structured slices. Pinia is the official state management library for Vue 3, designed around the Composition API.

Does Next.js App Router support incremental static regeneration?▼

Yes, Next.js supports ISR through the revalidate export for time-based revalidation and revalidatePath or revalidateTag for on-demand invalidation. Tag-based caching lets you invalidate specific data without rebuilding entire pages.

Why does my React list re-render on every keystroke?▼

New function references and unmemoized computations cause child re-renders on each render. Use useCallback for stable handlers, useMemo for filtered results, memo for pure child components, and useDeferredValue to keep input responsive.

When should I use client components instead of server components?▼

Use client components for event handlers, browser APIs like localStorage, hooks-based state, and real-time updates. Keep data fetching, backend access, and security-sensitive logic in server components to reduce client bundle size.