frontend-dev-guidelines

Provide frontend development guidelines for Next.js 16 App Router applications.

Updated Nov 9, 2025
One-click install
npx skills add https://github.com/ZeroGravitySkin-Ron/Claude --skill frontend-dev-guidelines-zerogravityskin-ron
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/ZeroGravitySkin-Ron/Claude/tree/main/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/ZeroGravitySkin-Ron/Claude --skill frontend-dev-guidelines-zerogravityskin-ron

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @clerk/nextjs, nuqs, zod, tailwind-variants, clsx, tailwind-merge, lucide-react, and includes references (resource) components.

What problem does it solve?

Modern frontend development with Next.js 16 and React 19.2 can be complex, leading to inconsistent code, performance bottlenecks, and difficulty in adopting new features. This Skill provides clear, actionable guidelines to streamline development, ensure best practices, and maintain high-quality, performant applications.

Core Features & Use Cases

  • Server Components First: Leverage Next.js 16's Server Components for optimal performance and reduced client-side JavaScript.
  • React 19.2 Features: Integrate useEffectEvent for stable callbacks, Activity for non-blocking loading states, and cache() for server-side data deduplication.
  • Tailwind CSS v4: Standardized styling with cn() and tailwind-variants for consistent UI.
  • Clerk Authentication: Secure user authentication patterns for both server and client components.
  • Use Case: When starting a new feature, use this Skill to quickly understand how to structure your pages, fetch data, apply styling, and implement authentication, ensuring adherence to Quantum Skincare's modern frontend stack.

Quick Start

To create a new authenticated page for user settings:

  1. Create app/(private)/settings/page.tsx.
  2. Default to a Server Component (async function).
  3. Fetch user data using currentUser() from Clerk and backendJson().
  4. Apply Tailwind CSS v4 for styling.
  5. Wrap async content in <Suspense> with a loading.tsx fallback.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
How do I structure pages and components in Next.js 16 with React 19.2?

Structure pages using Server Components by default in Next.js 16 App Router, fetching data server-side with Clerk authentication and wrapping async content in Suspense boundaries. Use React 19.2 features like useEffectEvent for stable callbacks and Activity for non-blocking states to optimize performance and reduce client-side JavaScript.

What's the best way to implement authentication in Next.js with Clerk?

Implement Clerk authentication patterns for both server and client components. Use currentUser() from Clerk in Server Components to fetch user data, then proxy client-side requests through API routes to maintain secure authentication flows across your Next.js application.

How do I apply consistent styling with Tailwind CSS v4 in a Next.js project?

Use Tailwind CSS v4 with utility helpers like cn() and tailwind-variants for standardized styling. These tools ensure consistent UI composition across components while maintaining clean, maintainable class combinations in your Next.js application.

Can I use Server Components with data fetching and Suspense in Next.js 16?

Yes. Next.js 16 Server Components support async data fetching with Clerk and backend APIs. Wrap async content in Suspense with loading.tsx fallbacks to provide non-blocking loading states while data resolves server-side.

What URL state management tools work with Next.js and React 19.2?

Use nuqs for type-safe URL state management in Next.js 16 App Router with React 19.2. It integrates seamlessly with your frontend stack to handle query parameters and route state while maintaining TypeScript type safety.

How do I validate forms in Next.js with TypeScript?

Use Zod for schema-based form validation in Next.js with full TypeScript support. Define validation schemas that enforce type safety across server and client components, ensuring reliable data validation for authentication flows and user input.