← 返回列表
全部 Skill›开发 Development›nextjs-development

nextjs-development

作者 @fhfh022 · 语言 en
Guidelines and best practices for developing in the Next.js 15, Tailwind v4, Redux, Supabase, and Clerk stack.
开发 Development后端开发通用待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
1
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Next.js Development Skill Guide

This guide defines the coding style, structural rules, and best practices for this project.

Tech Stack Overview

  • Framework: Next.js 15 (App Router)
  • State Management: Redux Toolkit & React Redux
  • Styling: Tailwind CSS v4
  • Database / Backend: Supabase Client & Prisma with PostgreSQL
  • Authentication: Clerk

1. Directory Structure Conventions

  • App Router (/app):
  • Keep layout structure clean.
  • Page-specific logic should live in subfolders.
  • Non-page routing files (like utilities, hooks, or components) should NOT be kept in /app folders unless specifically co-located as private folders starting with an underscore (e.g. _components).
  • Components (/components):
  • Organize into feature subfolders (e.g., components/blog, components/product, components/layout).
  • Keep styling consistent using Tailwind CSS v4.

2. Redux State Management

  • Use StoreProvider (defined in app/StoreProvider.js or components/providers) when client state access is needed.
  • Avoid passing state props through too many component levels; instead, select state fields using useSelector and dispatch actions using useDispatch.

3. Tailwind CSS v4 Styling

  • Use native Tailwind v4 features.
  • Build clean, responsive layouts using utility classes.
  • Ensure all interactive elements have hover effects, transitions, and active styles to keep a high-quality feel.

4. API & Backend Security

  • Ensure Clerk authentication is verified in API endpoints under app/api/ or dynamic server pages.
  • Handle database transactions safely and use proper typescript definitions when communicating with Supabase.
评论
Ffhfh022
fhfh022
fhfh022/E-commerce
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@fhfh022
所属大类开发 Development / 后端开发
国内可用性通用
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。