From 💻 코더
Frontend development specialist covering React 19, Next.js 16, Vue 3.5, and modern UI/UX patterns with component architecture. Use when building web UIs, implementing components, optimizing frontend performance, or integrating state management.
How this skill is triggered — by the user, by Claude, or both
Slash command
/moai:moai-domain-frontendThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Modern Frontend Development - Comprehensive patterns for React 19, Next.js 16, Vue 3.5.
Modern Frontend Development - Comprehensive patterns for React 19, Next.js 16, Vue 3.5.
Core Capabilities:
When to Use:
Load specific modules for detailed patterns:
React 19 Patterns in modules/react19-patterns.md:
Next.js 16 Patterns in modules/nextjs16-patterns.md:
Vue 3.5 Patterns in modules/vue35-patterns.md:
Component Architecture in modules/component-architecture.md:
State Management in modules/state-management.md:
Performance Optimization in modules/performance-optimization.md:
AI-Assisted Frontend Patterns in modules/ai-frontend-patterns.md:
Vercel React Best Practices in modules/vercel-react-best-practices.md:
Create an async page component that uses the cache function from React to memoize data fetching. Import Suspense for loading states. Define a getData function that fetches from the API endpoint with an id parameter and returns JSON. In the page component, wrap the DataDisplay component with Suspense using a Skeleton fallback, and pass the awaited getData result as the data prop.
Create a server action file with the use server directive. Import revalidatePath from next/cache and z from zod for validation. Define a schema with title (minimum 1 character) and content (minimum 10 characters). The createPost function accepts FormData, validates with safeParse, returns errors on failure, creates the post in the database, and calls revalidatePath for the posts page.
Create a useUser composable that accepts a userId ref parameter. Define user as a nullable ref, loading as a boolean ref, and fullName as a computed property that concatenates firstName and lastName. Use watchEffect to set loading true, fetch the user data asynchronously, assign to user ref, and set loading false. Return the user, loading, and fullName refs.
Import cva and VariantProps from class-variance-authority. Define buttonVariants with base classes for inline-flex, items-center, justify-center, rounded-md, and font-medium. Add variants object with variant options for default (primary background with hover) and outline (border with hover accent). Add size options for sm (h-9, px-3, text-sm), default (h-10, px-4), and lg (h-11, px-8). Set defaultVariants for variant and size. Export a Button component that applies the variants to a button element className.
.claude/rules/moai/languages/typescript.md - TypeScript patterns (auto-loaded via paths frontmatter)Frameworks: React 19, Next.js 16, Vue 3.5, Nuxt 3
Languages: TypeScript 5.9+, JavaScript ES2024
Styling: Tailwind CSS 3.4+, CSS Modules, shadcn/ui
Animation: Framer Motion
State: Zustand, Redux Toolkit, Pinia
Testing: Vitest, Testing Library, Playwright
Verification: Playwright (visual inspection, functional testing)
Module files in the modules directory contain detailed patterns.
For working code examples, see examples.md.
Official documentation:
Version: 2.1.0 Last Updated: 2026-03-28
| Rationalization | Reality |
|---|---|
| "Accessibility can be added after launch" | Post-launch accessibility is a rewrite, not an addition. Semantic HTML and ARIA are foundational, not decorative. |
| "This component is too simple to need its own test" | Simple components compose into complex UIs. A broken simple component cascades failures everywhere it is used. |
| "Server components are always faster" | Server components add network round trips. Client components with proper caching can outperform naive server components. Measure, do not assume. |
| "I will just use any as the TypeScript type for now" | any disables the type checker for everything downstream. One any infects the entire call chain. |
| "Global CSS is fine for this project" | Global CSS creates specificity conflicts as the project grows. Scoped styles (CSS modules, Tailwind) prevent collisions. |
any type used in component props or state definitionsany in new or modified code (show grep results)Refactor scope (deferred to future sub-SPEC):
This skill is retained in v3.0 but its body will be restructured in a follow-up SPEC.
npx claudepluginhub p/modu-ai-moai-plugins-moaiGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Synthesizes the current conversation into a structured spec (PRD) and publishes it to the project issue tracker with a ready-for-agent label, without interviewing the user.