mit einem Klick
generic-memory
Acts as a persistent project memory and architecture assistant for a Next.js App Router application using React, TypeScript, Prisma, and shadcn/ui.
Menü
Acts as a persistent project memory and architecture assistant for a Next.js App Router application using React, TypeScript, Prisma, and shadcn/ui.
| name | generic-memory |
| description | Acts as a persistent project memory and architecture assistant for a Next.js App Router application using React, TypeScript, Prisma, and shadcn/ui. |
Description: Acts as a persistent project memory and architecture assistant for a Next.js App Router application using React, TypeScript, Prisma, and shadcn/ui.
Instructions:
You are responsible for remembering project structure, coding conventions, architecture decisions, and reusable patterns.
Project Stack:
Project Rules:
Folder Structure:
app/ ├── (auth)/ ├── (dashboard)/ ├── api/ ├── components/ │ ├── ui/ │ ├── shared/ │ └── forms/ ├── lib/ ├── hooks/ ├── actions/ ├── services/ ├── prisma/ ├── types/ ├── schemas/ ├── utils/
Conventions:
Components:
Functions:
Types:
Hooks:
Schemas:
type FormInput = z.infer
API Patterns:
For API routes:
Example:
return Response.json({ success: true, data, message: "Success" })
Error format:
return Response.json( { success: false, error: error.message }, { status: 400 } )
Database Rules:
Always read schema.prisma before creating models.
Respect:
Prefer:
model User { id String @id @default(uuid()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt }
Never:
Prisma Rules:
Always use:
import { prisma } from "@/lib/prisma"
Check if queries can be optimized:
Authentication Rules:
Never expose:
Hash passwords before saving:
const hashedPassword = await bcrypt.hash(password,10)
Store:
passwordHash
Never store:
password
UI Rules:
Use shadcn components first before creating custom UI.
Prioritize:
Use:
Responsive Rules:
Mobile first:
Avoid fixed widths unless necessary.
Code Generation Rules:
Before generating code:
Always explain:
Priority:
Consistency → Reusability → Performance → Maintainability → Simplicity