frontend-dev-guidelines

Enforce React 19 and Next.js 16 frontend standards for L2C SaaS systems.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/Come0520/L2C --skill frontend-dev-guidelines-come0520
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend-dev-guidelines
Source: https://github.com/Come0520/L2C/tree/main/.agent/skills/frontend-dev-guidelines
Command: npx skills add https://github.com/Come0520/L2C --skill frontend-dev-guidelines-come0520

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to modern frontend development standards using React 19 and Next.js 16, ensuring consistency, performance, and maintainability in the L2C system.

Core Features & Use Cases

  • Component Models: Clear distinction and usage guidelines for Server Components vs. Client Components.
  • Data Fetching Strategies: Prioritized methods for efficient and performant data retrieval, including async/await, use(), and React Query.
  • Data Mutations: Standardized approach to handling data changes via Server Actions and useActionState.
  • Caching & Error Handling: Best practices for caching data and robust error boundary implementation.
  • Use Case: A new developer joins the L2C project and needs to understand how to correctly fetch data for a new page, handle form submissions, and manage loading/error states according to the established project standards.

Quick Start

Consult the frontend development guidelines before implementing any new UI components or pages.

Frequently Asked Questions about frontend-dev-guidelines

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

FAQPage Schema
How do I fetch data in Next.js 16 with React 19 Server Components?

Fetch data in Next.js 16 using async/await directly in Server Components or the use() hook for unwrapping promises. Prioritize these methods for efficient data retrieval before considering React Query.

What is the best way to handle data mutations in React 19?

To handle data mutations in React 19, use Server Actions combined with the useActionState hook. This provides a standardized approach for managing form submissions and data updates.

How do I manage loading and error states in a Next.js 16 application?

Manage loading and error states in Next.js 16 using React Suspense for loading UI and error.tsx files for robust error boundaries. This ensures graceful handling of asynchronous operations and runtime errors.

When should I use Server Components vs Client Components in Next.js 16?

Use Server Components for data fetching and static rendering, and Client Components for interactivity. This distinction optimizes performance and maintainability across your Next.js 16 application.

How do I implement caching strategies with React 19 and Next.js 16?

Implement caching in React 19 and Next.js 16 using React.cache() and unstable_cache(). These functions provide best practices for optimizing data fetching and reducing redundant requests.

Does this frontend development guideline cover styling with Tailwind CSS and shadcn/ui?

Yes, these frontend development guidelines cover UI and styling using Tailwind CSS and shadcn/ui. They provide standards for implementing project structure and consistent visual components.